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
Question Any way to make new users default to multiple groups? Jayfore 1 806 Oct 11, 2017, 06:06 PM
Last Post: DrBaja
  MyBB change index page? Yoshistr 7 4,187 Aug 21, 2017, 07:40 AM
Last Post: Frances
  [Tutorial]Add page to mybb Angel 12 7,822 May 01, 2017, 02:27 PM
Last Post: actavis
  Ficon, make it work with 1.8 Kiggoz 8 3,920 Mar 02, 2017, 05:49 AM
Last Post: sova174
  Custom font reverted to plain when I installed SSL on my forum. How do I fix it? shelby2 2 558 Feb 22, 2017, 08:30 PM
Last Post: shelby2

Forum Jump:


Users browsing this thread: 1 Guest(s)