Thread: TGRL Signatures
-
10-01-2006 11:10 PM #1
TGRL Signatures
Last edited by Mirfee; 10-02-2006 at 12:10 AM.
-
10-02-2006 12:11 AM #2
Re: TGRL Signatures
Sweet work Turbo. Thank you so much for the idea and the effort.
My problem is, I can't decide which one to pick!
-
10-02-2006 12:38 AM #3
Re: TGRL Signatures
Woah, I love 'em! Great work, and thanks.

[conduct][volun][drill][sg-c1][tpf-c1]
|TG-2nd|munchkin
Nec aspera terrent.
-
10-02-2006 01:21 AM #4
-
10-02-2006 07:10 AM #5
Re: TGRL Signatures
Rocket, that would be pure gold. I think it'd be perfect. Anyway to adjust the speed? I'd like it to be reaaaally slow, like a minute each. Those pics are too nice to scroll by so fast.
-
10-02-2006 07:12 AM #6
Re: TGRL Signatures
That gives me another idea. Some (they'd have to be new) could be animated gifs. Imagine a handful of frames showing a field passing by, or a great pass, or a spin, etc.
Hmmmm...
-
10-02-2006 10:52 AM #7
Re: TGRL Signatures
Ah perfect! There's one with an ambulance just for me!

Very nice job Turbo, very cool.New to TG? Start here!
-
10-02-2006 10:57 AM #8
-
10-02-2006 11:15 AM #9
Re: TGRL Signatures
The script will only change your sig everytime the page reloads.
Slow is Smooth. Smooth is Fast!
-
10-02-2006 11:33 AM #10
Re: TGRL Signatures
That would be perfect, Rocket.
Cycling some animated choices along with these still images would be terrific. That way anyone who wants to (me!) can have all the sigs, still and moving alike. No more decisions!
-
10-05-2006 11:09 PM #11
Re: TGRL Signatures
This is the script I talked about.
link -> http://photomatt.net/scripts/randomimageSlow is Smooth. Smooth is Fast!
-
10-05-2006 11:35 PM #12
Re: TGRL Signatures
Cool! Now I have to figure out how to use it.
-
10-06-2006 12:40 PM #13
Re: TGRL Signatures
Hey Rocket... I don't get it. What am I supposed to do with what and where? I know I need the collection of images in a directory (done), and that I'm supposed to 'drop this code in'. Except, I don't understand... which code below? Drop it how... in what form? Thanks for any help.
Installation/Usage
For the simplest possible installation, just drop this code in a directory with the images you want to rotate, and call it like you would a normal image, for example:
<img src="/dropbox/2003/rotate/rotate.php" alt="A Random Image" />
A Rotator Apart
<?php
/*
By Matt Mullenweg > http://photomatt.net
Inspired by Dan Benjamin > http://hiveware.com/imagerotator.php
Latest version always at:
http://photomatt.net/scripts/randomimage
*/
// 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!
?>
-
10-06-2006 01:23 PM #14
Re: TGRL Signatures
No worries man. I will get everything setup in a folder with all the images in it, all you need to do is take out the ones that you don't want.
Slow is Smooth. Smooth is Fast!
-
10-06-2006 01:34 PM #15
Re: TGRL Signatures
I've already got all the images loaded up in a folder in my TG webspace. All I need to do is work in the script somehow to enable it (I understand it just drops in with the images, but I don't know what kind of file it's supposed to be).
I don't mean to seem ungrateful for you putting it all together and posting it. That's very helpful, thankyou. I just want to understand how to do it so I can learn. This looks like a useful tool I could use elsewere/elsewhen.
Thanks!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)




































Reply With Quote











Bookmarks