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: 25471
    Brajesh Singh on in reply to: Issues with registration member types. #45276

    Hi Ethan,
    1. I am sorry, I don’t know the process you are suing to add the tabs but the above code has nothing to do with it.

    There are several reasons for a tab giving 404, Incorrectly registering the nav should have a proper screen callback and access specified.

    2. I am also not aware of your approval process. My code assistance was with skipping the castingdirector automatic activation.

    I am pretty sure that part is working on your site.

    Are you activating the casting director from dashboard? Can you please check by activating the account using the activation email?

    Regards
    Brajesh

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

    Hi Ethan,
    I am not seeing any issue with your code.

    You have htis

    
    		 bp_core_remove_nav_item( 'pdf' );
    		 bp_core_remove_nav_item( 'groups' );
    		 bp_core_remove_nav_item( 'mediapress' );
    

    It is removing 3 top level tabs and all of their sub tabs.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471

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

    Regards
    Brajesh

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

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

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

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

    Regards
    Brajesh