Extension talk:Calendar (Kenyu73)

From MediaWiki.org
Jump to: navigation, search



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.



Contents

[edit] 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?

[edit] 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)

[edit] 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));

                        } 

[edit] 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/
calendar.i18n.php, russian translation
        $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' => 'Неделя года'
        );

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

[edit] 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)

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox