bbPress

Simple, Fast, Elegant

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

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(0)

Your Rating

Author: _ck_

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.


  1. 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: 2 months ago #
  2. where do i specify that i want forum id 5 to be read only?

    Posted: 2 months ago #
  3. nevermind...got it working.

    Posted: 2 months ago #
  4. 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: 2 months ago #
  5. 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.php and forum.php templates 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: 2 months ago #
  6. 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.php template replace the <?php post_form(); ?> with <?php if (function_exists('read_only_post_form')) {read_only_post_form();} else {post_form();} ?>

    * in forum.php template 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.php forum.php front-page.php tag-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: 2 months ago #

RSS feed for this topic

Add a Comment

You must log in to post.

Code is Poetry.