This topic has 6 replies, 2 voices, and was last updated 11 years by frien337.

  • Author
  • #7884
     frien337
    Participant

    Hi Again,

    Does anyone know how too get the old buttons back in the members directory page? At the moment, it says View Profile, Add Friend. But I want it to rather show the default Send Message, Request Friendship, Send Public Message, etc. Just like the way the action buttons are shown on a profile page.

    Thanks,
    Ryan

    #7953
     frien337
    Participant

    I saw that these buttons are brought in the members-header.php page with <?php do_action(‘kleo_bp_header_actions’);?> . I did try add that code to my members-loop.php page but I only get the option to send a message and the others (send public message, add friends, etc) are missing.

    #7980
     Abe
    Keymaster

    Hi, with this code added to sweetdate-child/functions.php you will render the missing buttons for public and private message. They will require some styling

    COPY CODE
    
    add_action( 'bp_directory_members_item_last', 'bp_send_public_message_button', 12 );
    add_action( 'bp_directory_members_item_last', 'bp_send_private_message_button', 12 );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #8069
     frien337
    Participant

    Many thanks, this has worked wonderfully 🙂

    #8269
     frien337
    Participant

    Hey Abe, I just noticed something. I added the following to get the send message button on my members page:

    add_action( ‘bp_directory_members_item_last’, ‘bp_send_private_message_button’, 12 );

    This has worked nicely, however, there is one issue. When I click on the button, I get directed to the usual send message page, but the send to field is not auto-populated with the members username. If you do this from the profile page then the send to field is auto populated.

    Any ideas?

    Thanks,
    ryan

    #8335
     Abe
    Keymaster

    Hi, Maybe it is not meant to send message from the members directory. It probably takes the displayed user id. Try looking on buddypress forums

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #8373
     frien337
    Participant

    Will do 🙂 Thanks again Abe!

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?