Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 12:37 am EDT
Geeklog Forums
Upcoming Events block - change to number of events, rather than date range?
Status: offline
CavemanJoe
Forum User
Chatty
Registered: 09/20/06
Posts: 41
Location:Cheshire, England
Hey. I've been trying to wrestle Geeklog into this theme 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?
Silly browser RPG: improbableisland.com!
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?
Silly browser RPG: improbableisland.com!
8
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
In plugins/calendar/functions.inc in function phpblock_calendar there are two partial SQL statements: Changing those to should do the trick.
bye, Dirk
Text Formatted Code
'ORDER BY datestart,timestart';Text Formatted Code
'ORDER BY datestart,timestart LIMIT 4';bye, Dirk
5
4
Quote
Status: offline
CavemanJoe
Forum User
Chatty
Registered: 09/20/06
Posts: 41
Location:Cheshire, England
Worked perfectly. Thanks!
Silly browser RPG: improbableisland.com!
![Smile Smile](https://www.geeklog.net/forum/image_set/pixel.gif)
Silly browser RPG: improbableisland.com!
8
5
Quote
All times are EDT. The time is now 12:37 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