FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » One good idea
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
One good idea [message #3273] Sat, 15 June 2002 12:28 Go to next message
Ecxeleron is currently offline  Ecxeleron   Australia
Messages: 187
Registered: January 2002
Location: Australia
Karma: 0
Senior Member
a maximum size for avatars, anywayz the thing I was gonna say is avatar rotation! I found this tiny scripts on hotscripts:

<?php 

//read folder
$folder=opendir("."); 
while ($file = readdir($folder)) 
$names[count($names)] = $file; 
closedir($folder);
//sort file names in array
sort($names);
//remove any non-images from array
$tempvar=0;
for ($i=0;$names[$i];$i++){
$ext=strtolower(substr($names[$i],-4));
if ($ext==".jpg"||$ext==".gif"||$ext=="jpeg"||$e xt==".png"){$names1[$tempvar]=$names[$i];$tempvar++;}
}
//random
srand ((double) microtime() * 10000000);
$rand_keys = array_rand ($names1, 2);
//random image from array
$slika=$names1[$rand_keys[0]]; 
//image dimensions
$dimensions = GetImageSize($slika); 
if (isset($pic)){header ("Location: $slika");}
else {echo "<img src=\"$slika\" $dimensions[3]>";}
?>



Re: One good idea [message #3277 is a reply to message #3273] Sat, 15 June 2002 16:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Why rotate avatars? This would only cause unnecessary bandwidth load not to mention not worok 80% of the time due to browser caching the avatar image.

FUDforum Core Developer
Re: One good idea [message #3289 is a reply to message #3273] Sun, 16 June 2002 00:24 Go to previous messageGo to next message
Anonymous   Australia
You may just have a point there, but I'll stay with my rotating avatars unless you don't want me to :)
Re: One good idea [message #3290 is a reply to message #3273] Sun, 16 June 2002 00:26 Go to previous messageGo to next message
Ecxeleron is currently offline  Ecxeleron   Australia
Messages: 187
Registered: January 2002
Location: Australia
Karma: 0
Senior Member
woops, that was me, the cookie monster 8 my cookies Laughing


Re: One good idea [message #3291 is a reply to message #3273] Sun, 16 June 2002 00:45 Go to previous messageGo to next message
Ecxeleron is currently offline  Ecxeleron   Australia
Messages: 187
Registered: January 2002
Location: Australia
Karma: 0
Senior Member
bugga, my avatars won't rotate in mozilla Crying or Very Sad


Re: One good idea [message #3292 is a reply to message #3273] Sun, 16 June 2002 00:51 Go to previous messageGo to next message
Ecxeleron is currently offline  Ecxeleron   Australia
Messages: 187
Registered: January 2002
Location: Australia
Karma: 0
Senior Member
any idea on how to make it work in mozilla?


Re: One good idea [message #3296 is a reply to message #3273] Sun, 16 June 2002 03:29 Go to previous message
Ecxeleron is currently offline  Ecxeleron   Australia
Messages: 187
Registered: January 2002
Location: Australia
Karma: 0
Senior Member
Oh, it rotates only when I restart mozilla


  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Topics list in a forum also in tree-view!?
Next Topic: better design
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 13:44:33 GMT 2024

Total time taken to generate the page: 0.02166 seconds