MyBB Community Forums

Full Version: Limiting access to syndication page (?)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Is it possible to limit access to the syndication page? I am interested in blocking guests from using it and I did not see anything in group permissions about it.

Thanks,
- Rich -
you can add code like below in the syndication.php file after require_once "./global.php";
if(in_array($mybb->usergroup['gid'], array(1, 5, 7)))
{
    error_no_permission();
} 
(group IDs -: 1 --> guests | 5 --> awaiting activation | 7 --> banned)
Or if you want to use a plugin (better as compared to edit core file) then: http://yaldaram.com/thread-6601.html
Hi,

@.m.
Awesome and thank you once again. Wink

@Yaldaram
I will give it a try and thank you for the intel. Smile

- Rich -

Hi,

@.m.
Quote:if(in_array($mybb->usergroup['gid'], array(1, 5, 7)))
{
error_no_permission();
}

I added that and could not seem to get it to work.

- Rich -
^ if user group IDs are not changed then it should work - can we have your forum URL
On .m. 's code, try this;

if(in_array($mybb->user['usergroup'], array(1,5,7)))
{
   error_no_permission();
}

Also make sure you're adding it to misc.php file (because syndication.php is not directly used in the process) just below the following code;
$plugins->run_hooks("misc_syndication_start");