Quote:
Originally Posted by RLShare
explode returns an array of the elements that were seperated by the '|' therefore you should use the in_array function to check and see if the ID is in the array.
PHP Code:
$valid_ids = explode("|", $vbulletin->options['allowedids']); if (!in_array($vbulletin->userinfo['userid'], $valid_ids)) { //userid not in the option }
|
Thanks man. It worked. I remember trying an array to do it, but still couldn't get it to work. Maybe I missed something, I don't know. Anyway thanks a lot!