// include backendrequire_once('./global.php');require_once(DIR . '/includes/functions_user.php');// setup avatar if exists$avatar = fetch_avatar_url($vbulletin->userinfo['userid']);if (empty($avatar) AND $vbulletin->options['avatarenabled']){ // user has no avatar}