Welcome to Gaia! ::

Thanks for your help ^^
borobdin
Seiki Nova, you can use the coordinates you get from that to make a map. However, most of the HTML in your code is disabled on Gaia, so even if it fits the sig character limit, it won't work. It's the reason Jakobo wrote the code and I wrote this thread.
OK...so if I use the code that Jakobo made, can I just use the coordinates that I had from the information that I got with ImageReady?

The code now looks like this...Tell me if I'm wrong please so I can fix anything.

<?PHP
/* Gaia Image Map Go-er
Rudolph J Heuser
*/

require_once("imagemap.class.php")

// new imageMap
$myImageMap = new imageMap()

// define regions
$area = new Rect(6,145,185,161, "http://www.gaiaonline.com/forum/guilds/index.php?page_mode=4&guild_id=1979")
$myImageMap->addToMap($area)

$area = new Rect(6,162,186,176,"http://www.gaiaonline.com/forum/viewtopic.php?t=3449326&highlight=")
$myImageMap->addToMap($area)

$area = new Rect(7,177,184,190,"http://www.gaiaonline.com/forum/viewtopic.php?t=4666591&highlight=")
$myImageMap->addToMap($area)

$area = new Rect(192,126,371,250,"http://www.gaiaonline.com/gambino/bank.php?mode=trade&uid=537536")
$myImageMap->addToMap($area)

$myImageMap->setDefaultURL("http://www.gaiaonline.com/profile/profile.php?mode=viewprofile&u=537536")

// capture X and Y from query string
$x_and_y = $_SERVER["QUERY_STRING"]
$x_and_y = explode(",",$x_and_y)
$inX = $x_and_y[0]
$inY = $x_and_y[1]
unset($x_and_y)
I'm not sure if he'll like that you've taken out his name from the header. I don't care so much that mine is removed cause I only did one change. Didn't I say not to change that part. Anyway...

Do you have the image...it's much easier to check if you have that up too. However from what I see, it looks good.
Letta's avatar
  • 50
  • 100
  • 200
xD i need help with what exactly i'm supposed to change in the code.

<?PHP

define("NUMBER_OF_IMAGES", 2)

// seed random number
// srand((double)microtime()*1000000)

$image_number_name = str_pad((rand()&#xNU;MBER_OF_IMAGES)+1,4,"0",STR_PAD_LEFT).".png";

$im_size = GetImageSize ($image_number_name)
$imageWidth = $im_size[0]
$imageHeight = $im_size[1]
$im = imagecreatetruecolor($imageWidth,$imageHeight)

$im2 = ImageCreateFromPNG($image_number_name)
ImageCopy ($im,$im2,0,0,0,0, $imageWidth, $imageHeight)
ImageDestroy ($im2)

// Output
header("Content-type: image/png")
imagepng($im)

?>


and i was also wondering if i have to change anything in the other files?
borobdin
I'm not sure if he'll like that you've taken out his name from the header. I don't care so much that mine is removed cause I only did one change. Didn't I say not to change that part. Anyway...

Do you have the image...it's much easier to check if you have that up too. However from what I see, it looks good.
Sorry...I'll put it back up...um I do have the Image, but I haven't uploaded it yet.

EDIT: Changed his name back and here is the image:

User Image - Blocked by "Display Image" Settings. Click to show.

I made it simple since this was my first map...I didn't want a difficult one to wirk with just yet. I'll make a better one later. sweatdrop
Is that a random image code? This thread doesn't really deal with those. You might find help with that here.

I haven't tried making a random image imagemap yet...if AAN is online, he might be able to help you.
Letta's avatar
  • 50
  • 100
  • 200
borobdin
Is that a random image code? This thread doesn't really deal with those. You might find help with that here.

I haven't tried making a random image imagemap yet...if AAN is online, he might be able to help you.

I'm trying to make a random image imagemap...AAN?
Letta
borobdin
Is that a random image code? This thread doesn't really deal with those. You might find help with that here.

I haven't tried making a random image imagemap yet...if AAN is online, he might be able to help you.

I'm trying to make a random image imagemap...AAN?

Are you making one where the links are different places depending on the image? Or will it just be different images but the links are in the same relative place on the image?

If it is the former, I would PM An Angels Nightmare. If it is the latter, then just use that thread I linked to make a rando image...then use the URL to your rando image as the URL for the image in the imagemap code in your sig.
1 little problem. I made my map and hosted everything. Click anywhere on my little cheap 1st map that I have in my sig to see the problem. Please help me.
wow this is cool it works!
thanks this was realy helpful I was confused a little on Jakobo's but you simplified it thanks
Bigalo
I have no Idea what I am doing wrong but when I try to click or even view the page and this is all I get, when I also try to click my image map on any spot the same thing happens image here so my question is, what am I doing wrong? did I code it wrong?
in my sig you can try it (I made it simple because this is my first attempt)
You sort of have the same problem as me. If you click my sig, you will see that I get a big error. I am waiting to see what I did wrong from Borobdin
I would just like to say that Jakobo and borobdin are my heros... heart
Seiki Nova
Bigalo
I have no Idea what I am doing wrong but when I try to click or even view the page and this is all I get, when I also try to click my image map on any spot the same thing happens image here so my question is, what am I doing wrong? did I code it wrong?
<?PHP
/* Gaia Image Map Go-er
Rudolph J Heuser (Jakobo on GaiaOnline.com
Modified: John T Wu (borobdin on GaiaOnline.com)
*/

require_once("imagemap.php")

// new imageMap
$myImageMap = new imageMap()


// my website
$area = new Rect(0,4,,155,267,"www.angelfire.com/anime6/xhrdcorkidx")
$myImageMap->addToMap($area)


// GAIA
$area = new Rect(0,270,448,437,"http://www.gaiaonline.com/gambino/bank.php?mode=trade&uid=834477")
$myImageMap->addToMap($area)


// view my profile
$area = new Rect(169,1,449,260,"http://www.gaiaonline.com/profile/profile.php?mode=viewprofile&u=834477")
$myImageMap->addToMap($area)


$myImageMap->setDefaultURL("www.gaiaonline.com")

// capture X and Y from query string
$x_and_y = $_SERVER["QUERY_STRING"]
$x_and_y = explode(",",$x_and_y)
$inX = $x_and_y[0]
$inY = $x_and_y[1]
unset($x_and_y)

// echo $inX. "," . $inY;
$myImageMap->testMap($inX, $inY)

?>

in my sig you can try it (I made it simple because this is my first attempt)
You sort of have the same problem as me. If you click my sig, you will see that I get a big error. I am waiting to see what I did wrong from Borobdin
I just figured out my problem I am so stupid xp
OMG, what did I do wrong? Everyone elses maps work but mine. Someone help me out here.
Bigalo
Seiki Nova
Bigalo
I have no Idea what I am doing wrong but when I try to click or even view the page and this is all I get, when I also try to click my image map on any spot the same thing happens image here so my question is, what am I doing wrong? did I code it wrong?
in my sig you can try it (I made it simple because this is my first attempt)
You sort of have the same problem as me. If you click my sig, you will see that I get a big error. I am waiting to see what I did wrong from Borobdin
I just figured out my problem I am so stupid xp
Then can you help me?

Quick Reply

Submit
Manage Your Items
Other Stuff
Get Items
Get Gaia Cash
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff