Log in

View Full Version : Table where we store the state of the avatar


Zona-Tv
02-20-2009, 09:31 AM
I would like to know which table stores the settings to display or not the user's avatar, is that the value is -1 but can not find for the function that allows this to -1 if not pictured.

For more information, I am using (on Non Vbullein Login Page) on my site.

Thanks in advance. ;)

Dismounted
02-21-2009, 03:33 AM
Have a look at functions_user.php.

Zona-Tv
02-25-2009, 02:38 PM
Have a look at functions_user.php.

Thanks, I solved with a hack "no avatar", just had a role to which I was interested in the place here to help others:


require_once('"folder of the forum"/includes/functions_user.php');
$navbar_ava = fetch_avatar_url($vbulletin->userinfo['userid']);
// We check if you have avatar
if (!is_array($navbar_ava)){
echo'<img src="'.$forumpath.'images/avatars/noavatar.gif" border="0">';
}else{
echo'<img src="'.$forumpath.'customavatars/avatar'.$vbulletin->userinfo['userid'].'_'.$vbulletin->userinfo['avatarrevision'].'.gif" border="0">';
}


Greetings ;)