WordPress.org

Ready to get started?Download WordPress

Forums

More Privacy Options
Admin only blog still shows in Activity (8 posts)

  1. voopress
    Member
    Posted 1 year 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/

  2. David Sader
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. David Sader
    Member
    Plugin Author

    Posted 1 year ago #

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

    if ( $is_blog_public ) {

    becomes

    if ( $is_blog_public == 1 ) {

  4. David Sader
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. David Sader
    Member
    Plugin Author

    Posted 1 year ago #

    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 '';
    		}
    }
  6. voopress
    Member
    Posted 1 year 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.

  7. David Sader
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. voopress
    Member
    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.