Anonymous

Anonymous
Is there any way to change the events block so it displays all upcoming events. when we post furutre events it doesnt seem to show them up! is there any way of changing this?

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
The Upcoming Events block only show the events for the next 14 days. If you want to change that, you would have to hack the function COM_printUpcomingEvents() in lib-common.php. bye, Dirk

Anonymous

Anonymous
how wouid i go about doing this? Tim

Status: offline

jcz

Forum User
Chatty
Registered: 01/29/02
Posts: 39
Look for these lines. In this case I've made the site events out to 50 days and personal events to 28. $eventSql = "SELECT eid, title, url, datestart, dateend FROM WHERE dateend >= NOW() AND " . "(TO_DAYS(datestart) - TO_DAYS(NOW()) < 50) ORDER BY datestart, dateend"; $personaleventsql = "SELECT eid, title, url, datestart, dateend FROM WHERE uid = AND dateen$ . "(TO_DAYS(datestart) - TO_DAYS(NOW()) < 28) ORDER BY datestart, dateend";