Forum Replies Created
-
In reply to: Announcement Forum
Yay, thanks John, I set all the arrays to really high numbers and that eliminated the errors. But I still have “New Topic in this Forum” even when the user is unable to start a topic. You wouldn’t know how to get rid of that would you? I can’t seem to find it in the templates, perhaps I’m looking in the wrong place.
In reply to: Announcement ForumOh sorry, I thought you meant settings within the admin panel. Yes, I’ve edited the script and edited the templates as instructed.
global $read_only_forums,$bb_current_user, $bb_roles;
// edit users (and forums) by NUMBER below until an admin menu can be made
//$read_only_forums=false; // true = stop ALL members from starting topics in ALL forums
//$read_only_forums=false; // true = stop ALL members from replying to topics in ALL forums
$read_only_forums=array(5); // which forums should ALL members NOT be able to start topics
//$read_only_forums=array(9,15,22); // which forums should ALL members NOT be able to reply to posts
//$read_only_forums= array(1=>array(1,2,3,4,5,6,7), 2=>array(9,10,11)); // allow override for this member=>forums
//$read_only_forums= array(1=>array(1,2,3,4,5,6,7), 2=>array(9,10,11)); // allow override for this member=>forums
//$read_only_forums= array(54321=>array(1,2,3,4,5,6,7), 34567=>array(1,2,3)); // deny this specific member=>forums
//$read_only_forums = array(54321=>array(1,2,3,4,5,6,7), 34567=>array(1,2,3)); // deny this specific member=>forums
$read_only_forums=array(‘moderator’,’administrator’,’keymaster’); // these types of users can always start/reply
$read_only_forums=__(“Sorry, only moderators can start topics in this forum.”);
$read_only_forums = __(“Posting in this topic has been restricted.”);
// stop editing here
In reply to: Announcement ForumI’m running 1.0.2. I didn’t make any edits to the settings section of the admin as the instructions didn’t say to do so.
In reply to: Announcement ForumThanks jonhiler. Problem is, this seems a tad buggy.
I’ve restricted a forum so no one but moderators+ can post in it, but at the bottom of the forum theres still: “New Topic in this Forum” for users. How can I remove this?
I also get errors like this:
Warning: in_array() expects parameter 2 to be array, null given in /forum/my-plugins/read-only-forums.php on line 62