Mythor,
I took your idea and in order to get mine to work, I had to do more. Though instead of messing with the XML file, I just did it on the top_posters.php file. After applying your changes in
blue, I had to apply what is in
red too, see below (note, "forums" is my forum directory, for all users, make sure it's your directory name, not mine) :
Code:
// User custom avatar
if ($vbulletin->options['usefileavatar']) {
if ($thumb AND @file_exists($vbulletin->options['avatarpath'] . "/thumbs/avatar$userinfo[userid]_$userinfo[avatarrevision].gif")) {
$avatarurl = "/forums/" . $vbulletin->options['avatarurl'] . "/avatar$userinfo[userid]_$userinfo[avatarrevision].gif";
} else {
$avatarurl = "/forums/" . $vbulletin->options['avatarurl'] . "/avatar$userinfo[userid]_$userinfo[avatarrevision].gif";
}
} else {
if ($thumb AND $userinfo['filedata_thumb']) {
$avatarurl = '/forums/image.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $userinfo['userid'] . "&dateline=$userinfo[avatardateline]&type=thumb";
} else {
$avatarurl = '/forums/image.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $userinfo['userid'] . "&dateline=$userinfo[avatardateline]";
Now it works, (demo here:
http://www.phototherapy.org/index.php ) much thanks! rg sends!