Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: Private Forums v4.0


_ck_
Participant

@_ck_

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');

Skip to toolbar