AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   How Do You Get A Changing Advatar? (https://forums.alliedmods.net/showthread.php?t=10558)

Dizzy 02-22-2005 21:22

How Do You Get A Changing Advatar?
 
How Do You Get A Changing Advatar?

Like Kingpins?

I ahve a Directory Of Pictures But How DO you Make It Change The Picture Everytime Someone Views It?

Like Refreshes?

Freecode 02-22-2005 22:23

a php script

Dizzy 02-22-2005 22:25

do you know the script?

I would Like to use it for this board..

Ty...

Freecode 02-22-2005 22:31

i noe how to make it but i dont have time nor the power at this time. plus theres many steps onto making it.

Peli 02-22-2005 23:05

It's a PHP script , plus don't you need somewhere to have the files on? Webspace. Oh yea , it's an Avatar. :P

Dizzy 03-04-2005 21:10

I have webspace Peli

I Just Need The Script

:D

manorastroman 03-04-2005 22:59

http://www.phpmix.com/index.php?page=213&t=328
make your own

v3x 03-05-2005 04:15

I'm likin those expandable menus they use =].

nightscreem 03-05-2005 10:37

cool man :up:

kingpin 03-05-2005 15:54

lool coulda just pmed me :) or somethign anyways here it is :

Code:

<?php
$dh = opendir(".");
while (false !== ($file = readdir($dh)))
{
if (preg_match('/\.gif$/i', $file) and $file != "avatar.gif")
{
  $filelist[] = $file;
}
}

srand((double)microtime()*1000000);
$picnum = rand(0, sizeof($filelist) - 1);

header("Location: " . $filelist[$picnum]);

closedir($dh);
?>

all pictures in same dir as this one.


All times are GMT -4. The time now is 01:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.