Version 2.3.2 of All in One Event Calendar has been recoded. The new code to use to rearrange the date order filtering is...
Open the file /app/modal/search.php (same as before)
Find
Code: Select all
if ( false !== $last_day ) {
if ( 0 == $last_day ) {
$last_day = $time;
}
$filter_date_clause = ' i.end ';
if ( $page_offset < 0 ) {
$filter_date_clause .= '<';
$order_direction = 'DESC';
} else {
$filter_date_clause .= '>';
$order_direction = 'ASC';
}
$filter_date_clause .= ' %d ';
$args[0] = $last_day;
$first_record = 0;
}
Replace with
Code: Select all
if ( false !== $last_day ) {
if ( 0 == $last_day ) {
$last_day = $time;
}
$filter_date_clause = ' i.end ';
if ( $page_offset < 0 ) {
$filter_date_clause .= '<';
$order_direction = 'ASC';
} else {
$filter_date_clause .= '>';
$order_direction = 'DESC';
}
$filter_date_clause .= ' %d ';
$args[0] = $last_day;
$first_record = 0;
}
The difference between those two code blocks is that 'ASC' & 'DESC' have been switched around.
Thanks for the original tip, Neo. Ordinarily I'd write tips like this on my own blog but I've found the original tip here so useful I thought I'd show gratitude and post here in this forum instead. Keeping it all in one place, I guess.