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: 25494
    Brajesh Singh on in reply to: Customize private group announcement #26041

    Hi Hugo,

    Thank you for the question.

    I do not see a simple way to customize it on per group basis.

    There are two ways to customize it.
    1. Using the filter ‘bp_group_status_message’ or
    2. Modifying buddypress/groups/single/home.php in your theme.

    Here is an example using the filter.

    
    
    function buddydev_custom_group_status_message( $message, $group ) {
    
    	if ( 'private' !== $group->status ) {
    		return $message;
    	}
    
    	// now handle all the cases(invited, pending etc) and modify the $message
    
    	return $message;
    }
    
    add_filter( 'bp_group_status_message', 'buddydev_custom_group_status_message', 10, 2 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Hans,
    Did you copy both part of the tutorial?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Activate Button for users with no toolbar #26036

    Thank you for the details.
    Just 1 more question.

    Did you login with a deactivated user account? If yes, didn’t their profile show an “Activate” button? It should be at the same place where deactivate is.

    If it is not showing. Please let me know. It could be a bug. I will be testing the same today too and update you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: When will Community Builder 2.0 will be ready? #26034

    Hi Torben,
    The next update will be available on 28th October. It will be the release candidate.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Activate Button for users with no toolbar #26033

    Hi Jacqui,
    Are you using the code from above?

    You are right, the user button should be in the same place. That code should make it appear.

    Can you please put the code and recheck?

    Before we push any update, we need to understand the issue.

    PS:- The deactivation can also be dome from Profile->settings screen.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: [Resolved] Hide tabs and profile for custom roles #26031

    Hi Jennifer,
    for the part 1(wall,user media), The code should work. If it is not, I will suggest reprting/asking to the plugin developers.

    For the second part(custom redirect).

    You may use the following code

    
    function bpc_redirect_for_no_logged() {
    	if ( bp_is_user() && ! is_user_logged_in() ) {
    		$redirect_url = site_url( '/' );// change it.
    		bp_core_redirect( $redirect_url );
    	}
    }
    
    add_action( 'bp_template_redirect', 'bpc_redirect_for_no_logged');
    
    

    Please make sure to change the redirect url.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Make bbpress edit profile link go to bbpress, not BP #26030

    Please put this in your bp-custom.php

    
    add_action( 'bp_init', function (){
    
    	if( ! function_exists('bbpress')) {
    		return;
    	}
    	 remove_filter( 'bbp_pre_get_user_profile_url',    array( bbpress()->extend->buddypress->members, 'user_profile_url'            )        );
    });
    

    That will stop bbPress from filtering profile url.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: [Resolved] Custom Link in BP Profile by user role #26029

    Hi Frank,
    Thank you for the question.

    You may update your condition with the following

    
    
    if ( ! bp_is_my_profile() || ! current_user_can( 'edit_posts' ) ) {
    	return;
    }
    

    It will show for everyone except the subscriber(it will show for contributor, author, editor, administrator etc).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Peter,
    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: [Resolved] BuddyPress Group Type Generator #26027

    Hi Hans,
    Thank you. We do plan to take another look at it sometimes in the future.

    Regards
    Brajesh