$valid_ids = explode("|", $vbulletin->options['allowedids']);if (!in_array($vbulletin->userinfo['userid'], $valid_ids)){//userid not in the option}