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: 25485

    Hi Mathilde,
    Welcome to BuddyDev forums.

    Thank you for using the plugin. Your approach of using a role is much better. Another solution is to exclude users without a member type(by setting member_type__in option). For now, I will suggest keep using it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Amir,
    Thank you for checking in. Sorry, It is a bit delayed. I will be updating you again today.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi John,

    You can create a list without any condition and any member in it will be auto added as friends to new signups.

    In your case, you are not suing BuddyPress or BuddyBoss registration and that is causing the issue.

    The plugin you are using does not fire our needed action ‘bp_core_activated_user’ We can not use other action as that will mean we won’t have the profile data to take decision. Changing priority will have no effect.

    Here is a solution that I think may work. I am going to make the Friendship handler a singleton and will supply you the code to attach that to ‘user_register’. This will work for global lists.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] BuddyCommerce #32134

    Hi Adrian,
    Welcome to BuddyDev.

    Thank you for reporting the issue. I can confirm it as a bug. Please allow us to push a release by Monday.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Rami,
    Thank you.

    I will supply the css within next 2 days.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    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: 25485

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Nelson,

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

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Thank you for the reply.

    I am glad you were able to solve it 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    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