Support

Home Forums Event Espresso Premium Return New User Back to Event Registration….

Return New User Back to Event Registration….

Posted: April 22, 2016 at 4:49 am

Viewing 25 reply threads


Devaraj

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!


Lorenzo Orlando Caum

  • Support Staff

April 22, 2016 at 5:36 am

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).


Lorenzo


Devaraj

April 22, 2016 at 5:38 am

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….


Lorenzo Orlando Caum

  • Support Staff

April 22, 2016 at 5:40 am

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.


Lorenzo


Devaraj

April 22, 2016 at 7:49 am

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!


Devaraj

April 22, 2016 at 7:53 am

I did find this:


Devaraj

April 22, 2016 at 7:53 am

https://wordpress.org/support/topic/any-way-to-redirect-to-previous-page-after-login


Lorenzo Orlando Caum

  • Support Staff

April 22, 2016 at 9:59 am

Hi, I’ve heard good things about Peter’s login redirect:

https://wordpress.org/plugins/peters-login-redirect/


Lorenzo


Devaraj

April 22, 2016 at 12:36 pm

Thanks… checking it out… will let you know if it works…..


Devaraj

April 22, 2016 at 12:48 pm

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….


Josh

  • Support Staff

April 26, 2016 at 10:03 am

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.


Devaraj

April 26, 2016 at 10:06 am

We have many events available for registration…. let me check out the link and see how it goes.. fingers crossed


Josh

  • Support Staff

April 26, 2016 at 10:07 am

No need to second guess. The registration checkout page is a fixed URL.


Devaraj

April 26, 2016 at 10:09 am

Ah, good to know… I figured each event had it’s own checkout… thanks!


Devaraj

April 26, 2016 at 10:36 am

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….


Josh

  • Support Staff

April 26, 2016 at 1:38 pm

I added some additional error proofing to that snippet, and updated it here:

https://gist.github.com/joshfeck/985bfe3729a47bcf23b1757625f7f4be


Devaraj

April 26, 2016 at 2:49 pm

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!


Josh

  • Support Staff

April 27, 2016 at 12:21 pm

You can avoid having them to avoid answering the same questions on each event registration by adding something like this to your site:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/mn_wp_user_addon_save_custom_answers_too.php


Devaraj

April 28, 2016 at 9:28 am

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!


Josh

  • Support Staff

April 28, 2016 at 10:44 am

Hi there,

Are you asking for help with the Profile Builder plugin? Have you tried opening a support ticket with them?


Devaraj

April 28, 2016 at 10:50 am

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…


Josh

  • Support Staff

April 28, 2016 at 12:31 pm

Not really because it’s not clear whether you’re looking to do. Is this for:

  • returning a logged in user to the registration page
  • redirecting to a different account registration form
  • something else?


Devaraj

April 28, 2016 at 1:15 pm

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.


Josh

  • Support Staff

April 28, 2016 at 2:51 pm

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


Devaraj

April 29, 2016 at 2:43 am

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…


Devaraj

April 29, 2016 at 7:45 am

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…

Viewing 25 reply threads

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.

Event Espresso