Shamil.
12-19-2010, 12:31 AM
Hello,
I'd like to be able to set, in my custom script (or its template), a permission check, to see if the user is a member of x usergroup.
If the case that the check is true, the user would be able to see the page, if not, the permission error message is invoked. How do I go about doing this?
I'm getting there:
if ($vbulletin->userinfo['userid']) print_no_permission();
Yes, I know that block non-registered users. How do I restrict it so that those in a specific usergroup cannot see the message?
--------------- Added 1292727105 at 1292727105 ---------------
Fixed with:
if ($vbulletin->userinfo['usergroupid']!= 6) print_no_permission();
I'd like to be able to set, in my custom script (or its template), a permission check, to see if the user is a member of x usergroup.
If the case that the check is true, the user would be able to see the page, if not, the permission error message is invoked. How do I go about doing this?
I'm getting there:
if ($vbulletin->userinfo['userid']) print_no_permission();
Yes, I know that block non-registered users. How do I restrict it so that those in a specific usergroup cannot see the message?
--------------- Added 1292727105 at 1292727105 ---------------
Fixed with:
if ($vbulletin->userinfo['usergroupid']!= 6) print_no_permission();