Quote:
Originally Posted by Lynne
Try changing this:
Code:
if (!$vbulletin->userinfo['userid']) print_no_permission();
To something more like this:
Code:
if (!$vbulletin->userinfo['userid'] OR !is_member_of($bbuserinfo, 5, 6, 7)) print_no_permission();
That will give an error if the user is not logged in or if the member is not a member of usergroups 5,6, or 7.
|
Okay, I tried this and it worked when I was logged out but not when I was logged in. I am in Group 5 and it said I did not have sufficient permissions. Should this phrase not be
Code:
if (!$vbulletin->userinfo['userid'] OR !is_member_of($bbuserinfo, 1, 2, 3, 4)) print_no_permission();
I want the error page for groups 1, 2, 3, 4 and people not logged in.