Quote:
Originally Posted by MarkFL
When you use the is_member_of() function, you typically need to pass 2 arrays as parameters, the first should contain the usergroup information of the user in question, and the second array is a list of usergroupids you are checking for.
So, for example suppose you have the userid of the user in question (in $userid), what you could then use as a condition is:
is_member_of(fetch_userinfo($userid), array(X, Y, Z))
which will return true if the user with $userid as their userid is a member of any of the usergroups with usergroupid X, Y, or Z.
|
Right, which is why I don't think it would work for this situation, as it will pull the info for a specific user, not any user currently online. Unless i loop through all online users, which I do not want to do, as that would cause some bad load times if there are a lot of users.