Ok, I was working on trying to figure out why the path for th e"No Avatar" option was not working. Or, not showing the image that the path leads to for the default avatar. I have been going over the code and cannot figure out what the issue is. Can someone please take a look at the code quoted below and let me know if there is something there that should not be or if there is something that should be there that is not? thanks for the assistance.
Quote:
// 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'] . "";
$sc_avatar = "<img src=\"$navbaravatarurl\" alt=\"Your Avatar\" border=\"0\" />";
}
else
{
// no avatar specified
$noavatarurl = $vbulletin->options['default_noavatar_url'];
$nouseavatarchecked = HTML_CHECKED;
$avatarchecked[0] = '';
$sc_avatar = "<img src=\"" . $vbulletin->options[bburl] . "/$noavatarurl\" alt=\"Your Avatar\" border=\"0\" />"; // "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
|