Issue:Day shifted by one with respect to day and border of tables missing

From FollowTheScore
Jump to: navigation, search
Description: DPL Calendar extension day shifted and table not drawn correctly.
Extension / Version: DPL   /   1.6.4
Type / Status: Bug   /   resolved

Problem

Hi,

The wiki that I'm working has the following properties: Wiki Version 1.10.0 PHP 5.2.1 MySQL 4.1.14

I'm not an expert on wiki but after reading and going for it I managed to install and get the DPL calendar extension to work. ( I did not install symantic forms). I have encountered two problems. Not sure if they are bugs or setting problems.

The first problem is that the date is shifted with respect to the day of the week.

So January 2008 starts (1st) on the wednesday (so the wednesday column, top row has the number 01) rather than the tuesday. This propagates through out the year. (December 2007 as well).


The second problem is that the borders of the table listing all the events for the given month are missing. Everything is there except for the shading for the titles and the borders. The arrows are there and can be clicked to sort the columns in different orders.

I have a question: Is it possible to have events which are a range of dates. For example a workshop that starts on the monday and finishes on the friday to have its down wiki page and to appear at each day on the calendar?

Thanks, Aldo

Reply

  1. CalendarSingle contains a line where you seea comment regarding the "offset by one" problem.
  2. There will be an improved version in the next weeks which can handle day ranges.
  3. Leave alink to your wiki here so that we can see the table border problem.

Gero 16:21, 6 January 2008 (CET)

Extra Info

Hi,

  1. So changed the value as suggested in the comment of template CalendarSingle to 15 and that solved the shift in the problem. Just out of curiosity why do some wikis behave differently to others?
  2. The Wiki is inside an intranet so I can't put a link but here is an image of it

No borders table.png and thanks for the info.

Reply 2

As for the missing borders you should check your css style (Mediawiki:Common.css) and look for wikitable and sortable.

The reason for the date shift is still obscure ...

Done

Thanks.. sure enough there was no wikitable entry on the Common.css.. I thought that sort of things would come in bundle with wikimedia. Anyway thanks for your help. Cheers, Aldo Gero 19:30, 7 January 2008 (CET)

Alternate Solution

I just changed the following line:

  |listseparators={¦ class="sortable" ¶!Date / Event name ¶!Event summary ¶!Location ¶!Categories,¶¦-¶¦<h5>[[%PAGE%|%TITLE%]]</h5>,¶¦ %CATLIST%,¶¦}

To this:

  |listseparators={¦ class="sortable" border=1¶!Date / Event name ¶!Event summary ¶!Location ¶!Categories,¶¦-¶¦<h5>[[%PAGE%|%TITLE%]]</h5>,¶¦ %CATLIST%,¶¦}

in order to add a border. XApple 01:02, 20 January 2008 (CET)