Quote:
Originally Posted by Raz3r
Let me apologize if this was already answered, but i have spent hours reading threw things only to NOT find the answer to my question. My question is I made the custom page without a problem and all works just fine but what i would like to do is only allow certain groups to be able to view the page what is the step by step process that is needed to accomplish this? what files do i need to edit and what is the content needed to edit them with? I hope someone out there can help me fix this as i have been stuck for a while now
|
This has actually been covered a few times. You want a condition like this:
PHP Code:
if (!is_member_of($vbulletin->userinfo, x, y, z))
{
// no permission if you aren't a member of usergroupid x, y, or z
print_no_permission();
}
x,y,z are usergroups that are ALLOWED.