voopress
Member
Posted 3 months ago #
Hi, checking out your plugin and have it activated on a network site.
Right now, one of the blogs is set to Admin's only. However, when we posted a post, the post showed up in the Activities section of BuddyPress.
Is there some way of ensuring that a blog which is being worked on doesn't show up at all until it's status is changed?
Thanks.
http://wordpress.org/extend/plugins/more-privacy-options/
You can also try editing line 279 of bp-blogs-functions.php
if ( $is_blog_public ) {
becomes
if ( $is_blog_public == 1 ) {
Or you could add a plugin to filter the call for the blog_public option:
$is_blog_public = apply_filters( 'bp_is_blog_public', (int)get_blog_option( $blog_id, 'blog_public' ) );
You would need a function to return a '0' if blog_public is any value less than 1.
Something like this might work ...
add_filter( 'bp_is_blog_public', 'my_bp_is_blog_public' );
function my_bp_is_blog_public() {
global $blog_id;
if ( '1' == (int)get_blog_option( $blog_id, 'blog_public' ) ) {
return '1';
} else {
return '';
}
}
voopress
Member
Posted 2 months ago #
Hi, thank you for the reply. For some reason, I never get email updates when a thread reply is made so never know about them.
I ended up removing the plugin at this point and have been working without it. I would not mind putting it back on some time in the future if you think you'll be adding BP support.
Thanks.
The suggestions to your original post look like they should still be valid. Why didn't those suggestions work in your case?
I do not have a plan to support BuddyPress, only a plan to support my own plugins, sorry.
Writing your own 8-10 line plugin to filter bp_is_blog_public is the best option I can advise for this special case.
voopress
Member
Posted 2 months ago #
I'm getting a little tired of pushing BuddyPress anyhow, forums posts too often go unanswered and it's hard to find resolve to problems.
Thanks again.