Replies
- Brajesh Singh on January 29, 2025 at 12:07 pm in reply to: BuddyCircles message button not working #55026
Hi Lawrence,
Thank you for your reply.We do not have any message button to send message to your circle. The message button being discussed here is the button on individual user card for sending DM to them.
Is that button appearing/not appearing for you?
Regards
BrajeshPS:- Please open a new topic and link me, we should leave old topics to avoid unnecessary notifications to the original topic author.
- Brajesh Singh on January 23, 2025 at 10:16 am in reply to: bug BuddyPress Profile Data Moderator #54970
Hi Jerome,
Thank you for your patience.I have investigated the issue thoroughly and the only solution is to avoid using wp-bigraphy/similar mapping and use the BuddyPress Xprofile field(create one named Bio).
The problem is with BuddyPress and It will have impact on your search as well.
When a user saves a field which is mapped to WordPress fields, BuddyPress does not have it in the xprofile field data.
If you had a field in xprofile and you mapped, the old data will remain there and will never be updated. In case of mapped fields, It updates user meta.
The problem with this approach is it is neither consistent, causes data redundancy/inconsistent state and issues with Profile Data search. It seems, when this feature was introduced(It has been in recent years), It did not go through thorough testing.
I will suggest avoid using this field mapping as there are no visible benefit of mapping the field.
Regards
Brajesh - Brajesh Singh on January 23, 2025 at 10:01 am in reply to: BuddyDev Friends Suggestions Pro “like/not like” #54969
HI Alex,
I am sorry for the delayed reply.I have been thinking a solution about it. There is a solution without BuddyPress Friends suggestions pro though. xprofile query are costly(slow), so I am not sure if we should do that or not.
The approach is to first create a xprofile query builder or this field
function bpfscustom_get_multiselect_field_query( $user_id, $field_id, $match_field_id, $compare ) { $field_data = xprofile_get_field_data( $field_id, $user_id ); if ( empty( $field_data ) ) { return array(); } if ( ! is_array( $field_data ) ) { return array( array( 'field' => $match_field_id, 'value' => $field_data, 'compare' => $compare, ) ); } $query = array(); foreach ( $field_data as $datum ) { $query[] = array( 'field' => $match_field_id, 'value' => $datum, 'compare' => $compare, ); } return $query; }
and then use it in the bp-friend-suggestions-pro-functions.php near line 119
if ( $rule['field_id'] == ACTUAl_MULTI_SELECT_FIELD_ID ) { $queries = bpfscustom_get_multiselect_field_query( $user_id, $rule['field_id'], $rule['match_field_id'], $compare ); if ( ! empty( $queries ) ) { $xp_query = array_merge( $xp_query, $queries ); } continue; }
You should replace the
ACTUAl_MULTI_SELECT_FIELD_ID
with the numeric field id for the multi select.So, the lines in this file which looked like this’
$xp_query[] = array( 'field' => $rule['match_field_id'], 'value' => $value, 'compare' => $compare, );
will be
if ( $rule['field_id'] == ACTUAl_MULTI_SELECT_FIELD_ID ) { $queries = bpfscustom_get_multiselect_field_query( $user_id, $rule['field_id'], $rule['match_field_id'], $compare ); if ( ! empty( $queries ) ) { $xp_query = array_merge( $xp_query, $queries ); } continue; } $xp_query[] = array( 'field' => $rule['match_field_id'], 'value' => $value, 'compare' => $compare, );
Hope that helps.
Regards
Brajesh - Brajesh Singh on January 23, 2025 at 9:37 am in reply to: Security Alert: BuddyDev account access disabled for some of the users #54968
Hi Dianne,
Thank you for the reply and renewing membership. Announcement coming on February 4th(current plan).
It is something we discussed over mail long ago, I got some of your great suggestions, It’s delayed but finally getting ready 🙂Regards
Brajesh - Brajesh Singh on January 18, 2025 at 9:20 pm in reply to: BuddyDev Friends Suggestions Pro “like/not like” #54681
I am sorry, I typed values instead of value in the suggested condition.
Here is the correct code.
if( is_array($value)) { $value = maybe_serialize( $value ); }
Please try it.
Regards
Brajesh - Brajesh Singh on January 18, 2025 at 8:54 pm in reply to: bug BuddyPress Profile Data Moderator #54679
Hi Jerome,
Thank you for your patience.I am sorry, that is a bug. Please remove the code I supplied earlier(It was a mistake, I supplied code from profile data control and not moderator).
The problem is happening because BuddyPress ignores the xprofile data and uses WordPress user meta data for these ignoring some of our actions. This happens when you use a mapped WordPress field(Biography, first name, last name).
I am working on a solution, please expect a plugin update by 21st.
Thank you
Brajesh - Brajesh Singh on January 18, 2025 at 8:51 pm in reply to: BuddyDev Friends Suggestions Pro “like/not like” #54678
Hi Alex,
Please make sure you are using maybe_serialize and not maybe_unserialize. The former will always return a serialized string.Regards
Brajesh - Brajesh Singh on January 18, 2025 at 8:38 pm in reply to: BuddyBlog Pro – Groups – Activity Entries #54676
Hi Nik,
Thank you for the detailed report.I will look into it and get back to you by 22nd.
Regards
Brajesh - Brajesh Singh on January 18, 2025 at 8:35 pm in reply to: Help Needed with Profile Completion Plugin #54675
Hi,
I am sorry, It seems their support is not able to understand the question.Simplify the question for them:-
– Is there a function to check if we are on thank you page. Like is_page(‘xyz’) but specific to memberpress? We need the code to check when we are on the thank you page, can you provide that?
I believe they should be able to understand it and help with the code.
regards
Brajesh - Brajesh Singh on January 18, 2025 at 8:32 pm in reply to: [Resolved] How to disable wordpress/buddypress new user email #54674
Thank you for confirming. I am glad it worked.
Regards
Brajesh