require_once('./includes/functions_user.php'); $user_ava = fetch_avatar_url($vbulletin->userinfo['userid']);if ($user_ava[0] == "") $user_ava[0] = "http://www.yourdomain.com/images/noavatar.gif";