REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make a custom page that only certain groups can view
#1
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.
Reply
#2
I need this aswell so badly. I will be greatful if someone could help us with this.
Reply
#3
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.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Ficon, make it work with 1.8 Kiggoz 9 5,556 Jan 20, 2018, 05:21 AM
Last Post: May
  [Tutorial]Add page to mybb Angel 13 10,820 Nov 24, 2017, 11:02 PM
Last Post: Mercuy
  MyBB change index page? Yoshistr 9 6,097 Nov 24, 2017, 11:01 PM
Last Post: Mercuy
Question Any way to make new users default to multiple groups? Jayfore 1 1,367 Oct 11, 2017, 06:06 PM
Last Post: DrBaja
  Custom font reverted to plain when I installed SSL on my forum. How do I fix it? shelby2 2 1,016 Feb 22, 2017, 08:30 PM
Last Post: shelby2

Forum Jump:


Users browsing this thread: 1 Guest(s)