Replies
- Ravi on March 25, 2022 at 4:51 pm in reply to: BP Simple Front End Post show all categories with a Parent #44118
Hello Chris,
Thank you for the acknowledgement. It seems you need to mix certain categories. Although it is possible it needs significant time. You may hire a developer to do this for you.
Regards
Ravi - Ravi on March 25, 2022 at 11:59 am in reply to: [Resolved] Would like to change “Report” to “Feedback” #44113
Hello Brian,
Thank you for the acknowledgement. I am glad to help you.
Regards
Ravi - Ravi on March 25, 2022 at 11:57 am in reply to: [Resolved] Mediapress / link when clik o n notification #44112
Hello Fabien,
Thank you for the acknowledgement. I will recheck it and get back to you soon.
Regards
Ravi - Ravi on March 25, 2022 at 11:56 am in reply to: [Resolved] Fetch and condition for checkboxes data values #44111
Hello Lefteris,
Thank you for the acknowledgement. I am glad that I could help.
Regards
Ravi - Ravi on March 25, 2022 at 11:53 am in reply to: BP Simple Front End Post show all categories with a Parent #44110
Hello Chris,
Sorry for the inconvenience. Please do let me know are you using BP simple frontend alone or using it with BuddyBlog or Blog categories for groups plugin.
Also, Are you using BuddyPress or BuddyBoss Platform? If BuddyPress which template pack you are using?.
Regards
Ravi Hello,
Try the following code:
add_action( 'bp_set_member_type', function ( $user_id, $member_type ) { // If message component not exists return. if ( ! bp_is_active( 'messages' ) ) { return; } // $user_id ID of the user whose member type has been updated. // $member_type The member type name or an array of member type names. $user = get_user_by( 'id', $user_id ); if ( ! $user ) { return; } // Provide the email subject. $subject = ''; // Provide the email message. $message = ''; // Send only if member type send by other user. You may skip this. if ( get_current_user_id() != $user->ID ) { messages_new_message( array( 'sender_id' => get_current_user_id(), 'recipients' => array( $user->ID ), 'subject' => $subject, 'content' => $message, ) ); } } );
Regards
Ravi- Ravi on March 24, 2022 at 6:34 pm in reply to: [Resolved] Fetch and condition for checkboxes data values #44103
Hello Lefteris,
Try this
$data = (array) xprofile_get_field_data( 12, 23 ); $is_selected_music = in_array( 'Music', $data ); $is_selected_food = in_array( 'Food', $data ); $is_selected_movies = in_array( 'Movies', $data ); $message = ''; // Example for all selected. if ( $is_selected_food && $is_selected_movies && $is_selected_music ) { $message = __( 'All are selected' ); } elseif ( $is_selected_music && $is_selected_movies ) { $message = __( 'Music and Movies are selected' ); } elseif ( $is_selected_food && $is_selected_movies ) { $message = __( 'Food and Movies are selected' ); } elseif ( $is_selected_food && $is_selected_music ) { $message = __( 'Food and Music are selected' ); } elseif ( $is_selected_movies ) { $message = __( 'Movie is selected' ); } elseif ( $is_selected_music ) { $message = __( 'Music is selected' ); } elseif ( $is_selected_food ) { $message = __( 'Food is selected' ); } else { $message = __( 'No option is selected' ); } echo esc_html( $message );
Regards
Ravi - Ravi on March 24, 2022 at 3:19 pm in reply to: [Resolved] Fetch and condition for checkboxes data values #44095
Hello Lefteris,
Thank you for the detailed acknowledgement. Please use the following code with as many possible conditions:
$data = (array) xprofile_get_field_data( 12, 23 ); $is_selected_music = in_array( 'Music', $data ); $is_selected_food = in_array( 'Food', $data ); $is_selected_movies = in_array( 'Movies', $data ); $message = ''; // Example for all selected. if ( $is_selected_food && $is_selected_movies && $is_selected_music ) { $message = __( 'All are selected' ); } echo esc_html( $message );
Please let me know if it helps or not.
Regards
Ravi- This reply was modified 3 years, 3 months ago by
Ravi.
- This reply was modified 3 years, 3 months ago by
- Ravi on March 24, 2022 at 3:11 pm in reply to: Anonymous posting not working with Youzify 3.2.2 #44094
Hello Vasudev,
Thank you, please let us know if you need any other assistance.
Regards
Ravi - Ravi on March 24, 2022 at 3:07 pm in reply to: [Resolved] Mediapress / link when clik o n notification #44093
Hello Fabien,
Welcome to the BuddyDev Forums. Please let me what you are referring to with the term tag. Is it BuddyPress mentioning feature i.e. ‘@username’ or something else?. With BuddyPress, I have checked it with the mention and it is working correctly i.e. redirecting to activity instead of gallery.
Regards
Ravi