2013-08-22, 07:13 PM
2013-08-24, 04:30 PM
BUMP.
2013-08-24, 07:06 PM
In forumdisplay.php change:
You can combine/nest the conditionals and use in_array for gids as well. Use Patches plugin if you don't want to lose changes on update.
if($fpermissions['canview'] != 1)
{
error_no_permission();
}
to something like this://Condition for group, change 4 to any GID
if($mybb->user['usergroup'] == 4)
{
error("Blah blah blah and other error words");
}
//Condition for forums, change 1,4,9,16 to any comma separated FID
if(in_array($fid, array(1,4,9,16)))
{
error("Blah blah blah and another error words");
}
if($fpermissions['canview'] != 1)
{
error_no_permission();
}
You can combine/nest the conditionals and use in_array for gids as well. Use Patches plugin if you don't want to lose changes on update.
2013-08-25, 01:04 PM
Works it then only gor group ID 4, so I must also add the code for other groups?