Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 21

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Module 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 14.04.2004, 06:31   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 18
jabby is on a distinguished road
Default 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.
jabby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 14.04.2004, 12:53   #2 (permalink)
Baby Mamber
 
robink69's Avatar
 
Join Date: Apr 2004
Posts: 21
robink69 is on a distinguished road
Default 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
robink69 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 14.04.2004, 17:22   #3 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 18
jabby is on a distinguished road
Default Re: Parameters on Latest Events

Thanks - apparently I'm lazy ....

Thanks!
jabby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31.05.2004, 06:59   #4 (permalink)
Baby Mamber
 
Join Date: May 2004
Location: Boise, Idaho, USA
Posts: 20
housemanager is on a distinguished road
Default 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!
housemanager is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02.06.2004, 01:49   #5 (permalink)
Baby Mamber
 
Join Date: May 2004
Location: Boise, Idaho, USA
Posts: 20
housemanager is on a distinguished road
Talking 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.
housemanager is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.07.2004, 17:53   #6 (permalink)
Baby Mamber
 
Join Date: May 2004
Location: Boise, Idaho, USA
Posts: 20
housemanager is on a distinguished road
Default 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
housemanager is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.07.2004, 18:33   #7 (permalink)
Mamber
 
ccdog's Avatar
 
Join Date: Apr 2004
Location: Texas, USA
Posts: 62
ccdog is on a distinguished road
Default 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!
ccdog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23.07.2004, 08:13   #8 (permalink)
Baby Mamber
 
Join Date: May 2004
Location: Boise, Idaho, USA
Posts: 20
housemanager is on a distinguished road
Default 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
housemanager is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11.09.2004, 23:40   #9 (permalink)
Baby Mamber
 
Join Date: Jul 2004
Posts: 1
PeregrineNM is on a distinguished road
Default 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?
PeregrineNM is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Events Component -> Unable to edit/selected created Category reactive Component 'How Do I' Questions 25 21.02.2005 13:38
[Events] Latest Events Radagast Module 4 18.04.2004 20:27
add new event and submit news - immposible and bug in Events fenix Component Development 4 16.04.2004 13:22
generall Question on how to use parameters... Cane Mambo 4.5 General Talk 14 16.04.2004 00:55
updaet events from 5a to 5e doggystyle Component Development 0 09.04.2004 18:26


All times are GMT +2. The time now is 09:24.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.