How to change EVENTS listings

On our EVENTS section, when we add an events it lists in decending order (end of the year at top).  It should be assending order (beginning of year at top).   Anyone know how to change these settings?

Quote · 19 Jun 2009

if you get an answer..im listening..Been wondering about that myself

Quote · 19 Jun 2009

Events ASCending code changes

Dolphin 6.1.3

1.  Open /inc/classes/BxDolEvents.php file

2.  Goto Line 463 and find the line

$sStatusActiveSQL = "`SDatingEvents`.`Status` = 'Active';

Change it to

$sStatusActiveSQL = "`SDatingEvents`.`Status` = 'Active' AND `SDatingEvents`.`EventStart` > NOW()";

immediately on the next line you could see

$sOrderBySQL = "ORDER BY `SDatingEvents`.`EventStart` DESC";

Change it to

$sOrderBySQL = "ORDER BY `SDatingEvents`.`EventStart` ASC";

3.  Goto line 846 and find the line

AND `SDatingEvents`.`Status` = 'Active'

Change it to

AND `SDatingEvents`.`Status` = 'Active'  AND `SDatingEvents`.`EventStart` > NOW() ORDER BY `EventStart` ASC

There are none so blind as those that will not see.
Quote · 20 Jun 2009

Stuart038, I owe you a beer!  Thank You so much.  Worked perfect!

Quote · 20 Jun 2009

Now that I got my Events page in the proper order, does anyone know how to change to ascending order of events on the "Member" pages.  The member pages still are in the wrong order.

Quote · 20 Jun 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.