-
Author
-
December 8, 2013 at 02:01 #7884frien337Participant
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,
RyanDecember 9, 2013 at 12:48 #7953frien337ParticipantI 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.
December 9, 2013 at 18:07 #7980AbeKeymasterHi, 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 CODEadd_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.December 14, 2013 at 17:03 #8269frien337ParticipantHey 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,
ryanDecember 16, 2013 at 12:06 #8335AbeKeymasterHi, 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. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.