top_posters.php
after changin line 59 from
"$avatarurl = forums/images/misc/unknown.gif"
to
$avatarurl = 'forums/image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&dateline=$top_poster[avatardateline]";
that is same as line 49....reason is to display avatars ....
where to change code to call "unknown.gif" for users who dont have avatar!?
part of code in my "top_posters.php" (part in blue is line 59)
Code:
$avwidth = '';
$avheight = '';
if ($top_poster['avatarid'])
{
$avatarurl = $top_poster['avatarpath'];
}
else
{
if ($top_poster['hascustomavatar'] AND $vbulletin->options['avatarenabled'] AND ($vbulletin->userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canuseavatar']))
{
if ($vbulletin->options['usefileavatar'])
{
$avatarurl = $vbulletin->options['avatarurl'] . "/avatar$top_poster[userid]_$top_poster[avatarrevision].gif";
}
else
{
$avatarurl = 'forums/image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&dateline=$top_poster[avatardateline]";
}
if ($top_poster['avheight'] AND $top_poster['avwidth'])
{
$avheight = "height=\"$top_poster[avheight]\"";
$avwidth = "width=\"$top_poster[avwidth]\"";
}
}
else
{
$avatarurl = 'forums/image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$top_poster[userid]&dateline=$top_poster[avatardateline]";
}
}
if (!$avatarurl)
{
$mod_options['adv_portal_top_posters_avatar'] = false;
}
else
{
$mod_options['adv_portal_top_posters_avatar'] = true;
}
}