PDA

View Full Version : Calendar Problems


me!
10-08-2006, 02:11 PM
Hello

I am running pp 1.5.
Site auntyvonne.com

Problem:

a) I was running Calendar Archive - Author: punk@pixelpunk.se | www.pixelpunk.se/software/
Version 1.0 - Archived 2004-11-22

calendar tab from my main page
Things were mostly ok (could not see the header, but have not looked into how to fix it.) Sept worked fine, then october came. October started on the wrong day, then it skipped a few days column wise and went to the next row.

I could not see anything in the code, but I am new to php coding. I saw in the forum to update caldendar, but I do not think it is the same. I did update the main calendar for pp.

b) This morning I figuired I would try the other calendar
from my main page calendar test
archivecalendar.php
This ADDON is a modification of the ADDON "calendar_archive.php" by Connie Müller-Gödecke
This generates 404 error. I am not sure what I did wrong.


My goal would be to get a calendar page that looks like a calendar and if possible one that I can change the style. I am in the process of chaning my style.

I have searched the forum and did not see the answer (or did not realize it was the answer).

Any help would be greatly appreicated. Thanks in advance for any help!

Best regards,
Y

wojtek
10-08-2006, 08:25 PM
I have similar problem. I'm showing my calendar as horizontal bar above the image. Everything was ok till October. Now when you enter the site you can see the month till you click previous or next image. When you get to another month everything comes back to normal. thanks in advance for help.
www.wojtekgil.net

Connie
10-08-2006, 09:09 PM
I see it, I have the same problem
that is very strange, it worked last year and all the time
do not know what is the reason and it is very late here in Germany now...

this calendar is one of the oldest parts of the script... we must look into it

GeoS
10-08-2006, 09:44 PM
@Wojtek: In your case there is problem that this addon needs own paramters thanks to which it can (it have data) for showing calendar.
PS Co tam Panie w Ameryce? :P

@me!: In your case there is problem with addon which isnt part of main package of Pixelpost.

Both this addons should be fixed by its developers (it would be the best and the fastest way).

Right now Im working on other feature so please ask Connie (or any other addon coder) for help.

me!
10-08-2006, 10:37 PM
Thanks for your help!

Y

wojtek
10-09-2006, 12:59 PM
I found there the corrected calendar code. Thanks.

PS. A w Ameryce jakos leci, dziekuje :-)

Connie
10-09-2006, 03:00 PM
where did you find it?

me!
10-11-2006, 01:15 AM
Please share how you solved this problem?

Thanks,
Y

me!
10-15-2006, 05:19 PM
Thanks W for sending me your find.

W sent me the calendar only not archivecalendar section, so I am still having issues.

I have now listed the calendar links from this page
http://auntyvonne.com/index.php?x=test.

Calendar Link is the orginal calendar archive. This one has the day of the month wrong and skips days during the week.

Calendar Test Link is the second update calendar archive which has the css sheet. I am getting a 404 error and do not know why. I tried to validate it but that did not help me find the error. If anyone has any idea, please let me know.

Thanks any and all help,
Yvonne

me!
10-15-2006, 06:27 PM
In looking at other forum pages I found this link

http://forum.pixelpost.org/showthread.php?t=3082
problem is with months that start on sunday:

Which Eon gave the following code:

$first_day_month = date("w", mktime(0,0,0,$curr_month,1,$curr_year));
if ($first_day_month=="0"){$first_day_month="7";}

I placed into the add on and it will now start the month Sunday but the count for days of the week is off

later in that same thread
connie say:
"that corrects the date, thanks for the tip!

But the formatting of the table is still wrong, the "</tr><tr>" are not correct
in the archivecalendar-Addon"

I am not sure what the </tr><tr> items she is refering. I tried a few things, but was not successful. If I find it I will posted. If anyone else knows that what area of the code I should be check that would be most appreciated.

Best regards,
Y

me!
10-19-2006, 04:10 AM
Hi

In the add on file I found the following lines

$day_count=1;
while($day_count <= $total_days[$curr_month]) {

if($row_count % 7 == 0) { $punk .= "</tr><tr>"; }

I played with it a bit but did not see any changes.

Do you think I am looking in the correct area?

Thanks for any help,
y

me!
11-04-2006, 05:40 PM
Here is how I resolved things, just incase someone has a similar question

a) the older calendar orginal
Was able to fix start date with code found and listed in previous post
could not solve the tr td issue


b) new calendar archive (connie's modification)
fixed the 404 error I was linking using _template do not need the _template
in order to get css working moved the css file that connie created to primary css file also change comment symbol to match the comments in orginal css file



Good luck.
Y