if ($vbulletin->options['avatarenabled'])
There should be option to turn on/off this
It is already a feature request here.
http://www.dragonbyte-tech.com/f44/remove-avatars-what%B4s-going-5656/
i also agree there should be an option to turn on and off perhaps in new version....
really quick question ozzy i took out my avatars like you instructed but now by each user name is 2 coma's instead of one is there a way to fix and how
example
user name,,tester5,,
before it was just a single coma between u/n
thanks in advance
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.