Replies
Thanks Brajesh Ji,
solved…- swati on May 6, 2017 at 12:21 am in reply to: [Resolved] Hide "Add friend" Button after rejecting the friendship (only at the sender end #9014
Your code worked. Now Resolved… Thanks a lot Ravi Ji
- swati on May 6, 2017 at 12:06 am in reply to: [Resolved] Hide "Add friend" Button after rejecting the friendship (only at the sender end #9013
Hi Ravi Ji,
Thank you so mcuh for the response.
It is not working.
as I have already used the function “buddydev_custom_send_notification_on_friendship_rejection” as suggested by Brajesh Ji in query #8743, So the error showing that you cann’t redeclare this function again.#8743 code is given below (It is working for sending the email message after rejection of friendship)
function buddydev_custom_send_notification_on_friendship_rejection( $friendship_id, BP_Friends_Friendship $friendship ) {$initiator_user = get_user_by(‘id’, $friendship->initiator_user_id );
$rejected_by_user = get_user_by( ‘id’, $friendship->friend_user_id );$message =<<<‘EOT’
Hi %1$s,
%2$s has rejected your friendship request.Team
Xyz Site
EOT;
$message = sprintf( $message, $initiator_user->display_name, $rejected_by_user->display_name );
wp_mail($initiator_user->user_email, “Friendship Rejection”, $message );}
add_action( ‘friends_friendship_rejected’, ‘buddydev_custom_send_notification_on_friendship_rejection’, 10, 2 );Please look in this code again. Looking for your help.
Thank you so much Worked.. Thank you so much
Hi Brajesh Ji,
Looking for your response.Hi Brajesh Ji,
Screenshot sent on your email.
Hi,
(1) solved…
(3) Private message button on member loop:
I want that, when user click on private message button of respective user, It automatically picked the ID of that user and field “TO” of the message automatically filled.I want to remove the line given below from file “custom.php”
<input type=”text” name=”send-to-input” class=”send-to-input” id=”send-to-input” />
Instead of it, “To” field of message automatically filled.How we can do that.
Thanks a lot…
Hi Brajesh Ji,
(3) private message now ok…
(4) It’s ok…
(1) I checked again. it is “A member has sent a friend request to the recipient.” The user it not getting email notification for this.and another thing, when the recipient rejected the friendship request, then at the sender end the “Add friend” button should be disappear. can we do this?
Thanks a lot for your valuable time.
Thanks a lot…
Hi Brajesh ji,
Thanks a lot, it’s working…
I want some more implement in it as in member directory (member-loop.php), I inserted the following code as given below for showing user ID.
<?php echo “INDIA77”?><?php echo bp_get_member_user_id(); ?>
// used “INDIA77” as prefix with user id. If the user id is 25, then the result for user id would be INDIA7725.
But user don’t know that “INDIA77” is prefix, and he would be interested to insert full user id with prefix in search form. so how we can implement this ??
Thank you