Quote:
Originally Posted by yotsume
Code:
userinfo['userid']==0
In your code do I have to change the user ID to match the usergroup(s) I wish to block from seeing the content?
|
The way I did that one was to only prevent "guests" Guests have a UserID of 0. You asked me to show you how to prevent "GUESTS" from viewing the tab content files directly.
To block specific user groups, use this instead... in this example, it blocks user groups 5 and 6 from seeing the content.
Code:
if (is_member_of($vbulletin->userinfo, 5,6))