Jump to content
Sign in to follow this  
Guest

Ask a mod

Recommended Posts

Both kegety and Avon have these random avantars.

Correction: had.

Mine got lost somewhere in TacticalBlunder.com. sad_o.gif

Share this post


Link to post
Share on other sites

LOL ya muppet why do you think I said I can only see two? wink_o.gif

Share this post


Link to post
Share on other sites

I swear it wasn't working at first! tounge_o.gifbiggrin_o.gif

I guess either you or Ex-Ronin been messsing to make me look stooopid wink_o.gifbiggrin_o.gif

Share this post


Link to post
Share on other sites

Yeah I added it to the list of acceptable image extensions, obviously if it turns out to be detrimental it will be removed just as quickly smile_o.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]Yeah I added it to the list of acceptable image extensions

Cheers m8 biggrin_o.gif

Share this post


Link to post
Share on other sites

Hey can some one help me with a Random avatar that shows up a new avatar evry time you refresh the page?

Thnxs.

Share this post


Link to post
Share on other sites

You need to create a php script that selects a random file from a directory on your webspace, when you have the script upload all your images to an empty folder on your webspace and put the link of the script in your avatar box. e.g. http://www.WaffenDennis.com/images/Random.php

smile_o.gif

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><?

// Gadger pwns you!

$folder=opendir(".");

while ($file = readdir($folder))

$names[count($names)] = $file;

closedir($folder);

sort($names);

$tempvar=0;

for ($i=0;$names[$i];$i++){

$ext=strtolower(substr($names[$i],-4));

if ($ext==".jpg"||$ext==".gif"||$ext=="jpeg"||$ext==".png"||$ext==".swf"){$names1[$tempvar]=$names[$i];$tempvar++;}

}

srand ((double) microtime() * 9999999999999999);

$rand_keys = array_rand ($names1, 2);

$slika=$names1[$rand_keys[0]];

if (!isset($tnsize)) {

header ("Location: $slika");

}

?>

Copy and paste this into notepad and save as .php

Share this post


Link to post
Share on other sites

OK. Got the script working now but:

the forums doesent support .php Avatar so how van i fix that? sad_o.gif

Share this post


Link to post
Share on other sites
OK. Got the script working now but:

the forums doesent support .php Avatar so how van i fix that? sad_o.gif

If you pay me enough, I will enable PHP avatars wink_o.gif

Share this post


Link to post
Share on other sites
OK. Got the script working now but:

the forums doesent support .php Avatar so how van i fix that? sad_o.gif

If you pay me enough, I will enable PHP avatars wink_o.gif

Paying a?

Il pay you with: Friendship

Accept it or uhm?

hmm let me thing about the "OR" part.

But any way:

DO IT PLEASE ENABLE PLEASE PLEASE biggrin_o.gif

Dont do it and il keep on begging till they must take you to the nuts house wink_o.gifcrazy_o.gif

Share this post


Link to post
Share on other sites

this is "Ask a mod" thread, not "Help me with my sig" thread.

Please use PM to communicate.

Share this post


Link to post
Share on other sites

I got offered a better bribe so I've enabled php for avatars wink_o.gif

Share this post


Link to post
Share on other sites
this is "Ask a mod" thread, not "Help me with my sig" thread.

Please use PM to communicate.

Sorry Ralph but i dident know who i needed to PM.

And thnxs to:

Placebo (for enabeling PHP )

and

Gadger ( for the PHP script )

I got a working Avatar now biggrin_o.gif

PS:

I wont happen again.

Share this post


Link to post
Share on other sites

@placebo: What's up with the VIP-Award? Received a reasonable amount of votes or will it remain open for, uhmmm, another six month? wink_o.gif

Share this post


Link to post
Share on other sites

Albert offered me $50 worth of Cuban cigars if I kept it open until he won quirkiest forum member wink_o.gif

Well basically it's closed and as soon as I have time I'll counting up the votes, I think we ended up with something like 65 people voting, people are free to vote up until the point I have finished adding up, hopefully it will be before Sunday.

Share this post


Link to post
Share on other sites

Aah, bribes are for desperate losers...

Oh, by the way, placebo... did you get that, um... 'package'... I sent you? You know, the 'package' that certainly isn't a large wad of money..... rock.gif

biggrin_o.gif

[Gareth Gates must die]

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×