bharvey42
04-08-2003, 06:44 AM
I have a customized avatar system that stores custom avatars as the users 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?
This does not use vB's avatar field so simply checking the usersinfo on the user won't work.
Thanks
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?
This does not use vB's avatar field so simply checking the usersinfo on the user won't work.
Thanks