MyBB Central

Full Version: Make a custom page that only certain groups can view
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I'm having some issues with a custom page I'm trying to make.
I want to set it so that only a certain group can view the page. ( IE upgraded member's )
I've gone in and set it up as a global template and a .php file.

I didn't want to use page manager.

Any one have any ideas? This seem's easy said but I'm unsure how to set it up.
I need this aswell so badly. I will be greatful if someone could help us with this.
This can be done using page manager with this code:

Code:
if($mybb->user['uid'] == 0)
{
    error_no_permission();
}

That basically restricts it so that guests will not be allowed to view the page. You could modify it to work for upgraded membergroup.