Extension:Calendar (Shane) extended

With this script I added functionality to the calendar similar to the phpwiki calendar:
 * every day is a link to a page. When you click that link, you automatically start editing that page. (current day is marked in bold, days that have an event are underlined)
 * on bottom of the calendar, all events (days that are edited) are summed up + their content is shown
 * the calendar defaults to the "current month"
 * You can follow links to next or previous months

I changed first day of the week from sunday -> monday, this is easily changed:
 * change order in $wday_names
 * add/change this code in function dayOfWeek($month,$year) :

No doubt this is code is quite ugly, and not very portable(language,html,css..?) but it works mighty fine here, maybe someone can use it too...

This script now works on MediaWiki 1.9.x and should work on all previous versions from 1.6 upwards. Micrology 19:37, 6 May 2007 (UTC)

Install
Create a file called 'calendar_extension.php' in your  directory, and add code below. Then simply add the following line to the end of your  file:

and you are ready to go! Go to the sandbox and see if it works!

calendar_extension.php
';

/**               * Show events for this month **/               $output .= $viewEvents;

return $output; } } ?>

Showing Upcoming Events
If you'd like to have the ability to display a list of upcoming events from your calendar, then find the line

and immediately after it, add the line

Then find the function and after it, add the code

Finally, find the function

and immediately after it add the function

Note that you can set  and   to values which will limit the total number of events shown to the next   events and show only events occurring in the next   days. To display upcoming events, place a  tag in the location where you want upcoming events to appear.

Hallo,

Fatal error: Call to a member function exists on a non-object in C:\xampp\htdocs\mediawiki\extensions\calendar_extension.php on line 217

Diese Meldung erscheit am Bildschirm wenn ich den Kalender installiere. Sie zeigt auf die Zeile "if ($wl_title->exists)".

An was kann das liegen? Gruss, TP