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: 25485
    Brajesh Singh on in reply to: [Resolved] login redirect issues #21086

    Hi Mike,
    Thank you.
    No problem. I will be glad to assist 🙂

    Have a great night to you too.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] login redirect issues #21084

    Thank you Mike.
    If you need me to debug it, I will do that gladly(I will need FTP access though).

    Please let me know if they are able to assist you or not .

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Mediapress Permalinks #21081

    Hi Ben,
    I am sorry to hear about that. I sure hope that it is better than earlier.

    Looking forward to chat with you.

    My best wishes.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] comment plugin #21080
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] comment plugin #21074
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi,
    Welcome to BuddyDev and thank you for asking the question.

    You can do it on bp_signup_validate action. I am showing it with a example. You will need to check for duplicate on your own as I am not sure how are you storing or from which table you want to check for the data(Is it the profile data table?)

    You will also need to know the field id to find the submitted content

    
    /**
     * Validation error.
     */
    function budydev_custom_validate_signup() {
    	$field_id = 32;// please change with your field id.
    	$field    = isset( $_POST[ 'field_' . $field_id ] ) ? trim( $_POST[ 'field_' . $field_id ] ) : '';
    	// validate your field
    	// from database
    	// and if there is any error,
    	// add the error to BuddyPress as
    	buddypress()->signup->errors[ 'field_' . $field_id ] = "Your error message";
    }
    
    add_action( 'bp_signup_validate', 'budydev_custom_validate_signup' );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Kristian,
    Yes, This is easily doable.

    You may use the following code

    
    
    /**
     * Activate and redirect.
     */
    function buddydev_auto_activate_redirect() {
    	$key = bp_get_current_activation_key();
    	if ( $key ) {
    		bp_core_activate_signup( $key );
    		bp_core_redirect( site_url( '/about/' ) );
    	}
    
    }
    
    add_action( 'bp_template_redirect', 'buddydev_auto_activate_redirect' );
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    You are welcome.

    All the best 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: BuddyPress Message Privacy #21066

    Thank you. Will update here after releasing the plugin.

    Regards
    Brajesh