if ($vbulletin->options['avatarenabled'])
It's not handled by a template, and file edits aren't supported. If it's really bothering you then you can remove the if block that starts withfrom /dbtech/infopanels/hooks/forumhome_loggedinuser.php but we're unable to provide support for changes or problems that occur as a result of changes like thesePHP:if ($vbulletin->options['avatarenabled'])
![]()
if ($vbulletin->options['avatarenabled'])
{
if (!function_exists('fetch_avatar_url'))
{
// Get the avatar function
require_once(DIR . '/includes/functions_user.php');
}
if ($userid == $vbulletin->userinfo['userid'])
{
if (!$vbulletin->userinfo['avatarurl'])
{
// Get avatar URL
$avatarurl = fetch_userinfo($userid, 2, 0, 1);
// Add avatar info to loggedin array (VB Y U FORCE ME TO DO THIS)
$loggedin['avatarpath'] = $avatarurl['avatarpath'];
$loggedin['hascustomavatar'] = $avatarurl['hascustomavatar'];
$loggedin['avatardateline'] = $avatarurl['avatardateline'];
$loggedin['avwidth'] = $avatarurl['avwidth'];
$loggedin['avheight'] = $avatarurl['avheight'];
$loggedin['avheight_thumb'] = $avatarurl['avheight_thumb'];
$loggedin['avwidth_thumb'] = $avatarurl['avwidth_thumb'];
$loggedin['filedata_thumb'] = $avatarurl['filedata_thumb'];
$loggedin['avatarid'] = $vbulletin->userinfo['avatarid'];
$loggedin['avatarrevision'] = $vbulletin->userinfo['avatarrevision'];
// Yay it's available in vB3 after all :D
fetch_avatar_from_userinfo($loggedin);
}
else
{
// Just in case...
$loggedin['avatarurl'] = $vbulletin->userinfo['avatarurl'];
}
}
else
{
// Yay it's available in vB3 after all :D
fetch_avatar_from_userinfo($loggedin);
}
// Set musername
$loggedin['musername'] = '<img border="0" src="' . $loggedin['avatarurl'] . '" alt="" width="20" height="20" /> ' . $loggedin['musername'];
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.