Vote for my next avatar

Started by cpage, Sat 10/05/2003 12:50:26

Previous topic - Next topic

cpage

Okay so i'm having a little trouble selecting my next avatar so I would like you to please vote for one of the three

(a)
(b)
(c)

oh and tell me what you guys think of them

Jimi


Andail

With those avatars, there is a risk that people will stop looking at what you write

Jimi

Why don't you do what Timosity does, and set it so you have a random avatar?

Rincewind

I'd say the third one, actually.

cpage

Quote from: Jimi on Sat 10/05/2003 12:56:58
Why don't you do what Timosity does, and set it so you have a random avatar?
uhmm how?

SLaMgRInDeR

either the first or the last, the middle oneis good, but i like martial arts so i like the others more.
(   (   ( <( -_-)> )   )   )

Flippy_D

The last is the most technically accomplished. You can have those "random" avatars by using PHP. But dont ask me how it works.

Jimi

to get the random avatar thing happening, First you need a host that supports PHP

Then you need to make a page that contains this code

Code:

<?
$absolute_path = "avatar";
$dir = opendir($absolute_path);
while($avatar = readdir($dir)) {
if (($avatar != "..") and ($avatar != ".")) {
 $avatars[] = "$avatar";
}
}
$avatars = str_replace(chr(32),"%20",$avatars);
$random = array_rand ($avatars, 1);
$randomAvatarURL=$avatars[$random];
$avatar = fopen("$absolute_path/$randomAvatarURL","r");
while (!feof ($avatar)) {
       print fread($avatar,120);
}
fclose($avatar);
?>




call the file avatar.php or something like that

create a folder on your site "avatar"

Then all you have to do is put the avatars you want into that folder.

also you need to link to the page instead of an image eg.

yoursite.com/avatar.php
instead of
yoursite.com/avatar.gif


Note this line
$avatar = fopen("$absolute_path/$randomAvatarURL","r");

it is automatically changed from just 1 letter rrr to are

It's that text fixeruper thing

*Thats what timosity said*

cpage

#9
wait the problem is my free sites dont allow too much bandwidth

so the votes are
#1- *
#2- *
#3- ***
none of the above- *
3 it is

edit:I'll also try and add more to it ;)


Neole

I vote #1 - they all excellent.

remixor

#3

Have you seen those Xiao Xiao (I'm sure I've spelt that wrong) stick man fight flash things?  It reminds me of those.  Good job!
Writer, Idle Thumbs!! - "We're probably all about video games!"
News Editor, Adventure Gamers

Eero

Hmm, I have seen referring to Xiao Xiao on three different boards today... I only visit 7 frequently...

cpage

xiao xiao is awsome but these are alll mine

egg: yup thats what I used

SMF spam blocked by CleanTalk