Quote:
Originally Posted by Wayne Luke
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.
|
merk's hack is great. I asked about that on vb.com, if I remember right. That would be a great addition to vbulletin, like you said. Mayve we'll see it in the next update?
Ok, back to the code at hand. Basically, using the code I posted with the OR and changing the post to bbuserinfo is the same thing you posted, right?
[high]* Boofo writes this down because he isn't right too often.

[/high]