Random Signature - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: General Chit Chat (/forumdisplay.php?fid=14)
+----- Thread: Random Signature (/showthread.php?tid=79233)
Random Signature by Eddie on 11-21-2007 at 08:23 AM
Sorry if there a thread, link me to it and i will delete this thread...
would sum1 be able to direct me to a site that can help me get a random signature (picture every load) that i will use for this forum, but i dont want it to collect from a directory but links instead. thanks
(PHP Random Signature)
RE: Random Signature by andrey on 11-21-2007 at 03:56 PM
http://www.google.com/search?hl=en&q=rotating%7Crandom+Signature
RE: Random Signature by Jimbo on 11-21-2007 at 06:55 PM
quote: Originally posted by Eddie
but i dont want it to collect from a directory but links instead. thanks
quote: Originally posted by MeEtc
I have one, should work for you. Let be go find the code....
code: <?PHP
Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
Header("Pragma: no-cache");
Header("Content-Type: image/png");
$dir = "imgs" ;
srand((double)microtime()*1000000);
$i = 0;
$dirHandle = opendir($dir);
while(($im = readdir($dirHandle))) {
if($im != ".." && $im != "."){
$image[$i] = $im;
$i++;
}
}
closedir($dirHandle);
$n = rand(0,(count($image)-1));
if(!readfile($dir."/".$image[$n]))
readfile($dir."default.image");
?>
just be sure to put the images ina folder called 'imgs' and specify a default at the bottom
RE: Random Signature by Eddie on 11-22-2007 at 05:33 AM
quote: Originally posted by andrey
http://www.google.com/search?hl=en&q=rotating%7Crandom+Signature
thanks no matter how many searches i did cudnt find i what i was looking for, that search never came to mind.
RE: RE: Random Signature by Justin on 12-02-2007 at 01:53 AM
quote: Originally posted by andrey
http://www.google.com/search?hl=en&q=rotating%7Crandom+Signature
Never worked for me . Said i needed a valid e-mail address, mine is valid im using it right now lol.
RE: Random Signature by Chris4 on 12-02-2007 at 02:05 AM
If you have your own webspace, you can upload this script that's attached along with the images you want to use.
Note: You need to edit the PHP file. Open it in notepad and do as instructed.
Worked fine for me, but random avatars/signatures get annoying after a while.
Right click link below > Save
|