Display Grouped Events more sensibly when grouped by event
This modification is in the archives.
Out of the box vBulletin displays events that are Grouped by Event by their eventid. Seems kind of dumb as they should be grouped by the starting date or some more logical criteria. This simple change does just that. BTW - I did a search and didn't see this posted so if I missed it mea culpa.
NOTE: This change impacts only the FORUMHOME display. If you are running the Upcoming Events modification for vBa CMPS you can make these same change to the minicalendar.php module. In index.php find Code:
// ### TODAY'S EVENTS ################################################# if ($vboptions['showevents']) Code:
// ### TODAY'S EVENTS ################################################# function compare_dates($a, $b) { // only used when sorting events grouped by event id if ($a[0] > $b[0]) return 1; if ($a[0] < $b[0]) return -1; return 0; } if ($vboptions['showevents']) Code:
ksort($events, SORT_NUMERIC); Code:
if ($vboptions['showeventtype']) ksort($events, SORT_NUMERIC); else uasort($events, 'compare_dates'); Download No files for download. |