Current time: 04-16-2014, 10:34 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with viewing permissions
02-02-2012, 01:55 AM
Post: #1
Not Solved Help with viewing permissions
Hello, I have just got the Page Manager Plugin for my forums and I was wondering if there was a way to make it so that only a certain group can view/go to this page as in I only want the staff of the forums to view the page and no one else. Is it possible to do this? or should I use something different for pages so that I can do this? Thanks.
Big Grin
Find all posts by this user
Quote this message in a reply
02-02-2012, 04:46 AM (This post was last modified: 02-02-2012 04:46 AM by ranjani.)
Post: #2
Not Solved RE: Help with viewing permissions
if it is php code then you can use code similar to below :

PHP Code:
if (in_array($GLOBALS['mybb']->user['usergroup'], array(3,4,6)))
// your content for staff 

if you are using regular html code then try template conditionals plugin and use code similar to below

PHP Code:
<if  in_array($GLOBALS['mybb']->user['usergroup'], array(3,4,6)) then>
// your content for staff 
</if> 
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication