Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: [Resolved] Clear cookies on logout #45258

    Hi Tosin,
    Thank you for the explanation.

    It is always good to know about the reasons driving a decision.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: Buddypress biometric login #45257

    Hi Tosin,
    Thank you for the suggestions.

    I am sorry, at the moment, we lack the time to add it to Branded login any time soon.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: Update Support Content for Shortcodes #45252

    Hi Shaston,
    Welcome to BuddyDev support forums.

    Thank you for pointing the issues and helping us correct it.

    I have updated the documentation with the fix.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Tosin,
    Thank you for the patience.

    There was a slight mistake on my part.

    Please use the updated code

    
    
    /**
     * Update BuddyBlog Author when a post is submitted in a specific category.
     */
    add_filter( 'bblpro_post_submission_prepared_data', function ( $post_data, $form_id, $post, $is_submission ) {
    	// update author if the category was selected. Don't do anything on edit.
    
        $anonymous_cat_id = 1487;
        $anonymous_user_id = 4766806;
    
        if( ! $is_submission ) {
            return $post_data;
        }
    
    	$selected_terms_ids = isset( $_POST['tax_input'] ) ? (array) $_POST['tax_input'] : array();
    
    	$selected_categories = isset( $selected_terms_ids['category'] ) ? (array) $selected_terms_ids['category']: array();
    
        if( ! $selected_categories  || ! in_array( $anonymous_cat_id, $selected_categories ) ) {
            return $post_data;
        }
    
    	// Update.
    	$post_data['post_author'] = $anonymous_user_id;
    	// keep current user data for future?
    	if ( ! empty( $post_data['ID'] ) ) {
    		update_post_meta( $post_data['ID'], '_bbl_original_post_author', get_current_user_id() );
    	}
    
    	return $post_data;
    }, 10, 4 );
    
    

    I had used $post_data(which only contained basic details) instead of $_POST.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Quint,
    Please upgrade to 1.2.3. The plugin supports the BP Profile Search for Country field.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Giuseppe,
    Can you please link me to your activity stream.
    It seems, I am not looking at the same thing as you.

    you are probably thinking thumbnail and original as same thing.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: [Resolved] Clear cookies on logout #45247

    Hi Tosin,
    I am not seeing any issue with BuddyPress.

    Though I am not sure of the purpose of the code. WordPress already removes any auth related cookies on logout.

    The above will remove any other cookie(preference etc if saved).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Quint,
    Thank you for the feedback.

    BuddyPress lacks the proper way to provide feedback about a field. It is normally not on field level but on collection level on profile edit/registration pages.

    I can help you with the validation with some code. What is the expected workflow if the user do not enter a valid value? Do we discard the value? Do we generate error which is shown at the top of the page?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: buddyblog medium editor not displaying embeds #45245

    Hi Tosin,
    This is taking a little bit more time as the Medium Editor media insert plugin is not providing us with the source url instead of the rendered embed content.

    We can whitelist iframe and get this fixed quickly but that is not the right solution. We will be needing couple more days to get back on this one.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: buddyblog medium editor not displaying embeds #45228

    Hi Tosin,
    Thank you.

    I have requested Ravi to assist you tomorrow.

    Regards
    Brajesh