PDA

View Full Version : Default Avatar (shown on all pages)


imported_Blindchild02
09-02-2004, 07:36 PM
Hey, well, i have my avatar in my Header...
and it only shows up on the forumhome.
and i would like it to show up on all pages.

i would also like it, so that people who dont have an avatar shows the default icon for no avatar, same with guests, and i would like it to show on all pages because my avatar is in the header :\

lovelyman_x
09-06-2004, 05:51 PM
First problem:
Login admincp==>Vbulletin Option
In User Registration Options,choose yes at Display Avatars
To show avatar in Member List:
Vbulletin Option==>User Listing & Profile Viewing .In Member List Field Options choose yes at Avatar
To show the default icon for no avatar:
Open file includes/functions_showthread.php
Find:
if (empty($avatarurl) OR ($bbuserinfo['userid'] > 0 AND !($bbuserinfo['showavatars'])))
{
$show['avatar'] = false;
}
else
{
$show['avatar'] = true;
}
Replace with:
$show['avatar'] = true;

if (empty($avatarurl) OR ($bbuserinfo['userid'] > 0 AND !($bbuserinfo['showavatars'])))
{
$avatarurl="$stylevar[imagesfolder]/avatars/noavatar.gif";
}
Save and re-upload the file to yourserver.
Then upload the file noavatar.gif to folder [imagesfolder]/avatars/
Have fun!

imported_Blindchild02
09-06-2004, 06:09 PM
i got this a few days ago, thanks though :)