BuddyDev

Search

Replies

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

    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

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

    Hello Brian,

    Thank you for the acknowledgement. I am glad to help you.

    Regards
    Ravi

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

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

    Hello Lefteris,

    Thank you for the acknowledgement. I am glad that I could help.

    Regards
    Ravi

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

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Custom notification #44104

    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

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

    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

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

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

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