Welcome to Gaia! ::


Yay! Mine is finally done! Thanks to everyone that helped! 3nodding

I will cherish this sig for years to come.
Arielle, [Malakai], added you both to the list.

If someone tries out the advanced rotating trick (like what I have now) and gets it working as well, please let me know. ^_^
The only thing I dont understand about it is how we get it into our signature, do we host it on the website using that coding then copy and paste the hosted pic to our signature or do we just directly add it to our signature. I use Photobucket to host the images, direct me as of what I would do, should I find a website to host it up on or what @_@ im so confused.
Jakobo
Arielle, [Malakai], added you both to the list.

If someone tries out the advanced rotating trick (like what I have now) and gets it working as well, please let me know. ^_^
I'm gonna be attempting it this week....

EDIT: tonite actually xp
yay! I have gotten just the random image/link part to work with Jakob's help xd

image.php - quote code
<?PHP

define("NUMBER_OF_IMAGES", 2)

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

$image_number_name = str_pad((rand()%NUMBER_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)

?>


So yeah, that's all you need if you don't want to use the random quotes... and then you don't have to go bug Jakob about which 90% to delete like I had to *huggles Jakob for being so helpful and nice*

just remember to name your image files ####.png so that it can pick the right one (eg. 0001.png, 0002.png etc)

Vicious Warlord

hmm...I got some problems with my sig..
<?PHP
/* Gaia Image Map Go-er
Rudolph J Heuser
*/

require_once("imagemap.php")

// new imageMap
$myImageMap = new imageMap()

// define regions

// the matrix guild
$area = new Rect(00,000,110,118,"http://www.gaiaonline.com/forum/viewtopic.php?t=21670")
$myImageMap->addToMap($area)

// gaia niceta association
$area = new Rect(112,47,189,126,"http://www.gaiaonline.com/forum/guilds/index.php?page_mode=4&guild_id=115")
$myImageMap->addToMap($area)

// gaia acadamy, pre-emptive teaching baby!
$area = new Rect(188,37,278,132,"http://www.gaiaonline.com/forum/guilds/index.php?page_mode=4&guild_id=92")
$myImageMap->addToMap($area)

// irish pub guild
$area = new Rect(273,12,353,110,"http://www.gaiaonline.com/forum/viewtopic.php?t=33886")
$myImageMap->addToMap($area)

// weed supporters guild
$area= new Rect (352,0,407,129,"http://www.gaiaonline.com/forum/guilds/index.php?page_mode=4&guild_id=523")
$myImageMap->addToMap($area)

// dreadlock guild
$area= new Rect (407,0,449,177,"http://www.gaiaonline.com/forum/viewtopic.php?t=289377")
$myImageMap->addToMap($area)

// halycon
$area= new Rect (0,121,175,194,"http://www.gaiaonline.com/forum/viewtopic.php?t=1409276")
$myImageMap->addToMap($area)

// buglist
$area= new Rect (179,133,276,192,"http://buglist.notlong.com")
$myImageMap->addToMap($area)

// Ska guild
$area= new Rect (280,111,346,171,"http://www.gaiaonline.com/forum/viewtopic.php?t=15601")
$myImageMap->addToMap($area)

// The flaming hurricane
$area= new Rect (348,126,406,171,"http://gaiaonline.com/forum/viewtopic.php?t=1862758")


$myImageMap->setDefaultURL("http://buglist.notlong.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)

?>
is the code

and when I click on the map I get:

Parse error: parse error in /var/www/html/alibaba/phpgaia/map.php on line 53

aaaaaaaaaaaaand, I have no clue what went wrong confused
I'm confused here...What do I open map.php with? I downloaded php-5.0.0-Win32 because my computer told me thats what I needed...But when I try to open it with php-5.0.0-Win32, the window pops up and dissapears really fast. I opened it with Notebook and made the changes and everything with Notebook, but when I tried to save it, it said the file was not found or something like that and it didn't save. Please help me!
I re-read the first post and saw the thign about vesion5, so I tryed opening it with php-4.3.8-Win32 and it did the same thing as the 5.0.0 one...
I've tryed everything I can think of...And nothing is working! Please help

I'm on AIM if one of you could give me a run-though on this cool siggy. 3nodding
Aldo
hmm...I got some problems with my sig..
*snip*
// The flaming hurricane
$area= new Rect (348,126,406,171,"http://gaiaonline.com/forum/viewtopic.php?t=1862758")
is the code

and when I click on the map I get:

Parse error: parse error in /var/www/html/alibaba/phpgaia/map.php on line 53

aaaaaaaaaaaaand, I have no clue what went wrong confused


I think the lines I snipped your code down to could be the problem... I'm no whiz with these things, but that line has no semicolon at the end and all the others do... little things like that can totally screw up your code... see if putting a semi-colon there works... if it doesn't maybe someone else will have a solution smile
also aldo, that section is missing the
$myImageMap->addToMap($area)


that should go on the line right after the line where you are missing the semi-colon (look at the other regions for examples smile )
gonk I have never been so confused in my life.

I have two pics which I would like to turn to one. one pic with two links!
I read of the intructions a dozen times and still come up blank. I downloaded the file and opened the map.php it then asked me to pic a file. WHAT FILE! it gives me no files to choose from.

I'm hyperventilating here people! can anyone put this in lamens terms? if you can PLEASE PM me!
I CAN'T GET IT TO WORK!! When I try and open the map.php file with php.exe, the window pops up for a second (and I can see it has writing) then it just dissapears. I've tryed getting different versions of php script and i even downloaded Apache HTTP sever because the php script site said it worked with that server. It still isn't working. If someone could PM me or reply to this and tell me how to do this, it'd be really appeciated. Thanks in advance!

EDIT: Figured it out! I was using a bad host...But does anyone have the code for a shoutbox and sigmap combined? I see that a few people have one, but I searched this whole thread and couldn't find the code.
Jakobo, I've combined yours with a shoutbox. Just thought you should know. Even though you already do. XD

Vicious Warlord

@Andy: open the .map with notepad, make the changes, and save the file as map.php that should do it.

@Raven_moonwalker: open the file with notepad confused

@[Meky]: oops, I forgot some stuff sweatdrop dang.

Quick Reply

Submit
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum
//
//

Join Now

// //

Have an account? Login Now!

//
//