A sig rotator makes your sigs rotated Everytime you refresha a page you see another sig (Look at mine) What to you need for this? 1. A host for your sigs. 2. Host must work with php How to set it up? 1. Upload all the files in a folder on you host. 2. Copy the next code in a notepad file and save it as: index.php Code: <?php if ($dir = opendir(".")) { $list = buildimagearray($dir); displayrandomimage($list); } // This function reads all the files in the current directory and adds all image files to the array $list[] function buildimagearray($dir) { while (false !== ($file = readdir($dir))) { if (!is_dir($file) && getimagesize($file)) { $list[] = $file; } } return $list; } // This function selects a random image, determines the mime type, opens the file for reading, // and then outputs the image function displayrandomimage($list) { srand ((double) microtime() * 10000000); $sig = array_rand ($list); $size = getimagesize ($list[$sig]); $fp = fopen($list[$sig], "rb"); if ($size && $fp) { header("Content-type: {$size['mime']}"); fpassthru($fp); exit; } } ?> 3. Now use this in you sig space: [ img]http://www.yoururl.com/***/index.php[ /img] Hope this clears it up Bratzer
Thanks. Thats kinda confusing but ill get it. Can you post some links to image hosters? Or is it just stuff like Imageshack?
there's also a simple javascript that will do: Code: <script LANGUAGE="JavaScript"> var how_many_ads = 2; var now = new Date() var sec = now.getSeconds() var ad = sec % how_many_ads; ad +=1; if (ad==1) { banner="http://www.geocities.com/sirkeith2003/fantasyfinished1.jpg"; width="500"; height="90"; } if (ad==2) { banner="http://www.geocities.com/sirkeith2003/fp.gif"; width="500"; height="90"; } document.write('<center>'); document.write('<img src=\"' + banner + '\" width=') document.write(width + ' height=' + height + ' '); document.write('</center>'); // End --> </script>
I want to use this method on other forums. Though I don't think that the other forums allow the ".php" at the end. Any way to change this to a image exetension AND keep the script? ZERO. I am a noob when it comes to coding.
I don't know, but probably. It wouldn't take up alot of space in a topic, and it is going to probably be externally hosted.
What you do is make a folder called rot.jpg, then place your index.php and your sigs in then when u want to put it on some forums just put Code: [img]http://yourhost.com/rot.jpg[/img]