
May 29th, 2002
07:21 PM
thinking of something witty to put here
Status: Offline!
Tutorial: Random Signature
Hi, I just noticed CDude's random sig, and some other people might be wondering how to do that.
Make a page called signature.php. Put this code in it:
<?php
header("Content-Type: image/png");
$sigs = array();
$sigs[] = "sig1.png";
$sigs[] = "sig2.png";
$sig = $sigs[rand(0, count($sigs)-1)];
$image = ImageCreateFromPNG($sig);
ImagePNG($image);
ImageDestroy($image);
?>
Now to access your image, go
<img src="http://www.yoursite.com/signature.php" alt="" />
And to put in vB
[ img ]http://www.yoursite.com/signature.php[ /img ]
w/o spaces between the brackets
Last edited by Rad, June 8th, 2002 12:42 PM (Edited 1 times)

May 29th, 2002
10:32 PM
too much work there Radley, if you want random quotes, just read the quotes from a file/database and write it into the image.
___________________
http://celerondude.com

May 29th, 2002
10:49 PM
thinking of something witty to put here
Status: Offline!
Yeah, but I wasn't doing random quotes. I was making random signatures
.

May 29th, 2002
10:50 PM
blah, random quote is more fun.
___________________
http://celerondude.com

May 29th, 2002
10:50 PM
thinking of something witty to put here
Status: Offline!
Yeah, they are a lot funnier too 

May 29th, 2002
10:55 PM
ah screwy, IMG doesn't work
___________________
http://celerondude.com

June 8th, 2002
03:01 AM
Ok, I understood everything, but now how would I apply that signature to a forum using nothing but vbcode?

June 8th, 2002
03:04 AM
thanx Radley, I was thinking about that today while I was working on my Chem Final...oh how my mind strays.
___________________
Current Project: LivermoreMuscle.com
Sig Hosted by Motorspin