Support

Home Forums Event Espresso Premium New Event – Question Groups not listed

New Event – Question Groups not listed

Posted: July 22, 2014 at 12:52 pm

Viewing 2 reply threads


scboston

July 22, 2014 at 12:52 pm

WP Version Version 3.9.1
EE Version 3.1.36.5.P
EE Plugins – Attendee Import, Calendar, Permissions, Social Media

This is a recurring problem which we have not reported before. There are 7 total Question Groups. When the Permissions Add-On is deactivated, only 2 QGroups are listed for Admins to choose from on the New Event page with one of those being the System QGroup. When the Permissions Add-On is activated, only the System QGroup is listed.

We need to allow limited access to Users so the Permissions Add-On is a must.

I don’t understand why all Admins cannot see all QGroups on new events.

Thank you so much for your assistance with this!

Tammy
http://www.skatingacademy.org


Tony

  • Support Staff

July 23, 2014 at 4:04 am

Hi Tammy,

Event Espresso pulls the question groups created by the user with id = 0 or 1 by default which is why only 2 question groups show up by default. With the Permissions Add-on active this is altered to only pull questions that match your current User_ID, we can alter both by using something like this:

add_filter('espresso_get_question_groups_for_event_where', 'espresso_get_question_groups_for_event_where_custom', 9);
function espresso_get_question_groups_for_event_where_custom() {

	remove_filter('espresso_get_question_groups_for_event_where', 'espresso_rp_basic_get_question_groups_for_event_where', 10);

	return '';
}

Within your themes functions.php files or a site specific plugin

That will remove the User_ID check and also set the EE default to display all question groups created by any users.


scboston

July 23, 2014 at 5:45 am

Awesome. Works like a charm. I’ll ask the other admins to check it as well. Please mark this as resolved/closed.

Viewing 2 reply threads

The support post ‘New Event – Question Groups not listed’ 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