Replies
- Brajesh Singh on March 10, 2021 at 12:27 pm in reply to: [Resolved] Problem to Setting Auto Friendship #36763
Hi Emanuele,
Thank you for confirming.I am sorry, there is no way to know in BuddyPress when a specific member type was removed. If you remove a member types, it uses set member type action. So,m we don’t have access to previous member type to determine if we should remove all friends.
If you want, we can add the code for a condition like this. If a user’s member type is set to None(”), we remove all friends. It will apply for all member type though.
Regards
Brajesh - Brajesh Singh on March 10, 2021 at 11:59 am in reply to: [Resolved] User Profile Tabs – How to translate subnav labels #36762
Hi Hgo,
Thank you for the question.Is it about user profile tabs pro plugin? Unfortunately it does not support multilingual tab/content.
Regards
Brajesh - Brajesh Singh on March 9, 2021 at 11:52 pm in reply to: Is there a way to display Custom Xprofile fields using shortcode? #36757This reply has been marked as private.
- Brajesh Singh on March 9, 2021 at 8:37 pm in reply to: [Resolved] Problem to Setting Auto Friendship #36752
Hi Emanuele,
Thank you for the patience.There was a minor update needed in the code.
Here it is
/** * Add as friend other user with same member type on user member change. */ add_action( 'bp_set_member_type', function ( $user_id, $member_type ) { $member_type = (array) $member_type; if ( ! in_array( 'partner', $member_type ) ) { return; } $users = new BP_User_Query( array( 'member_type' => 'partner', 'populate_extras' => false, ) ); if ( ! $users->total_users ) { return; } foreach ( $users->user_ids as $id ) { if ( $id == $user_id ) { continue; } if ( ! friends_check_friendship( $user_id, $id ) ) { friends_add_friend( $id, $user_id, true ); } } }, 10, 2 );It is working on the staging site now. I have put ti in the child theme’s functions.php
Regards
BrajeshPS:- I tested by changing a user’s member type, Please revert them.
- Brajesh Singh on March 9, 2021 at 7:41 pm in reply to: [Resolved] BuddyPress Friends Suggestions Pro Error #36750
Please add the rule and point me to the error page. If I can see the rule and then the error message, I can quickly fix it.
I tried updating rule but it had no effect.
Regards
Brajesh - Brajesh Singh on March 9, 2021 at 7:37 pm in reply to: Suggestion for BuddyPress Friends Suggestions Pro #36749
Hi Tiffany,
Thank you for the suggestion. It will be part of our next release.Regards
Brajesh - Brajesh Singh on March 9, 2021 at 2:37 pm in reply to: [Resolved] BuddyPress Friends Suggestions Pro Error #36746This reply has been marked as private.
You are welcome.
If you have issues in using any normal shortcode, Please do let me know.
Regards
Brajesh- Brajesh Singh on March 9, 2021 at 11:17 am in reply to: [Resolved] Problem to Setting Auto Friendship #36739
Hi Emanuele,
Thank you.Please do. That will help us check and update the code as needed.
Thank you
Brajesh - Brajesh Singh on March 9, 2021 at 11:06 am in reply to: [Resolved] Problem to Setting Auto Friendship #36737
Hi Emanuele,
Did you try to change a user’s member type after puttin the code from my last update?Regards
Brajesh