// untested, you need to test it out !! // 1,2,3 are userids permitted to login if (!in_array($vbulletin->userinfo['userid'], array(1,2,3))) { $return_value = false; }