Log in

View Full Version : Function to retrieve filesystem stored avatar


Amenadiel
03-31-2008, 05:24 PM
Greetings:

I have moved the avatar store to the filesystem. Now I'm trying to tweak threabit template to show the avatar, but it turns out that the function:

$avatarurl = fetch_avatar_url($userid);

will return an url like this one:


http://www.chilehardware.com/foro/image.php?u=5177

which seems to work only on database stored avatars.

For that particular user, the correct avatar is located at:

http://www.chilehardware.com/foro/customavatars/avatar5177_1.gif

So, since it's displaying ok in the postbit, I believe this function must be already built somewhere.

HELP!!!!