Prevent all or certain members from starting topics or just replying in certain forums while allowing posting in others. Moderators and administrators can always post. Note that this does not hide forums, just prevents posting.
bbPress plugin browser »
Read-Only Forums (0.0.5)
Download
Version: 0.0.5
Last Updated: 2008-4-18
Requires bbPress Version: 0.9 or higher
Compatible up to: trunk
Average Rating





Your Rating
Author: _ck_
-
I realize without an admin menu (for now) the configuration might be tricky for people with absolutely no plugin editing experience so just ask if you can't figure it out.
Posted: 5 months ago # -
where do i specify that i want forum id 5 to be read only?
Posted: 5 months ago # -
nevermind...got it working.
Posted: 5 months ago # -
while this definitely works a treat, one thing I will point out is the headings of "REply" and " New Topic" do still appear, with no text below to indicate to the user the reason they can't make a post is because of a lack of permissions.
what should be displayed here is some kind of an error message letting the user know why they aren't seeing a form for posting a topic or a reply.
Posted: 5 months ago # -
Yeah I saw those messages even when posting was shutoff and I didn't have time to investigate but I think they are one of those crazy things still hard coded into bbPress.
Update: there might be a way to work around this since the text displayed can be overridden in the
topic.phpandforum.phptemplates where<?php post_form(); ?>runs. I can probably put a custom replacement for post_form which will pass an empty title or the message that you want displayed that the forum is closed to posts. It will require a minor template edit but will be automated from there.Check back in 24 hours after I have some more time to develop it.
Posted: 5 months ago # -
Version 0.0.5 adds the ability to give a custom message when posting has been restricted in a topic or forum. This does require two template edits:
* in
topic.phptemplate replace the<?php post_form(); ?>with<?php if (function_exists('read_only_post_form')) {read_only_post_form();} else {post_form();} ?>* in
forum.phptemplate replace the<?php post_form(); ?>with<?php if (function_exists('read_only_post_form')) {read_only_post_form();} else {post_form();} ?>* if ALL your forums are going to be Read-Only, replace in
topic.phpforum.phpfront-page.phptag-single.php<?php post_form(); ?>with<?php if (function_exists('read_only_post_form')) {if (bb_current_user_can('moderate')) {read_only_post_form();}} else {post_form();} ?>Posted: 5 months ago # -
hey guys, if you need a control panel, i can do the design, its kinda hard to setup this thing without knowing php....
Posted: 1 month ago # -
$read_only_forums['deny_forums_start_topic']=array(9,15,22);
if my forum id is 5 i have to add it? like (5,9,15,22); ?
Posted: 1 month ago # -
yes if you want to deny people starting topics in forum #5
$read_only_forums['deny_forums_start_topic']=array(5);Admin menu is on my long list of things "to do"
Given how few donations there have been, I wouldn't hold your breath.Posted: 1 month ago # -
but if members cant post, what about keymasters? they can?
Posted: 1 month ago # -
if you have this line (it's the default) then yes
$read_only_forums['allow_roles_always']=array('moderator','administrator','keymaster'); // these types of users can always start/replyPosted: 1 month ago #
Add a Comment
You must log in to post.