View previous topic :: View next topic |
Author |
Message |
James 3run
Joined: 19 May 2003 Posts: 3756
|
Posted: Tue Mar 30, 2004 7:26 am Post subject: Random avatar script |
|
|
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 |
|
|
V1rus Level 7: Broken Free
Joined: 30 Mar 2004 Posts: 474 Location: Belgium
|
Posted: Wed Mar 31, 2004 5:50 pm Post subject: |
|
|
Thx But i'm to lazy
_________________ Ain't no thing but a Chickin' wing
Even bigger newbie at free running then steve |
|
Back to top |
|
|
James 3run
Joined: 19 May 2003 Posts: 3756
|
Posted: Wed Mar 31, 2004 5:55 pm Post subject: |
|
|
Lol. OK, but you don't know what you're missing out on :p . _________________
|
|
Back to top |
|
|
|