Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Myyco.com Shop: Golden Teacher Liquid Culture For Sale

Jump to first unread post Pages: 1
Anno's multiple profile pics...
    #9536214 -

How come when I change my profile pic, it updates it on all of my past posts... But Anno, for example, has like 6 or 7 different profile pics that rotate at any given time on old posts?

How does he do that? Or is that an admin/mod privelage only?


(Hit refresh to see what I'm talking about)

-THanks

Extras: Filter Print Post Top
Re: Anno's multiple profile pics... [Re: CDS]
    #9536219 -

> How does he do that?

Here is a hint... open his avatar in a 'new window' and refresh a bunch.


--------------------
Just another spore in the wind.

Extras: Filter Print Post Top
Re: Anno's multiple profile pics... [Re: Seuss]
    #9536223 -

Right; it changes every time... But how do you set that up?

-Thanks

Extras: Filter Print Post Top
Re: Anno's multiple profile pics... [Re: CDS]
    #9536624 -

So far I have gathered that he has the following pics hosted on his own site, and somehow he set his server to rotate between them when any other site asks for that certain .jpg file...



So if anyone knows how to do that, I'd be greatly appreciative...

Extras: Filter Print Post Top
Re: Anno's multiple profile pics... [Re: CDS]
    #9536779 -

The code is at his website:

How to use:
1. Place suitable images in the same folder as the script resides.
The images should have a .jpg, .gif or a .png ending.

2. Copy the source of this script in a textfile, rename it avatar.php
(or any other name, as you please) and save it in the same directory as the images.

3. Call the script by appending a random name with the filetype ending.
Example:
http://www.fungifun.org/rotate/avatar.php/example.jpg

avatar.php is the name of the script

example.jpg is a random name, you could also use asasd.jpg or qwfpoa.jpg, the name doesn't matter,
what is important is the ending. The ending determines which files from the folder are used.
So, if you use example.gif, then the gif files in this folder will be used.
*/

$filetype = end(explode(".",$_SERVER['REQUEST_URI']));
if($filetype != "jpg" && $filetype != "gif" && $filetype != "png") exit;
if ($handle = opendir('.')) {
  while (false !== ($file = readdir($handle))) {
      if ($file != "." && $file != ".." && stristr($file, ".".$filetype)) $files[]=$file;
  }
  closedir($handle);
}
if ($files) {
    $imagenr = rand(0, sizeof($files)-1);
    if($filetype == "jpg") $filetype = "jpeg";
    $fp = fopen($files[$imagenr], 'rb');
    header("Content-Type: image/$filetype");
    header("Content-Length: " . filesize($files[$imagenr]));
    fpassthru($fp);
    exit;
}
?>


--------------------

Extras: Filter Print Post Top
Re: Anno's multiple profile pics... [Re: Mr. Mushrooms]
    #9541304 -

Awesome man, thanks a lot-

Extras: Filter Print Post Top
Jump to top Pages: 1

Myyco.com Shop: Golden Teacher Liquid Culture For Sale


Similar ThreadsPosterViewsRepliesLast post
* Personal Pic/Project Galleries Eightball 2,974 4 05/31/02 02:04 PM
by phrozendata
* !deleting uploaded pics!
( 1 2 all )
spud 6,189 27 03/09/03 08:03 PM
by eric_the_red
* Pic size primal_future 1,321 3 08/18/02 05:42 PM
by primal_future
* About Anno deciding for everybody....
( 1 2 3 all )
boxtop703 7,650 45 08/15/02 03:17 PM
by MeneerCactus
* thor and anno Captain Jack 2,763 16 05/10/03 09:03 PM
by Seuss
* Stoner pics aussishroomhead 1,127 1 06/17/01 08:00 AM
by Snargly
* Nude Underage Pics--How Appropriate??
( 1 2 3 all )
Joshua 41,979 59 03/30/05 12:54 PM
by John
* Anno's Avatar
( 1 2 all )
ShroomyMcPot 4,572 24 10/17/02 03:00 AM
by wrestler_az

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Ythan, Thor, Seuss, geokills
771 topic views. 0 members, 5 guests and 10 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2026 Mind Media. Some rights reserved.

Generated in 0.027 seconds spending 0.005 seconds on 16 queries.