Welcome to Gaia! ::

Reply AMC Templars
Randosig Tutorial Goto Page: 1 2 [>] [»|]

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

Spider Jerusalem PHD

PostPosted: Mon Mar 14, 2005 9:50 pm


For DeadP00L and anyone else that wants it.

Battousai Oni
That's right kids, it's my randosig tutorial.

First off open up notepad and paste the following text into it:


$howMany = 4;

srand ((double) microtime() * 948625)
$randNumber = rand(1,$howMany)

switch($randNumber)
{
Case 1:
header("Location: http://oni.artisticfire.com/raven.jpg")
break;

Case 2:
header("Location: http://oni.artisticfire.com/raven2.jpg")
break;

Case 3:
header("Location: http://oni.artisticfire.com/Injustice/Darkholme.jpg")
break;

Case 4:
header("Location: http://oni.artisticfire.com/Mystique.jpg")
break;

Case 5:
header("Location: http://oni.artisticfire.com/Tablet.jpg")
break;

Case 6:
header("Location: http://oni.artisticfire.com/LXCBF.gif")
break;
}
?>


Change the value in the following line to however many images will be in your rotation.

$howMany = 4;


Then put in the location of each image into the corresponding cases, order does not matter.

Case 5:
header("Location: http://oni.artisticfire.com/Tablet.jpg")
break;


Copy and paste the above line as many times as necessary, remembering to change the case number each time.

Save the file as .php and upload it to webspace that has php support.

Paste the following into your signature where the url is the location of your php file:

[img]http://oni.artisticfire.com/sig2.php[/img]


The IMG tags are so that the output of the code will be displayed as an image on the Gaia forums.
PostPosted: Wed Mar 16, 2005 5:52 pm


Guess what? said my sig was too big. I tried everything possible and it kept sying that. help!!!

Zack_Hunter


Miss Megan Gwynn

PostPosted: Wed Mar 16, 2005 11:35 pm


You aren't copying the php code into your sig are you?
PostPosted: Thu Mar 17, 2005 1:40 pm


Raven_Darkholme
You aren't copying the php code into your sig are you?

??? Am i supposed to?

Zack_Hunter


Spider Jerusalem PHD

PostPosted: Thu Mar 17, 2005 6:21 pm


No you put the php code into a word document and save it with the extention ".php" manually. Then you upload said file to your php friendly web space and link back to it in your signature using IMG tags like you would any sig image.
PostPosted: Thu Mar 17, 2005 9:27 pm


cutandpastescripts.com has been working good for me...since I dont have a php server.

AmberReflection


Zack_Hunter

PostPosted: Fri Mar 18, 2005 8:20 pm


Spider_Jerusalem
No you put the php code into a word document and save it with the extention ".php" manually. Then you upload said file to your php friendly web space and link back to it in your signature using IMG tags like you would any sig image.

i feel so stupid.
PostPosted: Fri Mar 18, 2005 9:28 pm


It happens, don't give it too much thought.

Miss Megan Gwynn


Zack_Hunter

PostPosted: Sat Mar 19, 2005 10:11 am


Raven_Darkholme
It happens, don't give it too much thought.

No i meant cause i still dont knwo what i'm doing and copyandpastescripts.com did the same thing to me. arg
PostPosted: Sat Mar 19, 2005 11:54 pm


Try if you can, to explain every step of what you've done so far so I can troubleshoot.

Spider Jerusalem PHD


AmberReflection

PostPosted: Sun Mar 20, 2005 1:14 am


DeadP00L
Raven_Darkholme
It happens, don't give it too much thought.

No i meant cause i still dont knwo what i'm doing and copyandpastescripts.com did the same thing to me. arg


When you finish they'll give you a crapload of text that looks like:
Random Images


All you need out of this is
http://www.cutandpastescripts.com/cgi-bin/randomimages/randomimages.pl?username=yourusernamehere

Use this url in regular image tags and it should work.
PostPosted: Mon Mar 21, 2005 6:52 pm


AmberReflection
DeadP00L
Raven_Darkholme
It happens, don't give it too much thought.

No i meant cause i still dont knwo what i'm doing and copyandpastescripts.com did the same thing to me. arg


When you finish they'll give you a crapload of text that looks like:
Random Images


All you need out of this is
http://www.cutandpastescripts.com/cgi-bin/randomimages/randomimages.pl?username=yourusernamehere

Use this url in regular image tags and it should work.

If this works your my new god.
Slams palm to forhead) Oops now i gotta correct that. Noone look at my sig. lol

Zack_Hunter


Zack_Hunter

PostPosted: Tue Mar 22, 2005 3:52 pm


Spider_Jerusalem
Try if you can, to explain every step of what you've done so far so I can troubleshoot.

Ok so i have officially admitted defeat. Spider man I need serious help.
I used both that code and the copyandpaste code:
Behold!
$howMany = 1;

srand ((double) microtime() * 948625);
$randNumber = rand(1,$howMany);

switch($randNumber)
{
Case 1:
header("Location: User Image - Blocked by "Display Image" Settings. Click to show.");
break;

}
?>
So did i completely screw up?
PostPosted: Wed Mar 23, 2005 12:03 pm


DeadP00L
Spider_Jerusalem
Try if you can, to explain every step of what you've done so far so I can troubleshoot.

Ok so i have officially admitted defeat. Spider man I need serious help.
I used both that code and the copyandpaste code:
Behold!
$howMany = 1;

srand ((double) microtime() * 948625);
$randNumber = rand(1,$howMany);

switch($randNumber)
{
Case 1:
header("Location: http://www.cutandpastescripts.com/cgi-bin/randomimages/randomimages.pl?username=DeadP00L");
break;

}
?>
So did i completely screw up?


Don't put User Image - Blocked by "Display Image" Settings. Click to show.

Miss Megan Gwynn


Zack_Hunter

PostPosted: Wed Mar 23, 2005 4:24 pm


Ok everone must be getting pretty annoyed with me so if someone could either pm me or contact me through AIM to help me it would be very much appreciated.
Reply
AMC Templars

Goto Page: 1 2 [>] [»|]
 
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