Talk:Calendar

From Organic Design wiki
Revision as of 07:28, 28 May 2008 by Nad (talk | contribs) (Talk:Organic Design Calendar moved to Talk:Calendar over redirect: simpler)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

I've just installed the new version of the calendar and I have a problem... All the links (dates) are external links: http://img260.imageshack.us/img260/2333/sanstitrets6.png And I still have the problem of the language... I don't have access to the configuration server. YeTi 20:39, 3 May 2007 (NZST)

I'm experiencing this same issue. Anybody find a resolution? Jaofos 05:06, 30 May 2007 (NZST)
Did you add the CSS rule #bodyContent table.month a { background:none; padding:0 }? that makes the links plain --Nad 08:47, 30 May 2007 (NZST)
Yes, I figured out afterwards to add the styles for the calendar and everything works great. I have, however, run into another issue where after you add entries for a calendar day, the link will not change to indicate an existing entry for that day until after you edit and save the page with the {{#calendar}} tag. Jaofos 02:59, 12 June 2007 (NZST)
I've tried adding a line into the code to disable the caching for calendar tables, but your problem doesn't happen on our wiki's, so I can't test it, give it a go now and see if it works any better --Nad 10:24, 12 June 2007 (NZST)
Seems to be working now, thanks! --Jaofos 02:37, 13 June 2007 (NZST)

Hi, a few questions:

  • How can I put the calendar in another language, for example french (january = janvier, etc...)?
I changed it slightly to work with locales, so download again from MW:Extension:Simple Calendar, and then set the PHP locale in LocalSettings.php with the following (the locale's must be configured on the server properly),
<php>setlocale(LC_ALL,'fr_FR','fr','FR','french','fra','france','French','fr_FR.ISO8859-1');</php>
if that doesn't work, use locale -a from your server's shell to see what local's are available.
  • In which file do I have to put the CSS code, knowing that I use the Monobook skin? --YeTi 19:58, 1 May 2007 (NZST)
You can add it to your MediaWiki:Monobook.css file, see our MediaWiki:Wikiskin.css for example. --Nad 21:08, 1 May 2007 (NZST)



One addition for the future could be to add another variable which specifies the month (like in unix bash), <bash> $ cal [-jy] [[month] year] $ cal 1 2006

   January 2006
S  M Tu  W Th  F  S
1  2  3  4  5  6  7
8  9 10 11 12 13 14

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 </bash> This would allow monthly calendars to be embedded into articles. --Sven 12:36, 25 April 2007 (NZST)

You mean like this?

{{#calendar:|2006|1}}

You the man Evander --Sven 13:31, 25 April 2007 (NZST)

Todo: have a link to export to ical format.

  • Todo: having a link to the changes on that day would be very cool and not too difficult.
    • Current Special:Recentchanges doesn't support rendering a date-range :-(
    • So, this needs to wait for Changes (see [[Talk:Special:Recentchanges]])

Maybe the calendar could be called Calendar 2006, as it will need to rollover by year.

Sven 15:49, 10 Mar 2006 (NZDT)
Yeah I couldn't be bothered dealing with the year at the time, but I should of because all the indiviual day articles are based on that name. But it doesn't matter, I'll fix it soon and it can just default to 2006 if no year supplied. Nad 20:37, 10 Mar 2006 (NZDT)

A better approach would be to create a time planner table using a php script identical to the way calendar.php works and embed that into any day so linkouts to any articles can be made such as: 01 June 2006/10am or for a particular user Sven/01 June 2006/10am. The linkouts are not terribly important here though...--Sven 11:23, 1 Jun 2006 (NZST)


Had to move this from main content since the day articles get put in the News. --Nad 18:04, 2 Jun 2006 (NZST)

Time Time
6:00am 3:00pm
7:00am 4:00pm
8:00am 5:00pm
9:00am 6:00pm
10:00am 7:00pm
11:00am 8:00pm
12:00pm 9:00pm
1:00pm 10:00pm
2:00pm 11:00pm

I have the same problem as Jaofos describes, after posting a item on a date the calendar will not update the link to show an item is added to that date. It will only update after I save the page with the calendar on it.

How can I resolve this problem?

I thought that was fixed, if the latest version still has that problem yo may have to disable the parser-cache... but it's working on other wiki's without having to do that, so I don't know...? --Nad 23:07, 28 June 2007 (NZST)
Seems to work now, so it is fixed. Wouldnt know what coused it. Thx anyways