Helping you Build Your Own Social Network!

Faster, better and easier!

How can I switch the places of the "Cancel Friendship" & "Send PM" buttons?

(5 posts) (3 voices)
  • Started 1 year ago by fashionista101
  • Latest reply from Brajesh Singh

  1. Hi,

    I get feedback from my users which I agree, that the "cancel friendship" button should not be next to the profile picture because it so easy to press accidentally and does not even confirm the action to delete the friend. Therefore, I am thinking if there is a way to switch places between the "send private message" button with "Cancel Friendship" button to make it a little difficult to press?

    I googled this and other people tend to request the same. Any idea? Pls. advise. Thanks!

    Posted 1 year ago #
  2. Hi,
    In your functions.php, you will see something like this

    // Member Buttons
    if ( bp_is_active( 'friends' ) )
    	add_action( 'bp_member_header_actions',    'bp_add_friend_button' );
    
    if ( bp_is_active( 'activity' ) )
    	add_action( 'bp_member_header_actions',    'bp_send_public_message_button' );
    
    if ( bp_is_active( 'messages' ) )
    	add_action( 'bp_member_header_actions',    'bp_send_private_message_button' );

    Change it to

    // Member Buttons
    if ( bp_is_active( 'friends' ) )
    	add_action( 'bp_member_header_actions',    'bp_add_friend_button',20 );
    
    if ( bp_is_active( 'activity' ) )
    	add_action( 'bp_member_header_actions',    'bp_send_public_message_button',15 );
    
    if ( bp_is_active( 'messages' ) )
    	add_action( 'bp_member_header_actions',    'bp_send_private_message_button',10 );

    and It will change the positions.

    Posted 1 year ago #
  3. It worked. Thank you!

    Posted 1 year ago #
  4. Thanks Emily and Brajesh. I've now listed this change as a must-do whenever I upgrade :-)

    Posted 1 year ago #
  5. :)

    Posted 1 year ago #

Reply

You must log in to post.