Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Need a "max year" option  (Read 384 times)
0 Members and 1 Guest are viewing this topic.
tholt
New Member
*

Karma: 0
Offline Offline

Posts: 0

Engineer


WWW
« on: September 23, 2004, 02:04:00 PM »

Hello,

I would like the calendar to NOT display dates in 2006 and beyond. Is there a variable I could set for this? I would like to manage how far in the future the calendar displays.

Thanks,
Tim

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: September 23, 2004, 03:46:00 PM »

** Is there a variable I could set for this? **

No.

** I would like to manage how far in the future the calendar displays. **

You would have to devise some sort of conditional to prevent the script from retrieving events with such dates.

Dan O.

------------------

Logged
tholt
New Member
*

Karma: 0
Offline Offline

Posts: 0

Engineer


WWW
« Reply #2 on: September 23, 2004, 08:42:00 PM »

Thanks, but it would be nice to know
where to start. I changed some things
in ../lib/Dates.inc but no success.
Tim

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: September 24, 2004, 12:15:00 AM »

** it would be nice to know where to start. **

The events in the calendar grids are populated with either the sub getEvents routine in the calendar.pl file or the sub getEvents routine in the Event.inc file in the /lib/ directory (although the latter may only be used for the administration functions rather then the calendar display itself).

Dan O.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: September 24, 2004, 12:21:00 AM »

BTW. Rather then modifying the subroutine in the calendar.pl file itself, you might want to make a plug-in using the display_before_getEvents 'hook' so when upgrades come along, you don't need to redo the modifications each time.

 If you're going to be using any other plug-ins, be sure to check that yours won't interfere with their operation.

JFYI

Dan O.

------------------

Logged
tholt
New Member
*

Karma: 0
Offline Offline

Posts: 0

Engineer


WWW
« Reply #5 on: September 24, 2004, 09:41:00 AM »

Thanks, I have my work cut out for me now.
Tim

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: