Forums

Join
bbPress Support ForumsPluginskey master only forum

Info

key master only forum

  1. I'm using bbpress for my online class and I would like to create a forum that only I or a moderator can post to, and the students (members) can view only.

    I've seen plug-ins to make forums private, but that's not exactly what I need. Can someone point me in the right direction?

    Thanks

  2. This will affect all forums:

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

    You can put it into header.php or make a real plugin ie.
    members-cannot-post.php (and install into /my-plugins/)

    <?php
    /*
    Plugin Name: Members Cannot Post
    */
    global $bb_roles;
    $bb_roles->remove_cap('member','write_topics');
    $bb_roles->remove_cap('member','write_posts');
    ?>

    I think I will make a real plugin which can control this on a per-forum basis 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.

  3. a plugin sounds great ck. I for one would definitely benefit from it.

  4. not so easy to implement it seems:

    Fatal error: Call to a member function remove_cap() on a non-object in /var/www/vhosts/.../httpdocs/forums/my-plugins/nopost.php on line 8

  5. I've now written a plugin to solve this problem:
    http://bbpress.org/plugins/topic/read-only-forums/

  6. great plugin _ck_, thanks a bunch.

  7. You must log in to post.