In this guide you'll learn how to make something like this (Refresh and look at the image to see what's happening) : Start off by making a account at http://ripway.com After you've made the account, select the "Create a New Text File" button. Name it RotationalSig.php and add this code into the textbox : Code (Text): <?php /* */// Make this the relative path to the images, like "../img" or "random/images/". // If the images are in the same directory, leave it blank. $folder = ''; // Space seperated list of extensions, you probably won't have to change this. $exts = 'jpg jpeg png gif'; $files = array(); $i = -1; // Initialize some variables if ('' == $folder) $folder = './'; $handle = opendir($folder); $exts = explode(' ', $exts); while (false !== ($file = readdir($handle))) { foreach($exts as $ext) { // for each extension check the extension if (preg_match('/\.'.$ext.'$/i', $file, $test)) { // faster than ereg, case insensitive $files[] = $file; // it's good ++$i; } } } closedir($handle); // We're not using it anymore mt_srand((double)microtime()*1000000); // seed for PHP < 4.2 $rand = mt_rand(0, $i); // $i was incremented as we went along header('Location: '.$folder.$files[$rand]); // Voila! ?> Code By Matt Mullenweg > http://photomatt.net Now upload whatever images you want to be in your rotational sig and your done! To put the rotational image in your signature, just add this code (Replace INSERTUSERNAMEHERE with your username) : Code (Text): [img]http://h1.ripway.com/INSERTUSERNAMEHERE/RotationalSig.php[/img] If you'd like to request some signatures for your rotational sig, feel free to request here : graphics-requests-f42/taking-request-for-sig-s-t27467.html
Or you could go here: http://sig.grumpybumpers.com/index.cgi put username and PW in, confirm PW, load image urls, hit enter. works well enough for me.
Most sites like those get shut down. That's why i wrote this alternative guide. Two of the services i used got closed down. And this is easier. Ripway account, new file, load images. Same thing basically except it won't get closed down.
Here is the code I use as a shorter alternative. I think Zer0 made it, or ricky. I dunno. It's shorter, but you got to update it everytime you have a new file. Speaking of, I need to upload the Steven Jackson one someone made me the other day lol. Code (Text): <?php $files[0] = 'http://h1.ripway.com/cackle/signatures/cackle.jpg'; $files[1] = 'http://h1.ripway.com/cackle/signatures/cacklev1.png'; $files[2] = 'http://h1.ripway.com/cackle/signatures/cacklev2.png'; $files[3] = 'http://h1.ripway.com/cackle/signatures/ip2h46.png'; $files[4] = 'http://h1.ripway.com/cackle/signatures/chicagoclubsjx2.png'; $files[5] = 'http://h1.ripway.com/cackle/signatures/stevenjackson.png'; header('Location: ' . $files[ mt_rand( 0, sizeof( $files )-1 ) ]); ?>