BuddyDev

Search

Replies

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

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

    Hello Lefteris,

    Please share your complete code of yours so that I can check.

    Regards
    Ravi

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

    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

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

    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

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

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

    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

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

    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

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

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

    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

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

    Hello Brian,

    Yes, You can place this code in the “bp-custom.php” file.

    Regards
    Ravi