Support

Home Forums Event Espresso Premium Setting defaults to retrieve 100 rows from database and display them

Setting defaults to retrieve 100 rows from database and display them

Posted: February 1, 2014 at 10:29 am

Viewing 3 reply threads


Nick Putman

February 1, 2014 at 10:29 am

I think this has been asked before and I’m wondering if there has been any progress. I would like to be able to retrieve 100 rows from the database and display 100 attendees by default on the Admin attendee view.

Ideally I would like the default to be more than 100, but I don’t want to be greedy!

Is there a way of achieving this?

Thanks,

Nick


Tony

  • Support Staff

February 3, 2014 at 5:05 am

Hi Nick,

Which Admin attendee view would you like the change?

Event Espresso -> Event Overview. ‘All Attendees’ ?


Nick Putman

February 9, 2014 at 1:21 am

Yes!

Event Espresso -> Event Overview. ‘All Attendees’

Nick


Tony

  • Support Staff

February 10, 2014 at 2:11 am

Currently you would need to modify Event Espresso Core which we do not recommend and can not support unfortunately.

If you open event-espresso/includes/admin-files/admin_reports_filters.php then go to line 269

You should see this:

$rows = array(5 => 5, 50 => 50, 100 => 100, 250 => 250, 500 => 500, 100000 => 'all' );

You can change the order, but personally I would just remove the lower amounts, so to default to 100, removes the 5 & 50 like so:

$rows = array(100 => 100, 250 => 250, 500 => 500, 100000 => 'all' );

You could even basically remove the feature by setting the default to all. Like so:

$rows = array(100000 => 'all' );

The reason this was introduced was to stop timeouts when you have larger numbers of events/attendees so if you noticed timeouts on the events/attendee pages you may need to reduce the default.

We have had this feature request previously, so I will add you vote to that to have it included within core. (Possibly via a filter)

Viewing 3 reply threads

The support post ‘Setting defaults to retrieve 100 rows from database and display them’ 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