Support

Home Forums Event Espresso Premium How to restrict access to event listing

How to restrict access to event listing

Posted: June 8, 2015 at 2:43 pm


Robby Gunawan

June 8, 2015 at 2:43 pm

Hi,

I want <mydomain.com>/event_espresso/events (event listing) can’t be access by everyone, I’m already set direct link to my customer for each evnt post. Is it possible?

The point is, I don’t want my customers know what are my events in this month..

Thanks


Dean

June 9, 2015 at 3:45 am

Hi,

You could use the WP User Integration addon (available for both EE3 and EE4) to limit access to events to members only. The won’t hide the events, but they will disable registration unless logged in.

Other than that you could set your events to have a certain category such as “Public” and use that to display the events. That way you can exclude events without that category. Visiting the archive in EE4 (/events/) will still list all events.


Robby Gunawan

June 9, 2015 at 4:03 am

Hi Dean,

It means that every registrants will login to my WP site? supposed I have 2 different events, let say “Event 1” and “Event 2”, if “User A” register for “Event 1”, can “User A” view “Event 2” in the event listing ? or “User A” only view “Event 1” only?


Dean

June 9, 2015 at 6:59 am

Hi,

No, logged in users will have access to the events.

There’s two possible options, both using EE4:

1) You could password protect the events and users would only be able to access the events they have the password for.

2) You could use the EE4 capabilities system to check if the user has a certain capability and then combine it with a check for either event ID or category etc and that way limit content. This would require custom development, especially as only some of your users will be able to access some of the events, rather than an all or nothing approach.


Robby Gunawan

June 9, 2015 at 1:57 pm

Hi Dean,

Where I can find event listing code? maybe I can do custom development.

Thanks


Lorenzo Orlando Caum

  • Support Staff

June 9, 2015 at 4:53 pm

Hi Robby, here are some resources for working with the templates for Event Espresso 4:

https://eventespresso.com/2014/02/developers-corner-theming-event-espresso-4/

https://gist.github.com/lorenzocaum/0a35fe4997992fdb1dc5


Lorenzo

The support post ‘How to restrict access to event listing’ 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