Неужели никто не поможет. Вот, нашел функцию, которая отвечает за вывод аватаров на форум:
Код:
// ###################### Start getavatarurl #######################
function fetch_avatar_url($userid)
{
global $vbulletin;
if ($avatarinfo = $vbulletin->db->query_first("
SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline,
customavatar.width, customavatar.height
FROM " . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid = $userid"))
{
if (!empty($avatarinfo['avatarpath']))
{
return array($avatarinfo['avatarpath']);
}
else if ($avatarinfo['hascustom'])
{
$avatarurl = array();
if ($vbulletin->options['usefileavatar'])
{
$avatarurl[] = $vbulletin->options['avatarurl'] . "/avatar{$userid}_{$avatarinfo['avatarrevision']}.gif";
}
else
{
$avatarurl[] = "image.php?u=$userid&dateline=$avatarinfo[dateline]";
}
if ($avatarinfo['width'] AND $avatarinfo['height'])
{
$avatarurl[] = " width=\"$avatarinfo[width]\" height=\"$avatarinfo[height]\" ";
}
return $avatarurl;
}
else
{
return '';
}
}
}