Support

Home Forums Event Espresso Premium Thousands of People

Thousands of People

Posted: January 19, 2016 at 10:41 pm

Viewing 1 reply thread


Jeff Long

January 19, 2016 at 10:41 pm

Hey there,

I am migrating an event management platform to Event Espresso. The current system has about one thousand instructors across a large geography.

I setup some pretty large, swanky excel spreadsheets and imported the users:

1) first user accounts
2) second espresso_people posts
3) third espresso attendee_meta

And I’m glad to say that it went great! The only problem is, now 1,000+ instructors load up on the event editor page. PHP times out during the process.

Is there a way to modify the people-adding interface to use …

a search-as-you-type entry

Or – something else less resource intensive and more useful?

Are there hooks for reaching into that part of the page?
And what files of your plugin create that part of the page?

Thanks!


Josh

  • Support Staff

January 20, 2016 at 11:59 am

Hi Jeff,

You can look at changing the template from the People add-on (its file name and location is
“admin/people/templates/people_type_event_metabox_details.template.php”)

The change could replace where it loops through all the people CPTs with something like a search as you type and load them up with AJAX type thing or whatever else you might imagine or code up.

If you open up the people add-on in your IDE and find the people_type_metabox() method, you’ll see that at the very end it loads in the above template with EEH_Template::display_template. It turns out that the EE core display_template() method has a filter that lets you change the template path. This way you can load in your very own custom template from the location you specify with a filter function like this:

add_filter( 'FHEE__EEH_Template__display_template__template_path', 'my_custom_people_template' );

function my_custom_people_template ( $template_path ){
    if ( $template_path == EEA_PEOPLE_ADDON_PATH . 'admin/people/templates/people_type_event_metabox_details.template.php' ) {
        $template_path = 'path_to_your_custom_template.php';
    }
    return $template_path;
}
Viewing 1 reply thread

The support post ‘Thousands of People’ 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