Forum Subject: Upcoming Events block - change to number of events, rather than date range?
Posted on: 11/03/07 07:33am By: CavemanJoe
Hey. I've been trying to wrestle Geeklog into this theme[*1] that a designer provided, and it's gone well - apart from extra events displaying below the bottom of the Events block.
I know that the block can be configured to display only results from the next x days - but is there a way to make it only display y results from the next x days? If we could limit it to four events, that'd be great.
Any ideas?
Re: Upcoming Events block - change to number of events, rather than date range?
Posted on: 11/04/07 05:20am By: Dirk
In plugins/calendar/functions.inc in function phpblock_calendar there are two partial SQL statements:
Text Formatted Code
'ORDER BY datestart,timestart';
Changing those to
Text Formatted Code
'ORDER BY datestart,timestart LIMIT 4';
should do the trick.
bye, Dirk
Re: Upcoming Events block - change to number of events, rather than date range?