Support

Home Forums Event Espresso Premium Member Only Events with Shortcode

Member Only Events with Shortcode

Posted: August 8, 2012 at 2:19 pm


Melissa

August 8, 2012 at 2:19 pm

I’ve set my event to be Member Only; however this just seems to remove it completely from view when not logged in using the [EVENT_LIST] shortcode. There is no instruction text or link to login, it’s just blank. If I go directly to that event page, I see info text to login, but how is a visitor supposed to get to the event page before then without a direct link?


Josh

  • Support Staff

August 8, 2012 at 3:38 pm

Hi Melissa,

The event list can be customized to include a log in link by uncommenting line 313 of the event_list.php template.

So this:

//Display a message if the user is not logged in.
                //_e('Member Only Event. Please ','event_espresso') . event_espresso_user_login_link() . '.';

would be this:

//Display a message if the user is not logged in.
                _e('Member Only Event. Please ','event_espresso') . event_espresso_user_login_link() . '.';

Alternatively, the upcoming events widget will include member only events when it displays events to logged out visitors of the site.

See this guide on where to copy custom templates: https://eventespresso.com/wiki/put-custom-templates/


Melissa

August 8, 2012 at 3:48 pm

Editing event_list.php worked. Thanks.


studioarthouseinc

September 6, 2012 at 4:57 pm

We need all member events to display publicly, but registration s/b restricted to members. See http://dfwartclasses.com/our-classes/workshops/

I uncommented the line in events_list.php, but that results only in the list showing a member only message in place of the event info. Any info about the member-only events still does not display.

Also – see Autumn Grape Leaves in the upcoming events on the left. that is a member only event that does not show up in the workshop list, but if clicked, it shows a registration form – not a site registration prompt.

EE 3.1.26.P

The support post ‘Member Only Events with Shortcode’ 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