Support

Home Forums Event Espresso Premium How to Hide Pending Events from public?

How to Hide Pending Events from public?

Posted: June 5, 2014 at 4:38 am


Dennis Overhage

June 5, 2014 at 4:38 am

When I use an Espresso Event Manager account to create a new event, this event status will be ‘Pending’ until the Master Admin approves the event and moves the status to ‘Open’. This is great. However, even while the event is ‘Pending’ it is already displayed for the public in the upcoming event widget and event calender.

I want my Master Admin to approve the event before it becomes visible on the website. Therefor my question is: How do I hide Pending events from public?


Dean

June 5, 2014 at 6:41 am

Hi Dennis,

Though the pending event is shown on the front of the site, it is only shown to logged in Admins.

Logged out users and logged in users of a lower role, will not see this event.


Dennis Overhage

June 5, 2014 at 6:51 am

Hi Dean,

I logged in as a subscriber and I can see the pending event. It just says “Event Is Pending”. Also when I log out and disable Maintenance mode for a minute, I can see the Pending Event while I’m simply a guest… It seems it shouldn’t be this way but it is. Can you please help me?

Dennis


Dean

June 5, 2014 at 10:03 am

Hi Dennis,

What version of EE are you using please? Also your Roles and Permissions Basic and Roles and Permission Pro versions too please.


Dennis Overhage

June 5, 2014 at 10:45 am

Event Espresso version 3.1.36.5.P
Event Espresso – Permissions version 1.5.5.p,
Event Espresso – Roles and Permissions Pro version 2.0.8.p,


Dennis Overhage

June 6, 2014 at 2:11 pm

Any thoughts?


Seth Shoultes

  • Support Staff

June 6, 2014 at 2:19 pm

Hi Dennis,

It looks like the pending events were overlooked in the widget and probably the calendar. I have added tickets to fix this issues in a future version of EE.

For now, you can manually fix the widget by adding the following code after line #126 of the event-espresso/templates/widget.php file:

https://gist.github.com/sethshoultes/9488c126bcd5b6271079

  • This reply was modified 9 years, 11 months ago by  Seth Shoultes.
  • This reply was modified 9 years, 11 months ago by  Seth Shoultes.


Dennis Overhage

June 6, 2014 at 2:39 pm

Works like a charm! Thank you Seth!


Seth Shoultes

  • Support Staff

June 6, 2014 at 2:41 pm

I just double checked the calendar and it looks like it should be working correctly, because it filters out the pending events. Can you please double check the calendar on your end?


Dennis Overhage

June 6, 2014 at 2:51 pm

Yes, the pending event is now hidden from the upcoming events widget and the calender. Thanks!

The support post ‘How to Hide Pending Events from public?’ 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