A pretty simple way to handle this is to make an extension that puts an iframe in a wiki page, and have that iframe include a Google calendar or a phpicalendar page. Note that you specify the url for the iframe, so it is not a generic iframe extension with associated security issues. IIRC, Google calendar gives you a url that even tells you what size to make the iframe fit just right.
Here's some code you can play with (adjust the output as needed):
<?php # iframe. Modified from: # CSO_iFrame - MediaWiki Extension # CSharp-Online.NET (C) 2006 Chang & Wagers Associates # The text between the tags is used as the properties of an iFrame tag. # Usage: <iframe_embed>iframe-properties</iframe_embed> # # To activate the extension, add this line to LocalSettings.php: # include("extensions/iframe.php");
$wgExtensionFunctions[] = "wfIframe";
function wfIframe(){ global $wgParser; $wgParser->setHook ("iframe_embed", "iframe_embed"); # tagname, callback }
# the callback function for converting the input text to HTML output #function iframe_test ($text, $argv, &$wgParser) function iframe_embed ($text){ $output = "<iframe src="; switch (strtolower($text)){ case 'phpicalendar': $output .= "http://phpicalendar.org/ phpicalendar"; break; case 'cnn': $output .= "http://cnn.com"; break; default: $output .= "http://hulab.tamu.edu"; } $output .= " width = '100%' height = '800'></iframe>"; return $output; }
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
On Mar 12, 2007, at 3:00 PM, Mike Maughan wrote:
On 12/03/07, Rob Church robchur@gmail.com wrote:
My point was rather hastily made, but it does stem off a classic irritation I have - and it's the one that is caused by people picking MediaWiki when it's not appropriate for their needs.
[snippage etc]
The last thing I want to engage in here is an energetic debate about the Tao of MediaWiki :)
I am in a situation arrived at via several pragmatic choices, in that the wiki in question is becoming a shared home for a social group (membership is small - less than 20 - but worldwide) to which I have belonged for some 14 years.
I have been looking at wikis for some time and am very keen to use them further. I have some strong development ideas for building upon a wiki platform but do need to learn more about the practicalities of wiki management & development, so by combining these objectives with the above need I have a good opportunity.
I rented a raw Debian linux virtual server with the intention of playing wiki until I found one that best fitted my model. What I have learned so far is that my Unix skills are way too out of date for such a project without considerable work, and I don't actually want to become a Linux sysadmin again. I accordingly went looking for a 'leg up' and was recommended to dreamhost, who happens to offer MW as a one-click install. Answer to a maiden's prayer ...
So whether MW is truly 'appropriate' to my needs, or merely 'sufficiently functional, convenient & available' is perhaps another debate, but that is why I am where I am and asking for more experienced users' opinions about MW & its extensions.
-- Regards, Mike _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l