dont know if this code may help.
PHP Code:
require_once('./includes/functions_user.php');
$navbar_ava = fetch_avatar_url($vbulletin->userinfo['userid']);
if (!is_array($navbar_ava))
{
$navbar_ava[] = $vbulletin->options['bburl'] . "/images/misc/noavatar.gif";//this will display a noavatar image if no avatar is used.
}
the $vbulletin->userinfo['userid'] will return the current logged in user but you can use any userid here.
call with
PHP Code:
<img src="$navbar_ava[0]">
in the template