Hosted by 2WDH.com .:. Professional and affordable web hosting...
 Home | Forums | Donate
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Random avatar script

 
Post new topic   Reply to topic    Twisted Mind Games Forums Forum Index -> Random Discussion
View previous topic :: View next topic  
Author Message
James
3run
3run


Joined: 19 May 2003
Posts: 3756

PostPosted: Tue Mar 30, 2004 7:26 am    Post subject: Random avatar script Reply with quote

I was bored, so I wrote up this script that will let you set your avatar as a random one out of a selection, and it works on any phpBB forum!

Here is the code:

Code:

<?php

$avatars[0] = "billyNew.JPG";
$avatars[1] = "manny.JPG";
$avatars[2] = "avatar_manny.gif";

$url = 'http://www.mysite.com/randomAvatarScript/avatars/';             //Folder where the avatars are located

$avatar_number = rand(0,2);                            //Replace that with the number of avatars
                                                       //you have (take away 1 because it includes 0)

$rand_avatar = "$avatars[$avatar_number]";
header("Location: $url" . "$rand_avatar");

?>


Just post here if you need any help understanding or getting it to work.
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website
V1rus
Level 7: Broken Free
Level 7: Broken Free


Joined: 30 Mar 2004
Posts: 474
Location: Belgium

PostPosted: Wed Mar 31, 2004 5:50 pm    Post subject: Reply with quote

Thx But i'm to lazy
Cool
_________________
Ain't no thing but a Chickin' wing

Even bigger newbie at free running then steve Very Happy
Back to top
View user's profile Send private message Visit poster's website
James
3run
3run


Joined: 19 May 2003
Posts: 3756

PostPosted: Wed Mar 31, 2004 5:55 pm    Post subject: Reply with quote

Lol. OK, but you don't know what you're missing out on :p .
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Twisted Mind Games Forums Forum Index -> Random Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group