Events listing

On the homepage and the events page I would like to have the events shown as per firstcoming event on top, followed by the other events (last event on the bottom).

 

How to do this ?

Quote · 16 Jun 2008

Open that file and edit the SQL query to ORDER BY `Date` DESC

Use as per your database. Hope this will help.

----
Quote · 17 Jun 2008

Same problem here, Want event sorted on date.

Which query should I change and how exactly do I do this?

Quote · 20 Jun 2008

By default it is programmed to list the events in the order of starting date.(decending)

----
Quote · 21 Jun 2008

I want to sort them ascending. How would I do that?

Quote · 25 Aug 2008

I wanted to avoid the past events to be shown in the home page and events page, also wanted the nearest event to be shown first than the farthest event as shown in (homepage : www.mallusworld.com ; eventpage : http://mallusworld.com/events/)

This is how i could do it: please note i am using Version 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

Quote · 26 Aug 2008
Thank you very much, that I wanted.
Is that on the homepage of the website also possible??
Quote · 1 Sep 2008
 
 
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.