bbPress

Simple, Fast, Elegant

bbPress support forums » Requests and Feedback

Only key holders add topics

(6 posts)

Tags:

  1. SmileUK
    Member

    How can I make it so only key holders can add topics.
    Sorry I'm new to use these forums

    Posted 3 months ago #
  2. Unlike WordPress I don't believe bbPress has an easy way to do role management (yet). There is a privilege built-in for bb_current_user_can( 'write_topics' ) which means it is technically possible to control who can start topics by taking away that role privilege from the "member" role.

    In theory a small plugin should be able to do this - I'll take a look at how it might be done as an exercise in learning more about bbPress roles...

    Posted 3 months ago #
  3. Aha! I think it's this simple. Make yourself a mini-plugin and install it containing this:

    global $bb_roles;
    $bb_roles->remove_cap('member','write_topics');


    If you don't know how to make a plugin, it might be possible to just put those two lines into your template's header.php

    Posted 3 months ago #
  4. But what if you only want to do this for a specific forum, and not for all your forums? On my site I have an "announcements" forum where I would like to limit who can post, but I also have a "troubleshooting" section where members do need to post.

    Posted 3 months ago #
  5. This question is related:
    http://bbpress.org/forums/topic/key-master-only-forum#post-15457

    I think I will make a real plugin since this seems to be a requested feature that is not too hard to handle in 0.9 Look for it in the plugin section over the next day or two.

    Posted 3 months ago #
  6. I've now written a plugin to solve this problem:
    http://bbpress.org/plugins/topic/read-only-forums/

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.