New user – page after registration
This topic contains 19 replies, has 5 voices, and was last updated by Paolo 9 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Redirect, Registration
-
AuthorPosts
-
May 19, 2016 at 10:44 am #194123
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.
May 19, 2016 at 1:50 pm #194247Hi 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 );May 19, 2016 at 1:57 pm #194253Thanks 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.
May 19, 2016 at 5:37 pm #194372HI,
please provide a URL and admin credentials in a private reply and we will have a look.
Thanks
May 19, 2016 at 5:57 pm #194388This reply has been marked as private.May 19, 2016 at 8:07 pm #194459Link please?
May 20, 2016 at 8:58 am #194835This reply has been marked as private.May 20, 2016 at 3:52 pm #195144Hi,
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
May 21, 2016 at 8:25 am #195654This reply has been marked as private.May 21, 2016 at 5:33 pm #195753Hi,
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,
May 22, 2016 at 10:24 am #195946Many 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!
May 23, 2016 at 12:46 pm #196464Sorry for the delay, here is a snippet that should work for both reg and login:
Thanks,
Stiofan
May 23, 2016 at 12:55 pm #196469Wow, 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.
May 23, 2016 at 1:12 pm #196472Sure,
#1 you add the code to your child theme functions.php file, you don’t include the<?phppart 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
May 23, 2016 at 1:15 pm #196473Will this be added to the next version of GD?
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket