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.
version 5.0
forum restriction can be set for each forum individually
also filters search and rss feeds
bug report:
private forum topics show up in the moderator’s profile & favorites for any viewer
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');
I cannot find a function called private_forums_filter_private in v5.0
Looks like you have added a function AND added filters to the private_forums_initialize_filters() function?
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.
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?
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
the problems should be fixed in the trunk..
get the trunk version here..
https://bbpress.org/plugins/topic/12/page/2?replies=39#post-479
@Null good idea.. i’ll see what i can do..
5.2 Works for me. Fixed profile issues.