this modification from me works like it is,
the blog is, that first events are shown, doesn´t matter if the first events are past or future...

so you have two choices that only future first events are shown:

1. you delete past events

2.

..:: Modification for your HOME Page event block ::..

1. edit the file "templates/base/scripts/BxBaseIndex.php"

Find code (~1192 line)

$iTotalNum = db_value("SELECT COUNT(*) AS 'Cnt' FROM `SDatingEvents` WHERE `Status` = 'Active'");

and see more replace it with

$iTotalNum = db_value("SELECT COUNT(*) AS 'Cnt' FROM `SDatingEvents` WHERE `Status` = 'Active' AND `EventEnd` >= NOW()");



2. edit the file "inc/classes/BxDolEvents.php"

Find code (~2294 line) in function GenAnyBlockContent

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

and replace it with

AND `SDatingEvents`.`Status` = 'Active' AND `SDatingEvents`.`EventEnd` >= NOW()




..:: Modification for "All Events", "My Events" and "Search Events" ::..


1. edit the file "inc/classes/BxDolEvents.php"

find code (~462 line) in function PageSDatingShowEvents

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

and replace it with

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



---------------------------------------------------

If you don´t want to set all the time the end time from each event you can change everywhere the part

AND `SDatingEvents`.`EventEnd` >= NOW()

to

AND `SDatingEvents`.`EventStart` +24000 >= NOW()


now all events 1 day after eventstart are not shown anymore

you can set yourself the time

24000 = 24 hours

1000 = 1 Hour
 
 
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.
PET:0.041529893875122