Replies
- Ravi on March 22, 2022 at 8:20 am in reply to: [Resolved] Fetch and condition for checkboxes data values #44008
Hello Lefteris,
Please remove ‘comma’ as an argument as we need field output as array for below conditions. You are also calling in_array incorrectly.
For multi value check use:
// Multivalue and make sure $data is an array. if ( ! array_diff( array( 'Music', 'Movie' ), $data ) ) { // Both values are present in $data array. }
Please check
Regards
Ravi- This reply was modified 3 years, 4 months ago by
Ravi.
- This reply was modified 3 years, 4 months ago by
- Ravi on March 22, 2022 at 7:40 am in reply to: [Resolved] Fetch and condition for checkboxes data values #44006
Hello Lefteris,
Please share your complete code of yours so that I can check.
Regards
Ravi - Ravi on March 22, 2022 at 6:33 am in reply to: Member Types Pro – Can you direct to a different results page #44004
Hello KP,
Thank you for showing interest in our plugin. BuddyPress Member Types Pro plugin enhances the Member type feature offered by BuddyPress means you can associate default avatar, cover, roles etc with individual member types. This plugin does not restrict the search.
Regards
Ravi - Ravi on March 22, 2022 at 6:24 am in reply to: [Resolved] Fetch and condition for checkboxes data values #44003
Hello Lefteris,
Please try the following way:
$data = xprofile_get_field_data( 12, 23 ); if ( ! $data ) { // No item is selected. } if( in_array( 'Music', $data ) ) { // Music is selected. } // Same goes with other one.
Regards
Ravi Hello,
Thank you for using our plugins. Please let me know do you want to restrict the registration by user IP address?. Please clearify.
Regards
Ravi- This reply was modified 3 years, 4 months ago by
Ravi.
- This reply was modified 3 years, 4 months ago by
- Ravi on March 22, 2022 at 6:03 am in reply to: Unable to respond to messages after activating BuddyPress Block Users #44000
Hello Aurelio,
Sorry for the inconvenience. Interval server error 500 occurred when something went wrong on the server-side. Please enable debug mode on your server and share the error log.
// Put this code before "That's all, stop editing! Happy publishing." // Set 'WP_DEBUG' to true. define( 'WP_DEBUG_LOG', true ); define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
You can locate the error log in the “wp-content/debug.log” file.
Regards
Ravi - Ravi on March 21, 2022 at 1:24 pm in reply to: [Resolved] Fetch and condition for checkboxes data values #43988
Hello Lefteris,
You are calling function incorrectly. Please call like following:
$data = xprofile_get_field_data( 12, 23, 'comma' )
Please give it a try
Regards
Ravi - Ravi on March 21, 2022 at 9:18 am in reply to: [Resolved] Predefined user gallery with display name #43975
Hello Jacob,
Thank you for the acknowledgement. I am glad that I could help.
Regards
Ravi - Ravi on March 21, 2022 at 7:31 am in reply to: [Resolved] Fetch and condition for checkboxes data values #43967
Hello Lefteris,
Thank you for posting here. Please try the function with the name “xprofile_get_field_data” use the third argument as ‘comma’. Please try this and let me know if it helps or not.
Regards
Ravi - Ravi on March 21, 2022 at 6:59 am in reply to: [Resolved] Would like to change “Report” to “Feedback” #43966
Hello Brian,
Yes, You can place this code in the “bp-custom.php” file.
Regards
Ravi