bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Plugin: Private Forums v4.0

(12 posts)
  • Started 1 year ago by so1o
  • Latest reply from schmitt
  • This topic is not resolved
  1. The Plugin is update to version 4.0

    now you can use the plugin to restrict selected forums to either administrators/moderators/members.

    here is the link
    http://bbpress.org/plugins/topic/12?

    Posted 1 year ago #
  2. Be sure to see my nifty update at the end of that thread.
    I suspect 4.01 will be out shortly ;-)

    I really like this plugin, gives bbpress a higher end forum feature.

    Posted 1 year ago #
  3. version 5.0
    forum restriction can be set for each forum individually

    also filters search and rss feeds

    Posted 1 year ago #
  4. bug report:
    private forum topics show up in the moderator's profile & favorites for any viewer

    Posted 1 year ago #
  5. Oh figured out how to fix the moderator's profile, very easy to do when using my additional function - just attached more "where filters":

    function private_forums_filter_private($where,$prefix=''){
    if (function_exists("private_forums_custom_get_options")) {
    $private_forums = private_forums_custom_get_options('private_forums');
    foreach($private_forums as $forum => $role) {
    	if(!private_forums_check_user_access_to_forum($role)) {
    		$where.=" AND ".$prefix."forum_id != ".$forum."  ";
    	}
    }
    }
      return  $where;
    }
    add_filter( 'get_latest_topics_where', 'private_forums_filter_private');
    add_filter( 'get_latest_posts_where', 'private_forums_filter_private');
    add_filter( 'get_recent_user_replies_where', 'private_forums_filter_private');
    add_filter( 'get_recent_user_threads_where', 'private_forums_filter_private');
    Posted 1 year ago #
  6. I cannot find a function called private_forums_filter_private in v5.0

    Posted 1 year ago #
  7. Looks like you have added a function AND added filters to the private_forums_initialize_filters() function?

    Posted 1 year ago #
  8. Yes it's a suppliment to the private_forums plugin so results are additionally pre-filtered instead of just post-filtered. This helps keep topics-per-page obeyed (ie. if you want 25 listed you'll still get 25 even if 10 have to be removed) and it also fixes a couple of areas that post-filtering doesn't work.

    Posted 1 year ago #
  9. Oh this is driving me crazy.

    Every so often, the private forum settings reset back to open to all and expose the moderator forum to everyone. Not good.

    Until this bug is found I need to know how to hardwire a forum by number via code to always be moderator's only.

    update: I hardwired private_forums_custom_get_options, adding

    if (!bb_current_user_can("moderate")) {$private_forums_for_user[8] = "MODERATOR";}

    This should make sure no matter what, #8 stays private

    Hopefully you can find the bug soon... it might even be a bbpress core bug which is scary... then again, your settings are the only ones that seem to reset?

    Posted 1 year ago #
  10. How about "locking" a forum so that only admin/mods can create topics in it and members can ONLY reply on these topics? (so not create them)

    So making a forum half-private :)

    Posted 1 year ago #
  11. the problems should be fixed in the trunk..
    get the trunk version here..
    http://bbpress.org/plugins/topic/12/page/2?replies=39#post-479

    @Null good idea.. i'll see what i can do..

    Posted 1 year ago #
  12. 5.2 Works for me. Fixed profile issues.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.