thank you for the reply,
actually my problem is kind of strange, the avatar is only showing when I am viewing the forumdisplay or showthread pages , its not showing in other sections like forumhome , vbadvanced cmps or my gallery !!!!
I even used a custom plugin instead of your product but it was the same , its so strange, please take a look at the screenshots and my custom plugin, I have no idea what is causing this issue.
I can provide you my templates in pm if they are needed ...
really appreciate your help.
thank you
My Custom plugin : (Hook Location : Global Start)
PHP Code:
if ($vbulletin->userinfo['avatarid'])
{
// using a predefined avatar
$avatar = $db->query_first("SELECT avatarpath FROM " . TABLE_PREFIX . "avatar WHERE avatarid = " . $vbulletin->userinfo[avatarid] . "");
$avatarid = $avatar['avatarid'];
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$avatar[avatarpath]\" alt=\"Your Avatar\" border=\"0\" class=\"avatar\" style=\"width:150px\" />";
}
else
{
// not using a predefined avatar, check for custom
if ($avatar = $db->query_first("SELECT dateline, userid FROM " . TABLE_PREFIX . "customavatar WHERE userid = " . $vbulletin->userinfo[userid] . ""))
{
// using a custom avatar
$navbaravatarurl = ($vbulletin->options['usefileavatar']) ? "" . $vbulletin->options[avatarurl] . "/avatar$avatar[userid]_" . $vbulletin->userinfo[avatarrevision] . ".gif" : "" . $vbulletin->options[bburl] . "/image.php?u=" . $vbulletin->userinfo['userid'] . "&dateline=" . $avatar['dateline'] . "";
$navbaravatar = "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" class=\"avatar\" style=\"width:90px\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/images/vuel/misc/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" style=\"width:100px\" class=\"avatar\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
Snapshots :
forumdisplay and showthread:
forumhome , vbadravced and other pages :
thnx