Extension:MW Calendar

From MediaWiki.org
Jump to: navigation, search
This extension should not be confused with Extension:MWCalendar.
MediaWiki extensions manual - list
Crystal Clear action run.png
MW Calendar

Release status: beta

Mwcalendar ss1.PNG
Implementation Tag
Description Database driven calendar
Author(s) User:Kenyu73
Last version v0.3.3 (2010-03)
MediaWiki 1.14
PHP 5.0
License GPL
Download Project page
Download snapshot
Subversion [Help]

Browse source code
View code changes

Example <mwcalendar name="Events" />

Check usage (experimental)

Contents

[edit] Warning: Vulnerability - Cross Site Scripting

The current downloadable version of this extension (v0.3.3) is vulnerable to XSS attack. Mal-formed HTML can be used to embed an IFRAME into a calendar event.


[edit] What can this extension do?

This is a re-work of my Extension:Calendar (Kenyu73) extension. This uses direct database calls and not wiki pages for events.


This is beta and for testing only. I will not maintain back-wards capability until this extension leaves beta.


[edit] Key Features

  • Uses HTML forms
  • dedicated calendar database tables
  • Email notifications with mw-user select listing
  • Speed
  • less complicated parameters (like original calendar)
  • javascript controls
  • internationalization (i18n) - "en, fr, es, de" included, but others can be added by admin
  • time selection
  • batch mode (add multiple event via custom delimiter... tab or special characters
  • Optional WYSIWYG Editor (TinyMCE) (read how-to below)
  • Does not add pages to special recentchanges page for each appointment

[edit] Missing Features, but planned

  • recurrences
  • iCalendar (either import or file referencing)
  • colors/formatting
  • wiki format parsing
  • options form

[edit] Installation

[edit] Calendar Installation

  • Download the extension and unzip it to the /extension directory
  • Add this line to your LocalSettings.php configuration file
    • require_once( "$IP/extensions/mwcalendar/mwCalendar.php" );
  • Database tables are automatically created as long as $wgDBuser has table create/modify privileges!


[edit] TinyMCE Setup (WYSIWYG Editor) -Optional

  1. Download TinyMCE either from their homepage or from my site here
  2. Extract to the extensions directory
  3. verify path structure (case sensitive!) - (../extensions/tinymce/jscripts/tiny_mce/tiny_mce.js)<== What file is this change made in?


That's it! The calendar auto checks for this installation path. You can disable the RTE by the following:

<mwcalendar name="test" disablerte />

[edit] Examples

<mwcalendar name="Events" />
<mwcalendar name="Events" eventlist="30" />

[edit] Configuration

These are currently setup in mwCalendar.php


define( 'mwcalendar_email_ical_mode', 1 ); // 0=off, 1=attachment, 2=embedded, 3=html email only

define( 'mwcalendar_email_allday_format',1 ); // 1=20101215-20101216 (Outlook?), 2=20101215T000000-20101215T325959

define( 'mwc_week_start_monday', true); // true=week starts on Monday; false=week starts on Sunday

[edit] Tag Parameters

groups="<mw group1, mw group2, etc>" : add this group to notify/email list

key="<unique key>" : used for mulitple calendars per page (with same name?)

name="<calendar name>" :calendar name

[edit] Examples of MW Calendar in Use

[edit] Screenshots

[edit] Full Calendar

Mwcalendar ss1.PNG

[edit] Eventlist

Mwcalendar ss2.PNG

[edit] Add Events

Mwcalendar ss3.PNG

[edit] Other Extensions

Current MediaWiki Projects

Extension:Calendar (Kenyu73) -- wikipage calendar
Extension:MW Calendar -- database calendar
Extension:LaunchExternal
Extension:Presentation
Extension:Tabber
Extension:Menu
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox