Code:
$[high]avatarurl[/high]=getavatarurl($[high]userinfo[/high][userid]);
if ($[high]avatarurl[/high]!='') {
eval("\$userinfo[avatar] = \"".gettemplate("postbit_avatar")."\";");
} else {
$[high]userinfo[avatar][/high] = " ";
}
eval("\$userinfo[profile] = \"".gettemplate("postbit_profile")."\";");
$bbuserinfo is the info of the user viewing the page.
And [high]avatarurl[/high] because that's what postbit_avatar uses.