Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25358
    Brajesh Singh on in reply to: BuddyPress Notifications Widget #32124

    Hi Rami,
    Thank you.

    Please allow me a 2-3 days.

    We are working on BuddyBoss compatibility and will be glad to add it for both of these plugins.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi Nelson,

    That’s strange. Please allow us 2 days to check this and get back to you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Thank you for the reply.

    I am glad you were able to solve it 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    I just realized that we do not need the extra code from the first post since our goal has changed.

    You can restrict BuddyPress section by using the following code too

    
    
    /**
     * Make a BuddyPress section of the site Private.
     *
     * @author sbrajesh
     * @global string $pagenow
     */
    function buddydev_private_site() {
    
    	// do not restrict logged in users.
    	if ( is_user_logged_in() ) {
    		return;
    	}
    
    	// handle Special case of BuddyPress registration/Login.
    	if ( function_exists( 'is_buddypress' ) && is_buddypress() ) {
    
    		if ( bp_is_activation_page() || bp_is_register_page() ) {
    			return;
    		}
    
    		$redirect_url = wp_login_url( site_url( '/' ) ); // get login url.
    
    		wp_safe_redirect( $redirect_url );
    		exit( 0 );
    	}
    }
    
    add_action( 'template_redirect', 'buddydev_private_site', 0 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi Torben,
    I am sorry for the inconvenience.

    Please allow us 2-3 days. We are working on a release for WordPress 5.5 and will be including this fix too.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi Carsten,
    Sure.
    Here is the code that make sthe BuddyPress section private.

    
    /**
     * Make a BuddyPress section of the site Private.
     *
     * @author sbrajesh
     * @global string $pagenow
     */
    function buddydev_private_site() {
    
    	// do not restrict logged in users.
    	if ( is_user_logged_in() ) {
    		return;
    	}
    	// first exclude the wp-login.php
    	// register
    	// activate.
    	global $pagenow;
    
    	// if we are here, the user is not logged in, so let us check for exclusion
    	// we selectively exclude pages from the list.
    
    	// are we on login page?
    	if ( $pagenow == 'wp-login.php' ) {
    		return;
    	}
    
    	// let us exclude the home page.
    	if ( is_front_page() ) {
    		return;
    	}
    
    	// handle Special case of BuddyPress registration/Login.
    	if ( function_exists( 'is_buddypress' ) && is_buddypress() ) {
    
    		if ( bp_is_activation_page() || bp_is_register_page() ) {
    			return;
    		}
    
    		$redirect_url = wp_login_url( site_url( '/' ) ); // get login url.
    
    		wp_safe_redirect( $redirect_url );
    		exit( 0 );
    	}
    }
    
    add_action( 'template_redirect', 'buddydev_private_site', 0 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi Tosin,
    Thank you for letting us know.

    In future, I will suggest moving to BuddyPress Profile Completion as we are planning to discontinue Force Profile Photo.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi Tosin,

    Thank you for reminding.

    It is a bit delayed, will be available by the end of this month.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25358

    Hi Stefan,
    Thank you for using MediaPress.

    MediaPress configurations & Uploads are site specific. Do you have multiple install of MediaPress? It should not be network activated.

    If you are using separate instances of MediaPress on the 2 sites, Please configure the settings on that specific site.

    Please note, MediaPress does not support network activation or global settings.

    Regards
    Brajesh