Replies
- Ravi on September 13, 2023 at 6:01 am in reply to: [Resolved] MediaPress edit/delete visibility issue #50491
Hello Lain,
Thank you for using the plugin. Only users with the administrator role can delete and edit other user’s media. Please make sure while checking your logged-in user does not have an administrator role. Please give it a try with a regular user.
Regards
Ravi - Ravi on September 7, 2023 at 1:35 pm in reply to: [Resolved] Pay Per Post Publish Articles with the status “Awaiting” #50452
Hello Cristi,
Thank you for the acknowledgement. I am glad that it worked.
Regards
Ravi- This reply was modified 1 year, 2 months ago by Ravi.
- Ravi on September 6, 2023 at 7:28 am in reply to: [Resolved] Pay Per Post Publish Articles with the status “Awaiting” #50436This reply has been marked as private.
- Ravi on September 1, 2023 at 4:22 am in reply to: [Resolved] Slight Issue With BuddyPress Member Types Pro #50385This reply has been marked as private.
- Ravi on August 30, 2023 at 12:41 am in reply to: [Resolved] BuddyBlog Pro with Restrict Content Pro #50362
Hello Jason,
Sorry for the inconvenience. I have tried BuddyBlog Pro with the free version of the Restrict Content Pro available on WordPress and it is working fine Tabs are added as per BuddyBlog Pro settings. There might be confusion or configuration issues. Please try to disable all plugins except BuddyBoss Platform and BuddyBlog Pro to find out who is causing the issue so that We can debug further.
– Tab is visible to – Anyone
Will not work for tabs like ‘Create’, ‘Pending’ and ‘Draft’ because it is user-specific.Also, Is there any plugin with deals with BuddyPress user tabs please let me know.
Regards
Ravi Hello Tosin,
Thank you for the acknowledgement. I am glad that It worked.
Regards
RaviHello Lode,
I am assuming BLOG, NEWS and ANNOUNCEMENTS are the categories and in the following code, I am mapping WooCommerce products with these categories so that at the time of form submission I can make sure that the Category and selected WooCommerce products are similar.
/** * array ( * product_id => category_id * ) */ $product_category_mapped_ids = array( 5 => 16, 6 => 18, );
If this is not the case. Please let me know what are BLOG, NEWS and ANNOUNCEMENTS.
You can put the code in the ‘bp-custom.php’ file. If you do not know what is bp-custom file you can refer to the following blog post:
https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/
Regards
RaviRegards
RaviHello Lode,
I am assuming your are using dropdown view of category which allow only one category to be selected. Try the following code:
add_filter( 'bblpro_validation_errors', function ( $errors, $data, $prepared_post_data, $form_id ) { if ( ! function_exists( 'bbl_ppp_form_has_paid_posting_enabled' ) || ! bbl_ppp_form_has_paid_posting_enabled( $form_id ) ) { return $errors; } if ( is_wp_error( $errors ) && $errors->has_errors() ) { return $errors; } // Do not validate if save draft action. if ( isset( $data['action'] ) && 'bblpro_save_draft' == $data['action'] ) { return $errors; } // Replace with your taxonomy. $tax = 'category'; $taxonomy = get_taxonomy( $tax ); $term_data = isset( $data['tax_input'] ) ? wp_unslash( $data['tax_input'] ) : array(); $selected_term = isset( $term_data[ $tax ] ) ? absint( current( $term_data[ $tax ] ) ) : 0; $selected_product_id = isset( $data['bblpro_ppp_product_id'] ) ? absint( $data['bblpro_ppp_product_id'] ) : 0; if ( empty( $selected_product_id ) || empty( $selected_term ) ) { return $errors; } /** * array ( * product_id => category_id * ) */ $product_category_mapped_ids = array( 5 => 16, 6 => 18, ); if ( ! isset( $product_category_mapped_ids[ $selected_product_id ] ) ) { // what should we need to return here. If selected product not in mapped array. return $errors; } if ( $product_category_mapped_ids[ $selected_product_id ] != $selected_term ) { $errors->add( "bbl_tax_$tax", sprintf( __( '%s is invalid. Please select matched with selected product', 'buddyblog-pro' ), $taxonomy->labels->singular_name ) ); } return $errors; }, 20, 4 );
Note: Please replace taxonomy and mapped product and term id array as per your configuration. Please give it a try. Please make sure the product and category field is required.
Regards
RaviHello,
Thank you for posting here. We do not offer any specific plugin for this purpose specifically. But we have written a nice blog for this purpose. You can check it here:
https://buddydev.com/show-only-users-of-opposite-genders-on-buddypress-site/
Please give it a try.
Regards
Ravi- Ravi on August 28, 2023 at 8:54 pm in reply to: Buddyblog Pro, how limit Number of posts per user? #50350
Hello Oliver,
Thank you for using the plugin. With the current version of the plugin. There is no setting offered by the plugin that will restrict users from creating posts by checking any threshold value. But it can be done with some custom code. If you are comfortable with it please let me know the restriction criteria i.e. post status = any, ‘publish’ etc to calculate the user post-threshold value. I will be glad to help you.
Regards
Ravi