if (!isset($vbulletin->userinfo['userid']) OR $vbulletin->userinfo['userid'] == 0) {what to do if they aren't logged in}
if ($vbulletin->userinfo['userid'] > 0) {what to do if they are logged in}