What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » General Chit Chat » Random Signature

Random Signature
Author: Message:
Eddie
Veteran Member
*****


Posts: 2078
Reputation: 30
32 / Male / Flag
Joined: Oct 2005
Status: Away
O.P. Random Signature
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)

This post was edited on 11-21-2007 at 10:06 AM by Eddie.
...there used to be a signature here :)
11-21-2007 08:23 AM
Profile PM Web Find Quote Report
andrey
elite shoutboxer
****

Avatar

Posts: 795
Reputation: 48
– / Male / Flag
Joined: Aug 2004
RE: Random Signature
http://www.google.com/search?hl=en&q=rotating%7Crandom+Signature
[Image: w2kzw8qp-sq2_dz_b_xmas.png]
11-21-2007 03:56 PM
Profile PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
RE: Random Signature
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

:dodgy:
11-21-2007 06:55 PM
Profile E-Mail PM Find Quote Report
Eddie
Veteran Member
*****


Posts: 2078
Reputation: 30
32 / Male / Flag
Joined: Oct 2005
Status: Away
O.P. RE: Random Signature
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.
...there used to be a signature here :)
11-22-2007 05:33 AM
Profile PM Web Find Quote Report
Justin
Full Member
***

Avatar

Posts: 315
Reputation: 8
32 / Male / Flag
Joined: Sep 2007
RE: RE: Random Signature
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.
12-02-2007 01:53 AM
Profile E-Mail PM Find Quote Report
Chris4
Elite Member
*****

Avatar

Posts: 4461
Reputation: 84
32 / Male / Flag
Joined: Dec 2004
RE: Random Signature
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

.php File Attachment: Random-Avatar.php (704 bytes)
This file has been downloaded 142 time(s).

This post was edited on 12-02-2007 at 02:09 AM by Chris4.
Twitter: @ChrisLozeau
12-02-2007 02:05 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On