Replies
Hi Shaston,
Welcome to BuddyDev support forums.Thank you for pointing the issues and helping us correct it.
I have updated the documentation with the fix.
Regards
Brajesh- Brajesh Singh on June 8, 2022 at 9:40 pm in reply to: [Resolved] Buddyblog change author if post is published in a specific category #45251
Hi Tosin,
Thank you for the patience.There was a slight mistake on my part.
Please use the updated code
/** * Update BuddyBlog Author when a post is submitted in a specific category. */ add_filter( 'bblpro_post_submission_prepared_data', function ( $post_data, $form_id, $post, $is_submission ) { // update author if the category was selected. Don't do anything on edit. $anonymous_cat_id = 1487; $anonymous_user_id = 4766806; if( ! $is_submission ) { return $post_data; } $selected_terms_ids = isset( $_POST['tax_input'] ) ? (array) $_POST['tax_input'] : array(); $selected_categories = isset( $selected_terms_ids['category'] ) ? (array) $selected_terms_ids['category']: array(); if( ! $selected_categories || ! in_array( $anonymous_cat_id, $selected_categories ) ) { return $post_data; } // Update. $post_data['post_author'] = $anonymous_user_id; // keep current user data for future? if ( ! empty( $post_data['ID'] ) ) { update_post_meta( $post_data['ID'], '_bbl_original_post_author', get_current_user_id() ); } return $post_data; }, 10, 4 );I had used $post_data(which only contained basic details) instead of $_POST.
Regards
Brajesh - Brajesh Singh on June 8, 2022 at 8:03 pm in reply to: [Resolved] Xprofile Field – Country Select #45250
Hi Quint,
Please upgrade to 1.2.3. The plugin supports the BP Profile Search for Country field.Regards
Brajesh - Brajesh Singh on June 8, 2022 at 7:24 pm in reply to: Mediapress strongly downgrade images when posting them – URGENT #45248
Hi Giuseppe,
Can you please link me to your activity stream.
It seems, I am not looking at the same thing as you.you are probably thinking thumbnail and original as same thing.
Thank you
Brajesh Hi Tosin,
I am not seeing any issue with BuddyPress.Though I am not sure of the purpose of the code. WordPress already removes any auth related cookies on logout.
The above will remove any other cookie(preference etc if saved).
Regards
Brajesh- Brajesh Singh on June 8, 2022 at 7:20 pm in reply to: [Resolved] BuddyPress Custom Xprofile Fields – Decimal Field #45246
Hi Quint,
Thank you for the feedback.BuddyPress lacks the proper way to provide feedback about a field. It is normally not on field level but on collection level on profile edit/registration pages.
I can help you with the validation with some code. What is the expected workflow if the user do not enter a valid value? Do we discard the value? Do we generate error which is shown at the top of the page?
Regards
Brajesh - Brajesh Singh on June 8, 2022 at 7:18 pm in reply to: buddyblog medium editor not displaying embeds #45245
Hi Tosin,
This is taking a little bit more time as the Medium Editor media insert plugin is not providing us with the source url instead of the rendered embed content.We can whitelist iframe and get this fixed quickly but that is not the right solution. We will be needing couple more days to get back on this one.
Regards
Brajesh - Brajesh Singh on June 7, 2022 at 8:36 pm in reply to: buddyblog medium editor not displaying embeds #45228
Hi Tosin,
Thank you.I have requested Ravi to assist you tomorrow.
Regards
Brajesh - Brajesh Singh on June 7, 2022 at 8:33 pm in reply to: [Resolved] BuddyPress Custom Xprofile Fields – Decimal Field #45227
Hi Quint,
Please take a look at the Advance Xprofile Field for marking the text field as numeric.
https://wordpress.org/plugins/advanced-xprofile-fields-for-buddypress/
Please let me know if it works.
Regards
Brajesh Hi Tim,
Thank you for renewing.I am glad the download worked.
I see that your custom header is customized.
There are 2 possible reasons for the issue:-
1. Either the hook ‘bp_member_header_meta’. e.g do_action( ‘bp_member_header_meta’ ) is missing from your header file
2. Or the code that is adding the extra xprofile data is using output buffering and discarding the other data.
Can you please check and let me know.
Regards
Brajesh