Posted: April 22, 2016 at 4:49 am
|
SO I have setup our events so that they do not force a login to register, and I have activated the create new user if not logged in. It seems to work, it opens a new user page but after the new user completes their login info they end up at the User Registration Completed page. To go back to the event and complete their registration it often confuses new people on our site. I have deactivated any plugins that might block the defaul WordPress login and still the process stops at the login successful page. What can I do to redirect the new user registration back to the event that they were wanting to register for? Thanks! |
Hello, We do not create a user registration login success page so that may be from another plugin on your site. Try using a free plugin like Peter’s login redirect to redirect a registrant/attendee to a specific page on your site after login (e.g. the events listing page). — |
|
|
Thanks Lorenzo, we want to send the user back to the event they were registering for when they were prompted to register as a user….. we have many events each year…. |
Hi, Again, we do not use a user login success page so you would need to use another plugin to control where the registrant/attendee is routed after a login. — |
|
|
I reverted to WP default register and login with the same result… not able to locate a plugin that redirects to something other than a fixed url after login… ok thanks! |
|
I did find this: |
|
https://wordpress.org/support/topic/any-way-to-redirect-to-previous-page-after-login |
Hi, I’ve heard good things about Peter’s login redirect: https://wordpress.org/plugins/peters-login-redirect/ — |
|
|
Thanks… checking it out… will let you know if it works….. |
|
Redirects only to fixed url’s… I need a redirect back to the Event the new user was registering for when they were required to create their user account… thanks…. |
A fixed URL should work because if they’ve started the registration process, you’ll want to take them back to the page that has the registration form, which is a fixed URL. If you prefer to not use the plugin, you can also add a code snippet to your site like this one: https://gist.github.com/joshfeck/985bfe3729a47bcf23b1757625f7f4be You can add the above to a functions plugin or into your WordPress theme’s functions.php file. |
|
|
We have many events available for registration…. let me check out the link and see how it goes.. fingers crossed |
No need to second guess. The registration checkout page is a fixed URL. |
|
|
Ah, good to know… I figured each event had it’s own checkout… thanks! |
|
Ok, we use Profile Builder Hobbyist as our frontend user registration as we require a series of questions for each new user. I created a plugin from the PHP code you sent which sends the user to the regular WordPress login, resulting in several lines of errors. Here is the first error line: Warning: in_array() expects parameter 2 to be array, null given in /home/shivanph/public_html/wp-content/plugins/redirect.php_-1/redirect.php on line 15 Unfortunately my PHP knowledge is rather limited and this old dog is slow to learn new tricks. And to add EE4 is really working wonders for us… even on our quirky site with so many variables…. |
I added some additional error proofing to that snippet, and updated it here: https://gist.github.com/joshfeck/985bfe3729a47bcf23b1757625f7f4be |
|
|
Yes it works! I just had to alter the url for the checkout page. The only negative is I have to find a way to create the several personal questions when a new user is created, as above I use Profile Builder but perhaps I add the questions to each event. We get many repeat attendees so they would have to provide the answers every time they register. Which i was trying to avoid. Thanks agin for sorting this out though! |
You can avoid having them to avoid answering the same questions on each event registration by adding something like this to your site: |
|
|
While we sort out our registration redirects, I want to go back to using profile builder as our new user registration. Currently, it goes to the default WordPress login screen. I had created a plugin from your code but want to put it aside for a week. I completely deleted the plugin. I have changed the settings to go to our Profile Builder registration page but EE4 still redirects the new user to the default WP Login page. Help! |
Hi there, Are you asking for help with the Profile Builder plugin? Have you tried opening a support ticket with them? |
|
|
No. We were experimenting with EE4 and finding away to send people back to the checkout after logging in as a user, originally we use Profile Builder for our cutom WP Login. EE had sent me some scripts to try and resolve the redirect issue which meant using the WP default login. This is not satisfactory right now and I want EE4 to go back to the way it was before the change (Using the PB User Registration) I changed the EE4 settings to require a login and then used the registration URL but EE4 still redirects the new user login to the WP default. This is nothing to do with Profile builder. Hope this explains it… |
Not really because it’s not clear whether you’re looking to do. Is this for:
|
|
|
Ok, best if I turn off all login requirements to register for an event. The EE WP Users plugin is set to “no” to force a login but EE still sends the registrants to the WordPress log in. I deleted and reinstalled the plugin to no avail. I can send you some screen shots if you send me your email address. |
It will still ask for a log in if they’re not logged in, but their email address matches an existing user. To avoid that, you can add this to a functions file on your site: https://gist.github.com/joshfeck/1131145859a3fab58f4d#file-disable_email_match-php |
|
|
Wanting to remove all login requirements to register as we had it recently. Screenshot of the login I want removed So, basically we want people to be able to register without the need to login as a user. I will get our required registrant info in each event using the Question Groups. Still curious as to why deselecting the login required option does not function. Thanks… |
|
Resolved… I just went through all my events and manually turned off the forced login options and everything appears back to normal. Thanks for all your solutions…. EE rocks… |
The support post ‘Return New User Back to Event Registration….’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.