Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author David Sader

    (@dsader)

    Plugin Author David Sader

    (@dsader)

    You can also try editing line 279 of bp-blogs-functions.php

    if ( $is_blog_public ) {

    becomes

    if ( $is_blog_public == 1 ) {

    Plugin Author David Sader

    (@dsader)

    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.

    Plugin Author David Sader

    (@dsader)

    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 '';
    		}
    }
    Thread Starter voopress

    (@voopress)

    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.

    Plugin Author David Sader

    (@dsader)

    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.

    Thread Starter voopress

    (@voopress)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Admin only blog still shows in Activity’ is closed to new replies.