Talk:Calendar

From FollowTheScore
Revision as of 13:25, 6 February 2008 by Roc michael (talk | contribs)
Jump to: navigation, search

Template talk:CalendarSingle

hey

I've made a preload version of the calendar which directs to Template:Monthly_calendar [1], and if the month calendar doesnt exist yet, creates it. Now to find a few to pass the month-number... Maybe is possible by extracting it from the {{PAGENAME}}.

{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}
|cur_month={{#time:F|{{{year}}}-{{{month}}}-03}}
|prev_month={{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|<<]]|[{{fullurl:{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|action=edit&preload=Template:Monthly_calendar}} <<]}}
|next_month={{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|>>]]|
[{{fullurl:{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|action=edit&preload=Template:Monthly_calendar}} >>]}}

-- Eiland 01:19, 26 August 2007 (CEST)

Date bug

If you look at the calendar, you will see that this month (December 2007) starts on a Friday. This is not correct, it should start on a saturday. You can correct this by changing

{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}

to

{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-02 +1 second}}

. But I really don't think this is the best way to do it. I have it changed this way on my wiki, but I'd really like to see a proper solution.

--El sjaako 03:25, 18 December 2007 (CET)

Reply

For some strange reason the #time function seems to deliver different values under different versions of MW / PHP. Indeed it may be necessdary to use day 1/8/15/22 here or 2/9/16/23. So if months start at the wrong day just change the number here. Maybe sometime there will be a better solution ... Gero 08:38, 22 December 2007 (CET)

Re reply

Hi Gero. Yes. you are right. The early code had run right results in my wiki until I imported the new code you saved the version. Now I've changed it to early right version for me.

My environment
  • Win XP
  • MediaWiki: 1.11.0
  • The AppServ Open Project - 2.5.7 for Windows
    • PHP: 5.1.6 (apache2handler)
    • MySQL: 5.0.24a-community-nt-log

Template talk:Calendar month

Instead of a link to the header of the page, is it possible that the calendar supplies a link to the actual page whihc is on a specific date, so for example directly to 2007-08-22 The Birthday Party? -- Eiland 21:25, 25 August 2007 (CEST)

You could change the 'Calendar link'. Leave away the # sign before the %PAGE% ... Gero 15:02, 26 August 2007 (CEST)
Ah! that was easy! -- Eiland 15:32, 26 August 2007 (CEST)
On second thought, yes it works, but what will happen when there will be two events for one day? I'll have to think of something clever. Maybe some kind of interim pages which noted that there were two entries with that date, and offers choice. But this seems quite something to implement. Or maybe a date which collects all pages starting with 2007-08-31; that could be a DPL'd page, no? -- 11:49, 31 August 2007 (CEST)


I really like DPL Calendar. It works beautifully with the skin Monobook. However, my wiki's default skin is gumax 3.0 [2]. Sadly, when I try to view my calendar in that skin the page that loads is completely blank. Any ideas as to what might be going on and how I might fix it? Will gladly provide full information regarding setup if that would be useful. --Rowenrye 21:02, 18 January 2008 (CET)

Resolved It turns out that although gumax 3.0 seemed to be working perfectly well, I needed to update to gumax 3.3. DPL calendar now works with that skin as well. The problem was with the skin not with DPL Calendar. Forgot to sign my first time through, so both the problem and the resolution have the same timestamp. --Rowenrye 21:02, 18 January 2008 (CET)

Strange Behavior - date of Jan 1, 2008 incorrect

I have calendar up and running. There is just one very strange problem: Jan 1, 2008 appears as a Wednesday, rather than as a Tuesday when I go to Current Events in my wiki. I don't know how to correct this, or if I might have done something to create the problem in the first place. Please advise.

--Rowenrye 23:10, 24 January 2008 (CET)

The reason for this is still unclear. It varies between installations, maybe depending on the php version used. You must change a value in Template:CalendarSingle from 16 to 15. There is a comment at the point where you have to do this.

Gero 08:48, 25 January 2008 (CET)

Comment located. Change performed. Problem fixed. Thanks for the prompt assistance and thanks for making such a good calendar tool for use with mediawiki.

--Rowenrye 08:59, 25 January 2008 (CET)

How to upgrade from 'old' to 'latest' Calendar version ?

Hallo gero - remember me ?? - Now don't get a heart attack ...

I am still using your 'old' Calendar version ... I see that your latest version has some neat changes ... What is required for me to upgrade to your latest Calender version?

I would rather ask before downloading all the files and then end up with a problem ..

When i upgrade, will I lose all my calendar entries ???

--Zs6ro 23:45, 5 February 2008 (CET)