require_once('./includes/functions_user.php'); if (THIS_SCRIPT == 'private') { $pm[avatarurl] = fetch_avatar_url($pm['fromuserid']); if (!$pm[avatarurl]) { $pm[avatarurl] = $stylevar['imgdir_misc'] . 'images/misc/unknown.gif'; } else { $pm[avatarurl] = $vbulletin->options['bburl'] . '/' . $pm[avatarurl][0]; } }
<img src="{vb:raw pm.avatarurl}" />