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
)
Hi,
@.m.
Awesome and thank you once again.
@Yaldaram
I will give it a try and thank you for the intel.
- 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");