MyBB Community Forums

Full Version: Help with Permissions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
you can use code like below
<?php

if(!in_array($mybb->user['usergroup'], array('3','4','6')))
{
        error_no_permission();
}

echo ("for staff"); // remove this after adding the content 
// content for staff
?>
OK thank you.
do i replace the // content for staff with the content on the page and then remove the part that says: echo ("for staff"); // remove this after adding the content; and all this should be under the page content right?
anyone?