PDA

View Full Version : Displyaing many months at one time


wjgollatz
10-19-2006, 07:01 PM
Is there a way to display three blocks of months? For intance, the current month, then the next two months, using the same data of course, so users can see what is coming up in the future?

ve9gra
10-19-2006, 07:07 PM
Absolutely. There is actually a few ways you can do that. There's with the regular calendar (with the multi-calendar generator). This will create as many little calendars as you want starting from the current month. There's also the listing module with which you can add $listMonths=3; so that it displays three months of data. If you don't want old events to show up, add $noOld=1;.

All those options are described in the Online Documentation (http://docs.easyphpcalendar.com/).

rstevens
10-20-2006, 12:32 PM
Thanks for the note, but even after reading the instructions, I am still unclear which file I add $noOld=1; so that the previous month does not show up. Can you tell me which file it is? Thanks.

Roger

Brian
10-20-2006, 04:13 PM
The noOld option is used just before the List Mode code to turn off the displaying of past events.

rstevens
10-20-2006, 05:00 PM
Sorry to be so bothersome, but I can find only one reference to list mode in all of the files at line 36 in demo.php. I tried adding noOld there, but to no avail. Can you tell me what file I need to alter? Thanks.

Roger

Brian
10-20-2006, 05:01 PM
Are you using the List Mode?

Maybe it would help if you can post a link to your page and a description of exactly what you want to do.

rstevens
10-21-2006, 09:03 AM
Thanks again for your response. Here is the link to the calendar...

http://growinginagriculture.com/calendar/

There are three calendars at the top, one of which is last month. I want to start with the current month, as the last month is of no importance to me.

Roger

wjgollatz
10-21-2006, 02:14 PM
i am following this thread and - the link your provided - someone needs a username and password - you will need to private message that information to the person.

ve9gra
10-21-2006, 04:24 PM
Seems like you've put a redirect for /calendar to go to /calendar/events/ which is a secure area. http://growinginagriculture.com/calendar/demo.php can do for now.

rstevens
10-23-2006, 10:57 AM
Thanks for the help, but I don't understand how to get the secure area changed so that only one month appears at the top.

Here is the user id and temporary password to get in...

admin 232c6c3

Any help is appreciated.

Brian
10-23-2006, 11:20 AM
You can't change the default layout of the Event Manager. Just advance one month when you first log in.

rstevens
10-23-2006, 11:37 AM
Thanks for the note. My client has asked me to change the layout so that they don't see last month's events, and that seems to be a reasonable request since I am forcing them to go another step to see what they wanted to see in the first place. After all, if they can make the program go to the next month, the program should be able to do that as well.

May I request that you allow modifications to the Event Manager in the future? In the meantime, I may be able to make a hack that will, in effect, redirect the first Event Manager page to the next month automatically. Any suggestions? Thanks.

Brian
10-23-2006, 11:40 AM
You could edit the customHeader file and check for the $mo variable. If it's not set, increment set it to the next month number. (I haven't tested this).

rstevens
10-23-2006, 12:21 PM
Thanks! That did the trick.