BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    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 selected

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Brian,

    Thank you for the acknowledgement.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: block user by IP #44033

    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
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] member types pro #44022

    Hello Giuseppe,

    Thank you for sharing the details. We will check and will acknowledge you soon.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on 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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: block user by IP #44014

    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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    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