New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    You are welcome 🙂
    I am glad to be of service.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    Brajesh Singh on in reply to: Issues with registration member types. #45260

    Hi Ethan,
    Where can I see the code? Is it in bp-custom.php?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    Hi Tosin,
    Will it work if we supplied you some code instead.

    We do plan to change the way the users are selected but that will need some significant time as we hope to have a better maintainable and future adaptable solution for multiple custom sources of users.

    If you need a quick solution, Ravi or I can put some code quickly.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509
    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: 25509
    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: 25509
    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: 25509

    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: 25509

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

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25509

    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: 25509
    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