Support

Home Forums Event Espresso Premium How to show registration page only to logged in users?

How to show registration page only to logged in users?

Posted: January 3, 2019 at 6:45 am


jonaslagneryd

January 3, 2019 at 6:45 am

Hi,

We want to restrict the booking of tickets to only logged in users. How do we do this?

Best regards,
Jonas


Tony

  • Support Staff

January 3, 2019 at 2:47 pm

Hi Jonas,

The WP User integration add-on has the ability to limit restrict events to logge din users only:

https://eventespresso.com/wiki/wp-user-integration/

With that add-on active you’ll see the ‘Force login for registrations’ option within the event editor, set that to yes and update the event.


jonaslagneryd

January 4, 2019 at 2:56 am

Hi,
Yes we have the add-on WP User Integration already and it is activated. However when the user shall log in after clicking on Book ticket, the whole process is faulty. I can show screen shots if you tell me how to upload.
Best regards, Jonas


Tony

  • Support Staff

January 4, 2019 at 3:21 am

For screenshots you’ll need to host the image somewhere and post the link to it here, we have some examples of how here:

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


jonaslagneryd

January 4, 2019 at 3:34 am

Here link to screenshot. https://photos.app.goo.gl/vUMRHotDzF6B1GUDA


Tony

  • Support Staff

January 4, 2019 at 3:45 am

Thank you, but that screenshot doesn’t help show what the problem is.

So when they log in using that form, what happens?


jonaslagneryd

January 4, 2019 at 3:51 am

The form is incorrect. There should be a Confirm/Send button instead of “Deltagarnas uppgifter”. When the user has filled in the form and clicked “Deltagarnas uppgifter” (which is of course misleading), the process stops and there is an error message, saying one has to refresh the page.


jonaslagneryd

January 4, 2019 at 4:04 am

Or rather, the button “Deltagarnas uppgifter”, should be a “Log in”-button. And of course the process should not stop afterwards.

Cheers, Jonas


Tony

  • Support Staff

January 4, 2019 at 4:14 am

The form is incorrect. There should be a Confirm/Send button instead of “Deltagarnas uppgifter”.

In English that button shows ‘Proceed to Attendee Information’ which is correct.

Step 1 in that case is to log in, when you add your details and click the ‘Proceed to Attendee Information’ button, you go to step 2, which is the Attendee Information step and then so on.

It looks like the Swedish translation has the ‘Proceed to %s’ translations set to just use ‘%s’ (which is a placehold for the next step, meaning it just shows ‘Attendee information’.

See: https://translate.eventespresso.com/projects/event-espresso-4/sv/event-espresso-sv_se/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=21104&filters%5Btranslation_id%5D=93570

I’d recommend fixing that translation so it doesn’t just remove the prefix text.

When the user has filled in the form and clicked “Deltagarnas uppgifter” (which is of course misleading), the process stops and there is an error message, saying one has to refresh the page.

That means there’s likely an error being thrown on the page during the login request, do you have access to the server error logs? If so take a look thee and see if you can see any errors being thrown at the same time as you are testing the above.


jonaslagneryd

January 4, 2019 at 1:55 pm

It seems there is no .po-file for WP User Integration https://photos.app.goo.gl/PkmpEjZXZdmW1ZYN8


Tony

  • Support Staff

January 4, 2019 at 2:01 pm

It’s all within the Event Espresso core po file (same for all our add-ons).

May I ask which string you are translating?


jonaslagneryd

January 5, 2019 at 12:31 am

Fixed the translation of the button. However (see links to screen shots),
1) There are several strings that are not translated.
2) As you see in one screen shot, the process is halted, showing an error message. And there is nothing in the WP error log.

https://photos.app.goo.gl/a14MXfjEzhj4gZ4M9
https://photos.app.goo.gl/1F1Ua3BtLAa1sU1k8

https://photos.app.goo.gl/uyv8dLJo3DQ41S2k6

Thanks for your assistance and support!
Jonas


jonaslagneryd

January 5, 2019 at 12:36 am

Here you can see
https://klubbdansa.se/?post_type=espresso_events


Tony

  • Support Staff

January 7, 2019 at 7:51 am

1) There are several strings that are not translated.

Translations are community led so we may not have all strings translated for your language.

Swedish shows as 18% translated here:

https://translate.eventespresso.com/projects/event-espresso-4/

Note that percentage will be applied across both the admin and front end.

If you would like to join and submit translations to the project you can use the form here:

https://eventespresso.com/wiki/how-to-translate-event-espresso/#translator

2) As you see in one screen shot, the process is halted, showing an error message. And there is nothing in the WP error log.

Do you have any ‘login’/member/profile plugins that may be trying to redirect the user to a page after they have logged in?

To view the problem I’ll need temporary login details so I can try to log in and view the request. If you can send details using this form:

https://eventespresso.com/send-login-details/

I’ll take a look.


jonaslagneryd

January 7, 2019 at 10:09 am

Hi, and thans for your reply.

1) Translations
So for instance these phrases/stings are not translated?
“The event you have selected requires logging in before you can register. You can register for an account here if you don’t have a login”
“Username*
Password”

2) Yes, I realized that now. We use the add-on Simple WP Membership and its Re-direction feature. Now, I have turned that feature off.

3) The page the user is redirected when clicking “You can register for an account here if you don’t have a login” is not the page we want to direct our users to. Would it be possible to change?

However, I realiz now that the best thing would be to not show anything of the Event Espresso pages to the NOT-LOGGED-IN in users. So only when the user is LOGGED-IN would he/she be able to see and register for an event. Would it be possible to configure it so?
Best regards, Jonas


Tony

  • Support Staff

January 9, 2019 at 5:36 am

1) Translations
So for instance these phrases/stings are not translated?
“The event you have selected requires logging in before you can register. You can register for an account here if you don’t have a login”
“Username*
Password”

Yes, that’s correct.

See:

https://translate.eventespresso.com/projects/event-espresso-4/sv/event-espresso-sv_se/?filters%5Boriginal_id%5D=22257
https://translate.eventespresso.com/projects/event-espresso-4/sv/event-espresso-sv_se/?filters%5Boriginal_id%5D=21863
https://translate.eventespresso.com/projects/event-espresso-4/sv/event-espresso-sv_se/?filters%5Boriginal_id%5D=21864

2) Yes, I realized that now. We use the add-on Simple WP Membership and its Re-direction feature. Now, I have turned that feature off.

Just to note, any plugin that tries to redirect the user after login, even on AJAX requests, will cause the same problem.

3) The page the user is redirected when clicking “You can register for an account here if you don’t have a login” is not the page we want to direct our users to. Would it be possible to change?

Yes, you can change that in:

Event Espresso -> Registration form -> Registration Page URL (if different from default WordPress Registration)

Set the URL you want to use in that field and EE will use that.

However, I realiz now that the best thing would be to not show anything of the Event Espresso pages to the NOT-LOGGED-IN in users. So only when the user is LOGGED-IN would he/she be able to see and register for an event. Would it be possible to configure it so?

Not through Event Espresso itself, but you should be able to use the content restriction plugins available in the plugins repo to hide the content for non-logged in users.

Are you currently using a plugin to restrict content anywhere on the site? I can check if that works with EE (or if there is a way to make it work with EE)

The support post ‘How to show registration page only to logged in users?’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 months, 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!