Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

85 users online



Tutorial: Random Signature

Tutorial: Random Signature

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


Page 3 out of 3
epyon

epyon

16, staying Asian.
Status: Offline!

newer versions of gd don't support gif's.
try using jpeg instead.

___________________

http://whatpulse.bounceme.net/sig/epyon.png

Kedmyster

Kedmyster

Neverside Newbie
Status: Offline!

You are cool Radley!

Mr_B

Mr_B

Neverside Newbie
Status: Offline!

I tried both GIF and JPG, only PNG worked, sorta.

When I look at my sig in IE, it looks bad(websafe colors only), but it's fine on my PC. Any insight?

___________________

http://mrbsdomain.com/images/sig_mrb.gif
Mr. B's Domain | e-mail/MSN nx_2000.at.hotmail.com | AIM/Yahoo tagmisterb

Makaveli_Da_DoN

Makaveli_Da_DoN

Status: Offline!
Quote:

Originally posted by CDude
too much work there Radley, if you want random quotes, just read the quotes from a file/database and write it into the image.

ok how would i do that?

and how to make a random flash footer? is it the same idea replacing gif with swf?

Adam

Adam

Status: Offline!

For Flash, it would be the same thing by replacing gif and swf, although I am not sure how to embed it into the page.

As for your other question:

PHP:

<?php

//For a DB
$sql "SELECT * FROM Qoutes ORDER BY RAND() LIMIT 1";
$result mysql_query($sql) or die(mysql_error());
$Quote mysql_fetch_array($result);
echo 
$Ouote['Text'];

//For a File
$File "qoutes.txt";
$Quotes file($File);
echo 
$Quotes[array_rand($Quotes)];

?>

___________________


Current Project: LivermoreMuscle.com
Sig Hosted by Motorspin

cyrus213

cyrus213

Status: Offline!

umm, ok, i have done everything on there, yet i still cant see the image, all i get is :

PHP:

<?php
Fatal error
Cannot use [] for reading in /home/dave2k/public_html/cyrus/uploads/signature.php on line 7
?>

Adam

Adam

Status: Offline!

show the code.

___________________


Current Project: LivermoreMuscle.com
Sig Hosted by Motorspin

CDude

CDude

nothing
Status: Offline!

array_rand($Quotes)];

___________________

http://celerondude.com

Kriek

Kriek

Status: Offline!

I prefer to designate a specific directory for random images and then denote that directory in scripts.

Imagine if you were attempting to randomize 50 images.

___________________

Everyone remain calm, I've done this before.

Adam

Adam

Status: Offline!

or you could just just use abosolute URLS.

___________________


Current Project: LivermoreMuscle.com
Sig Hosted by Motorspin

Page 3 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.0084 seconds.