Replies
- Ravi on March 24, 2022 at 5:52 am in reply to: Anonymous posting not working with Youzify 3.2.2 #44083
Hello Vasudev,
Thank you for posting. As you said, After updating Youzify the problem is started. So, Please contact Youzify regarding this issue because they are in a better position to assists you with this issue.
Regards
Ravi - Ravi on March 23, 2022 at 5:45 am in reply to: [Resolved] Fetch and condition for checkboxes data values #44063
Hello Lefteris,
Please let me know if the above-mentioned code is giving you the following result or not.
My code will make the output like
// If all three options are selected.
Music, Food and Movie are selected.// If two options are selected.
Music and Movie are selected.// If only one option is selected.
// Music is selectedRegards
Ravi - Ravi on March 23, 2022 at 5:34 am in reply to: [Resolved] How Do I Restrict Certain Member Types from Comment Replying #44062
Hello Brian,
Thank you for the acknowledgement.
Regards
Ravi - Ravi on March 22, 2022 at 3:46 pm in reply to: [Resolved] Fetch and condition for checkboxes data values #44034
Hello Lefteris,
Try the following code:
$data = xprofile_get_field_data( 12, 23 ); $message = ''; if ( empty( $data ) ) { $message = __( 'No item is selected' ); } elseif ( count( $data ) > 1 ) { $last = array_pop($data); $selected_options = join(', ', $data ) . __( ' and ' ) . $last; $message = sprintf( '%s are selected', $selected_options ); } else { $message = sprintf( '%s is selected', join( '', $data ) ); } echo esc_html( $message );
Please let me know if it helps or not.
Regards
Ravi Hello,
1. Yes, Above mentioned plugin only allows to track by IP address and not blocking by IP. We can block a user with his/her IP address. But the issue with IP is that It is changeable.
You can use the following plugin by IP:
https://wordpress.org/plugins/banhammer/or there are many others that offer this functionality. Please look here.
https://wordpress.org/plugins/search/ip+block/2. This plugin does not affect your site performance much.
Regards
RaviHello Giuseppe,
Thank you for sharing the details. We will check and will acknowledge you soon.
Regards
Ravi- Ravi on March 22, 2022 at 10:45 am in reply to: [Resolved] Fetch and condition for checkboxes data values #44019
Hello Lefteris,
Please try the following code:
$data = xprofile_get_field_data( 12, 23 ); $count = $data ? count( $data ) : 0; $message = ''; if ( empty( $data ) ) { $message = __( 'No item is selected' ); } elseif ( 2 < $count ) { $message = __( 'All are selected' ); } elseif ( 1 < $count ) { $message = sprintf( '%s are selected', join( ' and ', $data ) ); } else { $message = sprintf( '%s is selected', join( '', $data ) ); } echo esc_html( $message );
Please check
Note not recommended as increasing complexity.
Recommended
$data = xprofile_get_field_data( 12, 23 ); $message = ''; if ( empty( $data ) ) { $message = __( 'No item is selected' ); } elseif ( count( $data ) > 1 ) { $message = sprintf( '%s are selected', join( ' and ', $data ) ); } else { $message = sprintf( '%s is selected', join( '', $data ) ); }
Regards
Ravi - Ravi on March 22, 2022 at 10:11 am in reply to: BuddyPress Xprofile Custom Field Types: Tags field #44017
Hello Scoob,
Sorry for the delayed reply. I have asked @sbrajesh to look at it. He will update you within 24 hrs.
For hyperlink: “[x]” is only visible to the user who is viewing their own profile.
Regards
Ravi Hello,
Thank you for the acknowledgement. Please try the following plugin:
https://wordpress.org/plugins/user-login-history/
It allows the site admin to track any users. Please take a look and let me know if it helps or not.
Regards
Ravi- Ravi on March 22, 2022 at 9:15 am in reply to: [Resolved] Fetch and condition for checkboxes data values #44013
Hello Lefteris,
Thank you for the acknowledgement. Please share the example field output you are looking for. You can share the screenshot as well which make me more clear on your requirement so that I can help.
Regards
Ravi