PDA

View Full Version : easiest way to...


bharvey42
03-12-2003, 04:08 PM
Ok, there will be customized avatars the users will be able to upload there own. It is saved as there username.gif

Now In the postbit template I would like to be able to display that avatar

$userinfo[username].gif when I use this i get a broken link if the user hasn't uploaded there avatar yet. I made it so it would load a transparent gif and stuck the gif into a table as a background but it repeats if it isn't 66x64.

So what would be the best way to check if the file exists and display it and if not just display the transparent image and fill where the avatar would be?

Thanks

filburt1
03-12-2003, 04:51 PM
Look for the Default Avatar hack.

Dean C
03-12-2003, 05:06 PM
Try searching next time buddy :)

Here you go :D:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=44829&highlight=default+avatar

Regards

- miSt

bharvey42
03-12-2003, 05:32 PM
I love when I get reminders to serach for something that won't work for me.

The avatars are stored as the members name. This is not utilizing the vB avatar. That is why my question was pretty specific.

I am wondering how I can have the postbit template check to see if the .gif file containing the username exists and if it doesn't display a transparent gif.

Dean C
03-12-2003, 05:39 PM
Make a request in the requests forum :)

- miSt