| | | |  |  | |  |
14.04.2004, 06:31
|
#1 (permalink)
| | Baby Mamber
Join Date: Apr 2004
Posts: 18
| Latest Events module - are there Parameters that allow you to customize its output Maybe this is in the wrong forum, but I'm trying to use the Events component with the Latest Events module ... I am only able to show events that are very, very soon .. I'd like to be able to show the next upcoming event(s) regardless of how far in the future they are scheduled ...
I noticed that there is a parameters field in the module configuration ... Is this where I can modify this setting??? Thanks for any feedback in advance. |
| |
14.04.2004, 12:53
|
#2 (permalink)
| | Baby Mamber
Join Date: Apr 2004
Posts: 21
| Re: Parameters on Latest Events Hi,
With the module comes a readme file (wordpad, txt), just look for it. It describes in full how to set many parameters, also the length of days the module should look in for upcoming events. I've downloaded the latest version on mosforge and that definitly contains that readme.
Good luck, Robin |
| |
14.04.2004, 17:22
|
#3 (permalink)
| | Baby Mamber
Join Date: Apr 2004
Posts: 18
| Re: Parameters on Latest Events Thanks - apparently I'm lazy ....
Thanks! |
| |
31.05.2004, 06:59
|
#4 (permalink)
| | Baby Mamber
Join Date: May 2004 Location: Boise, Idaho, USA
Posts: 20
| Re: Latest Events module - are there Parameters that allow you to customize its output I must not be seeing something basic, but I cannot seem to get the days= to go higher than 20 days in the future. My latest events parameters -
displayLinks=1
mode=2
days=30
If I'm just misguided please be gentle to this baby mamber.
Thanks! |
| |
02.06.2004, 01:49
|
#5 (permalink)
| | Baby Mamber
Join Date: May 2004 Location: Boise, Idaho, USA
Posts: 20
| Re: Latest Events module - are there Parameters that allow you to customize its output figured it out myself. But in case there is anyone out there  stuck as I was I wanted you to know. Had to add maxEvents line and mode to 4.  |
| |
22.07.2004, 17:53
|
#6 (permalink)
| | Baby Mamber
Join Date: May 2004 Location: Boise, Idaho, USA
Posts: 20
| Re: Latest Events module - are there Parameters that allow you to customize its output I still have problem with the events past the end of the month. For some reason the next months events will not display until the month starts. For example I have several August events, but only July events will display until Aug1. I need to always have the next 15-20 events posted always, irrespective of the month. Anyone understand and could possibly shed some light?
Thanks,Lee |
| |
22.07.2004, 18:33
|
#7 (permalink)
| | Mamber
Join Date: Apr 2004 Location: Texas, USA
Posts: 62
| Re: Latest Events module - are there Parameters that allow you to customize its output I just looked at the code for the latest events module, and mode=2 doesn't do anything. There is a switch ($mode), where Case 2: isn't followed by any code. The default for this switch statement is this: Code: // beginning of this month
$beginDate = date('Y-m-d', mktime(0,0,0,date('m'),1, date('Y')))." 00:00:00";
// end of this month
$endDate = date('Y-m-d', mktime(0,0,0,date('m')+1,0, date('Y')))." 23:59:59";
break; $endDate is set to the last day of the current month with this code, so when you set your mode to 2, it stops at the last day of the current month. To fix it, add the following code after "Case 2:": Code: // beginning of this month
$beginDate = date('Y-m-d', mktime(0,0,0,date('m'),1, date('Y')))." 00:00:00";
// end of this month
$endDate = date('Y-m-d', mktime(0,0,0,date('m')+2,0, date('Y')))." 23:59:59";
break; I took the code from "default" and changed the line that sets $endDate. This will get events for the current month and the next month. I hope this helps! 
Last edited by ccdog; 22.07.2004 at 18:51.
Reason: I figured it out!
|
| |
23.07.2004, 08:13
|
#8 (permalink)
| | Baby Mamber
Join Date: May 2004 Location: Boise, Idaho, USA
Posts: 20
| Re: Latest Events module - are there Parameters that allow you to customize its output Dude you ROCK  My site is happier and so am I. www.boisevenue.com
Thanks for the help.
Lee |
| |
11.09.2004, 23:40
|
#9 (permalink)
| | Baby Mamber
Join Date: Jul 2004
Posts: 1
| Re: Latest Events module - are there Parameters that allow you to customize its output OK, I get it. But what if, like was asked above, someone wanted to show the next several events, regardless of how far in the future they are?
For example, what if the next few events are spread out over the next year? |
| | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT +2. The time now is 09:24. | | | |