Support

Home Forums Event Espresso Premium User Registration functions/core pages?

User Registration functions/core pages?

Posted: January 27, 2020 at 1:32 pm


Allen

January 27, 2020 at 1:32 pm

Hi, I have downloaded the User Registration Add-On, but I haven’t really incorporated it into my site. Meaning, I can see it on the back-end, but I have not made any references to it on the front end.

I want to learn how to control the “login flow” first … I have created a custom login page, and a standard WordPress Registration page (which is different that YOUR registration page, right?) – but, I can not create a “Lost Password” and “Restore Password” core page yet.

Problem is – I have now noticed 2 specific users submit the “Lost Password” link – and I can only tell because I have received the default WordPress message by email “Password Lost and Changed for user: XXXX” … where are they being asked to submit a password??

Is your User Registration plugin causing them to enter a password somewhere? How would I find out where?

I want to incorporate a User system, but I don’t fully grasp how all of this is supposed to work


Tony

  • Support Staff

January 28, 2020 at 6:01 am

I want to learn how to control the “login flow” first … I have created a custom login page, and a standard WordPress Registration page (which is different that YOUR registration page, right?)

‘YOUR’ as in ours? Meaning Event Espresso?

We don’t have a user registration page, we have an event registration page for registering onto events and users can be created from those details, but we don’t have a user registration page within Event Espresso.

but, I can not create a “Lost Password” and “Restore Password” core page yet.

Sorry but I don’t understand, why do you need pages for those?

Problem is – I have now noticed 2 specific users submit the “Lost Password” link – and I can only tell because I have received the default WordPress message by email “Password Lost and Changed for user: XXXX” … where are they being asked to submit a password??

The default WP login prompts will show a link to reset your password.

You haven’t posted any links to your your site, so neither will I but:

{domain}/wp-login.php

On your site redirects to a custom login page, but not if there is a query string (which there often will be as plugins will try to redirect back to the page that sent them to it), so going to event just:

{domain}/wp-login.php?

Will show you the default WP login page.

Is your User Registration plugin causing them to enter a password somewhere? How would I find out where?

The WP user integration add-on will require users that are not logged into the site, but have added registration details that match a current user of the site to log in.

You can test this in an incognito/private window of your browser. Register onto an evet using the same details you have on your account (the incognito/private window should NOT be logged into the site) and EE will show a message that you need to log in.

Or, if you events are set to require login there is a link shown to register for an account on step one, like this:

https://monosnap.com/file/UDjeHcLl9qfITEjD1a1isxQggxTj8N

Clicking the link highlighted sends you to the WP registration page, by default that is /wp-login.php but, as mentioned above, EE sends values in the query string to sell WP to direct the user back to the checkout process once they’ve registered on the site. Whatever you are using to hook into wp-login.php isn’t taking that into consideration.

You can change the link used by Event Espresso so technically, you could prevent it from sending those additional query string values but you then lose the redirect back to the cart if you do that. You change the URL in:

Event Espresso -> Registration form -> User integration settings -> Registration Page URL

Ideally whatever plugin you are using to redirect users to your custom login/register page should take the query string into account.

I want to incorporate a User system, but I don’t fully grasp how all of this is supposed to work

It’s important to note that Event Espresso is an event management system, not a user management system so with the exception of checking if a user is logged in or if the event registration details match a current user, EE actually has very little to do with ‘Users’.

We do have some functionality to create new users from the registration form and obviously link the user to a user registration page so they can register onto the site but managing those pages and the users themselves is all expected to be done outside of Event Espresso.

The user integration add-on basically provides a method to link a user account to their registrations so they can view them later.


Allen

January 28, 2020 at 2:02 pm

Ok, I appreciate the thorough replies … Ive done some research and made some progress. I’ve bought the plugin “Profile Builder” from Cozmoslabs and I am making progress.. I want to be able to control the whole process, from when a player signs up, to edit their profile, and one day, hopefully, allow them to save billing details and such, to make the process easier.

I just feel like their is a piece I am missing.

So, another question or two I’ve thought of:
1. How can I see the address and info that a User enters into EE when signing up for an event – shouldn’t that appear in their User Profile also?

2. What happens is an Attendee is Primary but signs up other people also, we have that happen all the time. Will the Primary see all the registrations they’ve made for others in their “Event Dash”

My site is SuperBilliardsExpo.com … I dont mind sharing it. You can go here and make a “fake” account to see if I set things up right: superbilliardsexpo.com/register

I guess I just don’t even know the right questions to be asking .. but Im learning. Thanks for help!

Allen


Tony

  • Support Staff

January 29, 2020 at 3:03 am

1. How can I see the address and info that a User enters into EE when signing up for an event – shouldn’t that appear in their User Profile also?

No, because then EE would be managing WP user profile data, which it does not do, for multiple reasons.

To confirm, when you say their ‘User profile’, which profile do you mean?

Dashboard -> Users -> User? If so, then no, the answer above applies.

If the user is entering their address details into the Event Espresso registration form (NOT the payment section) then those details will be saved to their EE contact.

You can find the EE contact by going to the registration in the list – Event Espresso -> Registrations

Either click on the registration then in the top right you’ll see a ‘Contact Details’ section with a button to ‘View/Edit Contact’

Or click on the ‘person’ icon shown in the registration list under the ‘Actions’ column to take you directly to the same page as above.

EE by default will not autofill those details for the user, but after they initially provide those details in EE it is possible to autofill them from the above contact if that’s what you are looking to do?

2. What happens is an Attendee is Primary but signs up other people also, we have that happen all the time. Will the Primary see all the registrations they’ve made for others in their “Event Dash”

No, they will not.

They will only see registration linked to their EE contact (meaning registration made matching their EE contact details).

I guess I just don’t even know the right questions to be asking .. but Im learning. Thanks for help!

If we step away from all of the above for a second, what is it your trying to achieve? (I mean the specifics of how you are hoping to get this working, not just ‘manage users’ but I’m sure you have a process in mind already)


Allen

January 29, 2020 at 11:44 am

Ok, thanks again … first another question:
How can I change the error message that comes up when someone tries to register for an event, but they do not have a User profile created yet? For sake of conversaton, lets separate EEUser (Event Espresso User Profile) and WPUser (Dashboard>Users) … I think thats teh start of confusion in my head. Your add-on is called “User Registration” but it is not really the WPUser profile that is getting adjusted.

Anyway, the error message that EE generates is this:
“An error has occurred:
You have entered an email address that matches an existing user account in our system. If this is your email address, please log in before continuing your registration. Otherwise, register with a different email address.”

Since most of our participants return annually, many will be in the EE system, but not a WPUser, since we’ve never offered that before. So, many might be confused by that error message. I would like to explain it to them a little better, maybe even add a link to a page describing the process. As you can tell, I can be a bit wordy, haha

All that aside – what I am ultimately trying to achieve is a site where players can have their own “profile” or account. Maybe a short bio, pic, etc … then, when they sign up to play in one of our events, a page could be generated showing all attendees, with a small thumbnail, etc… I really like how I can list all the participants with your shortcode, and the players love this. Ideally, I’d like them to be able to store their payment info to make enrolling even easier, like when I am online shopping – but, that isn’t crucial. I like the “My Events” page that the add-on creates, and I hope to learn more and be able to customize it.

I develop everything myself, and I use Elementor page builder. So, the shortcodes are great. I realize that some of what I want to do is beyond my capacity at the moment, which is why I am trying to learn. Sometimes it just feels like I don’t even know which questions to ask or where to begin. I am piecing together things as best I can – but, I know something is missing. And, to be honest, I really don’t know anyone in real life to ask. So, like, I just don’t know where to begin, you know? 🙂


Tony

  • Support Staff

January 29, 2020 at 3:07 pm

How can I change the error message that comes up when someone tries to register for an event, but they do not have a User profile created yet?

There isn’t an error in that situation.

For sake of conversaton, lets separate EEUser (Event Espresso User Profile) and WPUser (Dashboard>Users) … I think thats teh start of confusion in my head. Your add-on is called “User Registration” but it is not really the WPUser profile that is getting adjusted.

The add-on is called the ‘WP User Integration‘ add-on and thats exactly what it does, integrates your WP User with your EE User (it’s not really an EE User, rather an EE_Contact), without the add-on, there is no relationship between them.

The WP User profile can (and will) be updated depending not only on the User integration settings but the values. For example, the first name, last name and email address will be synced with your EE_Contact and WP user profile, meaning if you are logged into your WP User and change those values EE will sync them to both the EE_Contact and WP_User profile…. IF the ‘Always sync contact information with WP user profile?’ option is set to Yes in Event Espresso -> Registration form -> User intergration settings.

Anyway, the error message that EE generates is this:
“An error has occurred:
You have entered an email address that matches an existing user account in our system. If this is your email address, please log in before continuing your registration. Otherwise, register with a different email address.”

Since most of our participants return annually, many will be in the EE system, but not a WPUser, since we’ve never offered that before. So, many might be confused by that error message. I would like to explain it to them a little better, maybe even add a link to a page describing the process. As you can tell, I can be a bit wordy, haha

That’s not how that error works.

What is happening there is EE is using the email address passed with the registration to check for WP User (NOT EE_Contacts), if a WP_User is found with that email address then it prompts them to log in.

Changing that error can be done, but right now it sounds like it works the opposite of how you think it works, so are you sure you want to change it still?

All that aside – what I am ultimately trying to achieve is a site where players can have their own “profile” or account. Maybe a short bio, pic, etc … then, when they sign up to play in one of our events, a page could be generated showing all attendees, with a small thumbnail, etc…

All of that would be handled outside of Event Espresso, that’s member management, not event management.

EE has various hook you can use to inject details all over the place, a quick count gives ~1500 filter hooks and over ~870 action hooks, not including the standard WP hooks which can be used in various places and and additional hooks within add-ons.

Point being we try to make it easy enough for the vast majority of ways people want to customize the process and the various plugins they want to use for different apects of the site…. for example you may want to use ultimate member to manage members or maybe you want to use S2 Member. Both of those will store additional member details differently and we can’t have a one-integration-to-rule-them-all type of setup with that which means we can only provide a method to hook into EE which then allows you to create custom code that pulls the data you need from whichever membership plugin you use and inject the data into EE. (UM and S2 are but examples here, there are many).

Even then, the above has very little to do with Event Espresso and registrations, I’m assuming what you mean by the above is that you want users to manage a ‘profile’ page and then the details they entered itno that used in the EE registration forms by default, right?

That’s possible! But it’s not something we can do out of the box for the reasons mentioned above. It would simply be unsustainable for us to try an integrate with each and every way that various plugins stored data and do it automagically for you.

I really like how I can list all the participants with your shortcode, and the players love this.

You can customize that output, pretty much everything EE in is customizable but not everything is ‘easily’ done 🙂

Ideally, I’d like them to be able to store their payment info to make enrolling even easier, like when I am online shopping – but, that isn’t crucial.

A very important note on this subject is that storing credit card/payment information on your site, completely changes your PCI Compliance level.

Unless you want to spend a huge amount of time and resources securing this and becoming compliant, then in short, I recommend you don’t look further into this, it isn’t worth it.

I like the “My Events” page that the add-on creates, and I hope to learn more and be able to customize it.

It really depends on what you want to customize, but theres hooks and templates you can customize.

Some examples:

https://gist.github.com/Pebblo/9534d318347082e63fc01f5c9c413361
https://gist.github.com/Pebblo/08b78a470c74ea1c32b06ade89cc8fd8

(This last one is a custom template that overrides the original)
https://gist.github.com/Pebblo/54707c59d09185e16e1e15f35ba3765c

I realize that some of what I want to do is beyond my capacity at the moment, which is why I am trying to learn. Sometimes it just feels like I don’t even know which questions to ask or where to begin. I am piecing together things as best I can – but, I know something is missing.

You really need to get together with someone familiar with WordPress, PHP and OOP, not particularly EE itself (although it would help) as with the above you can learn how to customize EE.

Unfortunately, the hard truth is that your unlikely to find someone that will work through all of your requirements for free unless they are already involved in the project, simply put it’s a lot to ask of anyone.

I’ll happily answer your questions but should add that we support Event Espresso and its functions, when customizing sections of it or adding your own custom code it’s expected that you can follow that code yourself, meaning we don’t support those customizations.

The support post ‘User Registration functions/core pages?’ 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