WordPress.org

Support

Support » Plugins and Hacks » Admin only blog still shows in Activity

Admin only blog still shows in Activity

  • 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/

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

    @dsader

    I don’t have a buddypress install to test, try the suggestion here:
    http://wordpress.org/support/topic/plugin-more-privacy-options-not-protecting-buddypress-pages?replies=3

    Plugin Author David Sader
    Participant

    @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
    Participant

    @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
    Participant

    @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 '';
    		}
    }

    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
    Participant

    @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.

    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.