BuddyDev

Search

[Resolved] ajax registration doesnt redirect

  • Participant
    Level: Initiated
    Posts: 1
    Michael Ladas on #3824

    Just purchased Ajax Registration yesterday. I have a private log-in page (http://nautility.org/boat-social/) where I have also added a registration button that runs the ajax registration… following normal log-in, the page redirects to the home page (http://nautility.org) HOWEVER, following registration and confirmation of the “Sign Up Complete Notification”, the page does not redirect and simply stays on the log-in page (http://nautility.org/boat-social/)… Is there a way to redirect to another page?

    I tried utilizing similar methodology to what you offered as support for BP Auto Activate Autologin Redirect To Profile On Signup (adding to bp-custom.php see below), but couldnt figure out how to integrate with Ajax Registration)…

    Any help would be appreciated.. Thank you…

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #3829

    Hi Michael,
    Welcome to BuddyDev.
    Thank you for purchasing the plugin.

    Please put the following code in your bp-custom.php

    
    function buddydev_redirect_url_for_ajax_signup( $redirect, $user_id ) {
    
    	return bp_core_get_user_domain( $user_id );//redirect to profile
    }
    
    add_filter( 'bpajaxr_redirect_url', 'buddydev_redirect_url_for_ajax_signup', 10, 2 );
    
    

    Please check and let me know if the user is getting redirected to their profile page nor not?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    Michael Ladas on #3832

    Works Perfect! Thank you much! GREAT PLUGIN and well worth the $20!

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #3835

    Thank you Michael,
    I am glad that we could help 🙂

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved