11 Oct 2009 at 23:43 #1 G-MAN2004 G-MAN2004 Caporegime Joined 4 Jul 2004 Posts 30,790 Whatever happened to that sig rotating website generously set up by someone on here? I can't find it.
Whatever happened to that sig rotating website generously set up by someone on here? I can't find it.
11 Oct 2009 at 23:52 #3 silversurfer silversurfer Soldato Joined 13 Jul 2004 Posts 20,349 Location Stanley Hotel, Colorado Whose that built by, thanks
11 Oct 2009 at 23:58 #4 G-MAN2004 G-MAN2004 Caporegime OP Joined 4 Jul 2004 Posts 30,790 Lethal` said: http://sigrotor.com/ Click to expand... Ah thanks. I was trying sigrotator.com
11 Oct 2009 at 23:59 #5 Azza Azza Caporegime Joined 6 Dec 2005 Posts 37,979 Location Birmingham Always wondered how people did it. Thanks for that Lethal` and G-MAN2004 for bringing it up.
12 Oct 2009 at 00:16 #6 mrk mrk Man of Honour Joined 18 Oct 2002 Posts 106,172 Location South Coast If you have your own webhosting the you can rotate on any forum using a rotate.php file. Code: <?php $folder = ''; $exts = 'jpg jpeg png gif'; $files = array(); $i = -1; if ('' == $folder) $folder = './'; $handle = opendir($folder); $exts = explode(' ', $exts); while (false !== ($file = readdir($handle))) { foreach($exts as $ext) { if (preg_match('/\.'.$ext.'$/i', $file, $test)) { $files[] = $file; ++$i; } } } closedir($handle); mt_srand((double)microtime()*1000000); $rand = mt_rand(0, $i); header('Location: '.$folder.$files[$rand]); ?> Then just put your image files along with that as rotate.php in your folder on your web space and link to rotate.php as an image. Easy...
If you have your own webhosting the you can rotate on any forum using a rotate.php file. Code: <?php $folder = ''; $exts = 'jpg jpeg png gif'; $files = array(); $i = -1; if ('' == $folder) $folder = './'; $handle = opendir($folder); $exts = explode(' ', $exts); while (false !== ($file = readdir($handle))) { foreach($exts as $ext) { if (preg_match('/\.'.$ext.'$/i', $file, $test)) { $files[] = $file; ++$i; } } } closedir($handle); mt_srand((double)microtime()*1000000); $rand = mt_rand(0, $i); header('Location: '.$folder.$files[$rand]); ?> Then just put your image files along with that as rotate.php in your folder on your web space and link to rotate.php as an image. Easy...
12 Oct 2009 at 00:34 #7 Inquisitor Inquisitor Soldato Joined 12 Apr 2004 Posts 11,788 Location Somewhere silversurfer said: Whose that built by, thanks Click to expand... Me! I should really update it though – the code's getting very dated and it doesn't need the OcUK restriction on it any more.
silversurfer said: Whose that built by, thanks Click to expand... Me! I should really update it though – the code's getting very dated and it doesn't need the OcUK restriction on it any more.
12 Oct 2009 at 00:46 #8 Inquisitor Inquisitor Soldato Joined 12 Apr 2004 Posts 11,788 Location Somewhere mrk said: If you have your own webhosting the you can rotate on any forum using a rotate.php file. Code: <?php $folder = ''; $exts = 'jpg jpeg png gif'; $files = array(); $i = -1; if ('' == $folder) $folder = './'; $handle = opendir($folder); $exts = explode(' ', $exts); while (false !== ($file = readdir($handle))) { foreach($exts as $ext) { if (preg_match('/\.'.$ext.'$/i', $file, $test)) { $files[] = $file; ++$i; } } } closedir($handle); mt_srand((double)microtime()*1000000); $rand = mt_rand(0, $i); header('Location: '.$folder.$files[$rand]); ?> Then just put your image files along with that as rotate.php in your folder on your web space and link to rotate.php as an image. Easy... Click to expand... Or you could do it in a couple of lines: PHP: $images = glob("{*.jpg,*.JPG,*.jpeg,*.JPEG,*.png,*.PNG}", GLOB_BRACE); readfile($images[array_rand($images)]);
mrk said: If you have your own webhosting the you can rotate on any forum using a rotate.php file. Code: <?php $folder = ''; $exts = 'jpg jpeg png gif'; $files = array(); $i = -1; if ('' == $folder) $folder = './'; $handle = opendir($folder); $exts = explode(' ', $exts); while (false !== ($file = readdir($handle))) { foreach($exts as $ext) { if (preg_match('/\.'.$ext.'$/i', $file, $test)) { $files[] = $file; ++$i; } } } closedir($handle); mt_srand((double)microtime()*1000000); $rand = mt_rand(0, $i); header('Location: '.$folder.$files[$rand]); ?> Then just put your image files along with that as rotate.php in your folder on your web space and link to rotate.php as an image. Easy... Click to expand... Or you could do it in a couple of lines: PHP: $images = glob("{*.jpg,*.JPG,*.jpeg,*.JPEG,*.png,*.PNG}", GLOB_BRACE); readfile($images[array_rand($images)]);
12 Oct 2009 at 00:52 #9 V4NT0M V4NT0M Soldato Joined 18 Jan 2007 Posts 19,850 Location Land of the Scots Make sure you've got some good sigs to rotate.
12 Oct 2009 at 00:54 #10 dekez dekez Soldato Joined 14 Apr 2009 Posts 4,329 Location Location: Location Always wondered who we had to thank for Sigrotor, I don't understand it, but I like it! Thanks for setting up a great little rotor site
Always wondered who we had to thank for Sigrotor, I don't understand it, but I like it! Thanks for setting up a great little rotor site
12 Oct 2009 at 00:56 #11 G-MAN2004 G-MAN2004 Caporegime OP Joined 4 Jul 2004 Posts 30,790 Inquisitor said: Me! Click to expand... Thanks.
12 Oct 2009 at 01:30 #12 GreatAuk GreatAuk Soldato Joined 3 Apr 2009 Posts 4,032 Location Warrington Skyfall said: Make sure you've got some good sigs to rotate. Click to expand... I can see you take that advice to heart... awesome set of sigs Skyfall
Skyfall said: Make sure you've got some good sigs to rotate. Click to expand... I can see you take that advice to heart... awesome set of sigs Skyfall
12 Oct 2009 at 01:30 #13 mrk mrk Man of Honour Joined 18 Oct 2002 Posts 106,172 Location South Coast Inquisitor said: Or you could do it in a couple of lines: PHP: $images = glob("{*.jpg,*.JPG,*.jpeg,*.JPEG,*.png,*.PNG}", GLOB_BRACE); readfile($images[array_rand($images)]); Click to expand... Aha! rotate.php: rotate2.php:
Inquisitor said: Or you could do it in a couple of lines: PHP: $images = glob("{*.jpg,*.JPG,*.jpeg,*.JPEG,*.png,*.PNG}", GLOB_BRACE); readfile($images[array_rand($images)]); Click to expand... Aha! rotate.php: rotate2.php: