Quote:
Originally Posted by Boofo
But you can use the in_array with calling forumids, right? Like this:
HTML Code:
if (in_array($forumid, array(XX, XX, XX)))
|
Yes, that is a different application though. If checking for specific forums that would work. If checking for primary usergroup only you could even use:
HTML Code:
if (in_array($bbuserinfo['usergroupid'], array (4,5,6)))
And have it work... Just the is_member_of() function is limited to a single userid. I haven't looked at Merk's hack for this but I suspect he simply wrapped the checks of that function in a FOR...EACH loop that checks each value in an array. Wouldn't be a bad change for the core product in my opinion.