kr580
01-13-2006, 04:53 AM
I have this plugin installed and I love it. One problem: it doesn't show on the CMPS. Can someone help me figure out how to make it work? I assume I need some '../forums/' in some places but I honestly don't know.
Plugin: http://www.vbulletin.org/forum/showthread.php?t=99498
How it appears:
CMPS:
http://i4.photobucket.com/albums/y114/kr580/vba.gif
Forums:
http://i4.photobucket.com/albums/y114/kr580/vb.gif
--------------------------------------------------------------------------
Here's the URLs to my site.
CMPS: http://www.nflnow.net
Forums: http://www.nflnow.net/forums
Navbar modification code:
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>
Plugin code:
// Avatar In NavBar
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\" />";
}
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\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar
Can anyone help at all? :confused: Any help is greatly appreciated!
Thanks - kr580
Plugin: http://www.vbulletin.org/forum/showthread.php?t=99498
How it appears:
CMPS:
http://i4.photobucket.com/albums/y114/kr580/vba.gif
Forums:
http://i4.photobucket.com/albums/y114/kr580/vb.gif
--------------------------------------------------------------------------
Here's the URLs to my site.
CMPS: http://www.nflnow.net
Forums: http://www.nflnow.net/forums
Navbar modification code:
<td class="alt1"><a href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a></td>
Plugin code:
// Avatar In NavBar
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\" />";
}
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\" />";
}
else
{
// no avatar specified
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$navbaravatar = "<img src=\"" . $vbulletin->options[bburl] . "/$stylevar[imgdir_misc]/noavatar.gif\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
}
}
// Avatar In NavBar
Can anyone help at all? :confused: Any help is greatly appreciated!
Thanks - kr580