LOTR movie then

  • Thread starter Thread starter dagsverre
  • Start date Start date
Status
Not open for further replies.
I've been messing 'round with my avatar and I got a random avatar to work.... the only problem is sometimes it displays a broken image display.
 
His avatar only works when his system is online, since it come from his personal server...

Kind of sucks if you're surrfing when he's off-line.

BTW: How did you do that random avatar thing? That's cool!

Sephiroth 3D

"I don't understand..." "You don't have to understand." - Final Fantasy: The Spirits Within

Sephiroth 3D.com
[email protected]
 
he probably made a script that selects a picture and renames it every few minutes/visits.
 
Here's the perl code:

Code: [Select]
Code:
#!/usr/bin/perl$IMAGE_DIRECTORY = "enter the path to your image directory here";my $line = "";my $file1= "";my $x=0;opendir (DIR,"$IMAGE_DIRECTORY");while ($fileName = readdir(DIR)) {        next if (-d $IMAGE_DIRECTORY . $fileName); next if ($fileName !~ /w/); $ls[$x] = $fileName; $x+=1;}closedir(DIR);srand();$file1 = int(rand(@ls));print ("Pragma: no-cachen");if ($ls[$file1] =~ /.gif$/i) { print ("Content-type: image/gifnn");} elsif ($ls[$file1] =~ /.jpg$|.jpeg$/i) { print ("Content-type: image/jpgnn");} else { # exit(0);}open (INPUT, $IMAGE_DIRECTORY . $ls[$file1]);while ($line = ) { # print ($line);}close(INPUT);exit(0);#FILE: random.pl

nb. It only works for gif and jpg files as far as I know.

I finaly finished downloading The Fellowship Of The Ring today off Morpheus...... amazing :lol:
 
hmm... where there is that input box in the above code the line should be:

w h i l e   ( $ l i n e   =   < I N P U T > )   {   #

Without the spaces obviously.
 
Whoa! Lot to copy! I'm assuming you just link to that script, right?

Hmm... I wonder if you can use a flash animation as your avatar... something to test later...

Sephiroth 3D

"I don't understand..." "You don't have to understand." - Final Fantasy: The Spirits Within

Sephiroth 3D.com
[email protected]
 
hmmmm...... you can link your avatar to a script?
[edited] 249 2002-01-08 22:08
 
proably a script output. delete file x from folder x, move file y to folder x from folder y, rename file y as file x. hell i could do that in vb if i wanted too, perl seems a bit unnessacary...whatever works.

edit: neat we can put input boxes in to the board posts......
like so:
[edited] 275 2002-01-09 03:32
 
Yeah, but what are you gonna use it for? It's not like it can DO anything...

Sephiroth 3D

"I don't understand..." "You don't have to understand." - Final Fantasy: The Spirits Within

Sephiroth 3D.com
[email protected]
 
Yeah its priety pointless to have them Input Boxes but ya never know you might be able to do something with them! Why else would they be there? Probably just a bug in phpBB though.

PurpleSmurf: Your method sounds a hell of a lot more complicated than the Perl script... what's with the renaming and moving etc??
 
lets say that oyu have  have to delete/move it the folder that is folder Y. then from folder Y where all of the other images are stored you pull out a random image, file Y. File Y is then put into folder X and renamed as file X.
not sure i can explain is anymore maybe i wrote a code snipit for you people and showed you a worinf example.....
 
It just seems a silly concept of having to move and rename files.... or maybe i still dont quite understand what you mean.
 
It's an intended bug in qhimms forums since I had to fix all the HTML posts.
*sigh*
another thing to fix.
 
tell you waht jedi. as son as i get home i'll make a working example for you.

BUT THE INPUT BOXES LOOK SO COOL!!! :)
 
odd that that should work, as HTML is disables and anything else between this < and > this is not visible


[edited] 249 2002-01-09 21:48
 
what? darkness what did you put for a post? i can't see it........does anyone else have ythis problem?
 
Status
Not open for further replies.
Back
Top