New user – page after registration

This topic contains 19 replies, has 5 voices, and was last updated by  Paolo 8 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #194123

    Tim Martyn
    Full Member
    Post count: 51

    Hi

    Once a new user has registered their email and password etc, I would like them to be redirected to an alternative page to the site home page which seems to be the default setting.

    I have tried using the Peters Login plugin, but it doesn’t seem to make a difference. I don’t think this is a particularly unusual feature to support. Most sites redirect users to a ‘thank you’ page.

    Can someone please advise?

    Many thanks.

    #194247

    Kor
    Moderator
    Post count: 16516

    Hi Bluegnu,

    Sorry to hear that the Peters Login plugin did not work well for you. I’d like you to try using the filter below and see if it works. I’d suggest creating a child theme and insert the code below into your functions.php file. Give it a try and let us know how it goes.

    
    
    function my_login_redirect( $redirect_to, $request, $user ) {
        return "your url";
    }
    add_filter( 'login_redirect', 'my_login_redirect', 10, 3 );
    #194253

    Tim Martyn
    Full Member
    Post count: 51

    Thanks for your reply. Maybe I’m missing something with the Peters login plugin and haven’t set it up correctly. I’ve attached a grab of some of the settings and would appreciate it if you could advise if I’m not using it properly. Many thanks.

    #194372

    Paolo
    Site Admin
    Post count: 31206

    HI,

    please provide a URL and admin credentials in a private reply and we will have a look.

    Thanks

    #194388

    Tim Martyn
    Full Member
    Post count: 51
    This reply has been marked as private.
    #194459

    Paolo
    Site Admin
    Post count: 31206

    Link please?

    #194835

    Tim Martyn
    Full Member
    Post count: 51
    This reply has been marked as private.
    #195144

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    to test redirect after registration we need to be able to register and there is a password protected plugin for logged out users now, so we can’t test anything.

    Let us know,

    Thanks

    #195654

    Tim Martyn
    Full Member
    Post count: 51
    This reply has been marked as private.
    #195753

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    it’s seems like that plugin works well only for login redirects, not for registration.

    I asked to the developers to provide a quick php snippet to redirect to a custom page after registration.

    He’ll let us know asap.

    Thanks for your patience,

    #195946

    Tim Martyn
    Full Member
    Post count: 51

    Many thanks for this. At the moment, the feedback I get is that it’s confusing for new registrants because there is no confirmation page letting them know they have registered, so often they think there has been a problem and try to register again. I think it’s the usual convention to have some sort of message to confirm a user has registered, so you guys might want to feature that in a future update to the GeoDirectory plugin.

    I look forward to hearing from you.

    Thanks again!

    #196464

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Sorry for the delay, here is a snippet that should work for both reg and login:

    Thanks,

    Stiofan

    #196469

    Tim Martyn
    Full Member
    Post count: 51

    Wow, great and hugely appreciated.

    You’ll have to forgive me as my understanding of php is a fairly basic. Could you give me instructions as to where I need to add the code and anything else I need to do to set up the redirect?

    Many thanks in advance.

    #196472

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Sure,
    #1 you add the code to your child theme functions.php file, you don’t include the

    <?php

    part as the file should have that at the very top already, you just add it below that.

    Then in the function you edit the ‘/my-custom-page/’ to whatever you want.

    If you need anything else explained just let me know.

    Thanks,

    Stiofan

    #196473

    justmark
    Full Member
    Post count: 375

    Will this be added to the next version of GD?

Viewing 15 posts - 1 through 15 (of 20 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount