Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

74 users online



Tutorial: Random Signature

Tutorial: Random Signature

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 3
Rad

Rad

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:


<?php
header
("Content-Type: image/png");
$sigs = array();
$sigs[] = "sig1.png";
$sigs[] = "sig2.png";

$sig $sigs[rand(0count($sigs)-1)];

$image ImageCreateFromPNG($sig);
ImagePNG($image);
ImageDestroy($image);
?>

Now to access your image, go

Code:


<img src="http://www.yoursite.com/signature.php" alt="" />

And to put in vB

Code:


[ 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)

Robouk

Robouk

Neverside Newbie
Status: Offline!

wow cool, thanks =)

___________________

- Robouk

CDude

CDude

nothing
Status: Offline!

Smile

___________________

http://celerondude.com

CDude

CDude

nothing
Status: Offline!

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

Rad

Rad

thinking of something witty to put here
Status: Offline!

Yeah, but I wasn't doing random quotes. I was making random signatures Smile.

CDude

CDude

nothing
Status: Offline!

blah, random quote is more fun.

___________________

http://celerondude.com

Rad

Rad

thinking of something witty to put here
Status: Offline!

Yeah, they are a lot funnier too Smile

CDude

CDude

nothing
Status: Offline!

ah screwy, IMG doesn't work

___________________

http://celerondude.com

Abyssyml

Abyssyml

Status: Offline!

Ok, I understood everything, but now how would I apply that signature to a forum using nothing but vbcode?

Adam

Adam

Status: Offline!

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

Page 1 out of 3
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0174 seconds.