Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: January 2004 doesn't show on PHP Calendar
powertowin
Junior Member

Posts: 4
Registered: 10/15/2003
Location: Canada
Member Is Offline
posted on 1/1/2004 at 05:24 PM Reply With Quote
January 2004 doesn't show on PHP Calendar


I cannot see my January 2004 Calendar. Is there a way to solve this?

I love PHP Calendar but it's becoming hard to manage the problems...

My Calendars Page is at:

http://www.carismachurch.com/index.php?section=home&subc=calendar&lang=eng
View User's Profile View All Posts By User U2U Member
eagledancing
Junior Member

Posts: 4
Registered: 11/18/2003
Member Is Offline
posted on 1/1/2004 at 05:56 PM Reply With Quote
Year 2004 for January


This has been a problem in previous releases and also in this one. In 1.4 the correction is applied to the control panel and the demo.

When you follow the instructions to include your calendar on a webpage, it is showing Dec 2003 and the next January 2003 then February 2004.

You can click on the "Next Year" button and get the January 2004 that displays the proper events.

Interestingly enough, the todays events do not have this problem. The event display works fine.

So, seems we need one more fix to the January 2004 calendar display issue.

Will appreciate hearing about the fix.

Thanks
View User's Profile View All Posts By User U2U Member
nazwiz
Member

Posts: 15
Registered: 11/24/2003
Member Is Offline
posted on 1/2/2004 at 12:32 AM Reply With Quote
Year Roll Over Problem


Your calendar shows January 2002. Mine was showing January 2003. It looks like another problem surfaced with the "get_date" function. I did the following change in the code in the show_h function from calendar.php, and it seems to work:


change from:
$y or $y = get_date('Y', mktime(0, 0, 0, $m, $day, date('Y')));
to:
$y or $y = date('Y', mktime(0, 0, 0, $m, $day, date('Y')));

I know what you mean about the problems. I have asked users to do testing, so this kind of thing is embarassing.
View User's Profile View All Posts By User U2U Member
eagledancing
Junior Member

Posts: 4
Registered: 11/18/2003
Member Is Offline
posted on 1/2/2004 at 02:00 PM Reply With Quote
The fix for change of year display


Thank you for the before and after. I was able to correct that one spot and it works beautifully!

LOL, well, we know that when we create things, there are going to be little bumps along the way that we have to polish out.

Now, one other situation. The year is fine however, the Date is off in the calendar preview...

The 1 of January now is on Wednesday instead of Thursday. ( I am using us eastern timezone... however, any of the time zones seem to be off...)

Thanks again...
View User's Profile View All Posts By User U2U Member
nazwiz
Member

Posts: 15
Registered: 11/24/2003
Member Is Offline
posted on 1/2/2004 at 07:39 PM Reply With Quote
Year Rollover


Thanks for letting us know that the fix worked for you. Eagledancing. There are two functions, one for the horizontal calendar and one for vertical. Since I only have a horizontal calendar, I changed that first. You should look at the function for the vertical calendar: show_v, and apply the same change.
View User's Profile View All Posts By User U2U Member
eagledancing
Junior Member

Posts: 4
Registered: 11/18/2003
Member Is Offline
posted on 1/3/2004 at 12:59 PM Reply With Quote
Year roll over and day off


Thanks for letting me know about also changing the vertical show.

In the demo calendars that are supplied with the code, the vertical display shows the days properly, however, the horizonal view is off one day. (the 3rd of January should be on a Saturday and it is on the Veritcal view however, on the Horizonal it is showing the 4th is on Sat.) ...

Of course, I changed the day of week display to compensate, however, you folks may wish to look at that..

Thanks again...
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free/Trial Script Download Free Download
Product Documentation Documentation
Documentation page
Change Log
Support Forum Support Forum
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004