Welcome to Geeklog, Anonymous Thursday, April 24 2025 @ 06:20 am EDT

Geeklog Forums

Events


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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Anonymous

Anonymous
how wouid i go about doing this? Tim
 Quote

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";
 Quote

All times are EDT. The time is now 06:20 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content