Extension talk:Calendar (Kenyu73)

 Please report any problems or feature requests to my Google Issue List.  It's hard to manage issues, bugs and requests via discussion pages. Please use my Google bug tracker!

Problem or Request, please click here. 

= Comments Only Please =
 * Issue and bug reports posted here will probably be ignored and removed, sorry.

is there any possibility to subscribe to a calendar via thunderbird/lightning?

Does the calendar work with Mediawiki 1.16?
The report below seems to indicate this extension has been tested with the next release of Mediawiki? Is there a promise this extension will continue working or has it perhaps even been tested extensively to work OK? --Taleman 10:27, 24 May 2010 (UTC)
 * Tested and it works great. No problem with MediaWiki 1.16. --Marcin 18:16, 8 January 2011 (UTC)

Bug: maxdailyevents set lower than 2 doesn't work
To resolve change CalendarArticles.php starting at line 389 from: if(strlen($displayText) > 0){ $articleCount++; $article = new Article(Title::newFromText($page. $articleCount)); if($articleCount == $max_articles) $stop = true; } to: if(strlen($displayText) > 0){ if($articleCount == $max_articles){ $stop = true; }				else $articleCount++; $article = new Article(Title::newFromText($page. $articleCount));

}

Bug UTF-8
I don't have appropriate google account, sorry.

MediaWiki 1.16, Calendar 3.8.4


 * common.php (156)
 * “return utf8_encode(wfMsg($value));” → “return wfMsg($value);”


 * calendar.php (1185..1106)
 * replace /substr/mb_substr/

$messages['ru'] = array(		'default_title' => 'Общий',		'year' => 'год',		'month' => 'месяц',		'week' => 'неделя',		'ical_inst' => 'Укажите файл в формате ical (vcalendar).',		'add_event' => 'Добавить событие',		'add_event_tip' => 'добавить новое событие',		'styles_btn' => 'стили события',		'styles_btn_tip' => 'Установка стиля события по ключевому слову',		'template_btn' => 'события',		'template_btn_tip' => 'Создать несколько событий на одной странице...',		'ical_btn' => 'загрузка',		'ical_btn_tip' => 'импортировать выбранный файл',		'ical_browse_tip' => 'выбрать файл ical для загрузки...',		'config_btn' => 'настройки',		'config_btn_tip' => 'Добавить настройки календаря',		'today' => 'сегодня',		'invalid_namespace' => 'Недопустимое пространство имен - Это расширение допускает создание календарей в пространстве: ',		'about' => 'нажмите здесь для получения дополнительной информации',		'dayyearTranslated' => 'День года', 'weekyearTranslated' => 'Неделя года' );
 * calendar.i18n.php, russian translation

--StasR 18:10, 22 November 2009 (UTC)

Hack for Mediawiki 1.15.4
To get the calendar to display correctly in version 1.15.4, in calendar.php find:

//add css; this is set as 'default.css' or an override if($wgVersion >= '1.14'){ $wgOut->addStyle($cssURL . $css); //clean method } else{ $wgOut->addHTML($css_data); //ugly method }

and change it to:

//add css; this is set as 'default.css' or an override if($wgVersion >= '1.18'){ $wgOut->addStyle($cssURL . $css); //clean method } else{ $wgOut->addHTML($css_data); //ugly method }

this causes it to use the "ugly method" which seems to be required for it to display correctly in this version. JulianDave 16:22, 19 May 2011 (UTC)

Improve the "date" function by relative dates
To make it possible to use not only yesterday, today,  tomorrow and  date=1-1-2010, but also other relative dates e.g.: "+2" to show the day after tomorrow.

changes in Calendar.php (ca. line 614), replace the original "if" line by:

Mediawiki 1.23
Hi, does this extension works for mediawiki 1.23?

I get the following error: Fatal error: Call to undefined function wfLoadExtensionMessages in /var/www/html/mediawiki-1.23.2/extensions/Calendar/Calendar.php on line 115

I check the path twice. This can't be the issue.

Reiner