[Mediawiki-l] Installing an Event Countdown Timer

John Eix jeix at sympatico.ca
Mon Jul 3 00:36:08 UTC 2006


I am trying to run a countdown event timer (PEZ)

http://meta.wikimedia.org/wiki/User:PEZ/Countdown_Extension

The extension is composed of Countdown.php and countdown.js First I copied
the Countdown.php and countdown.js scripts into my editor and changed the
following line in the php file:

$text = '<script language="javascript"
src="http://h2wiki.halowiki.net/files/countdown.js"></script>' . "\n";
for me it becomes-
$text = '<script language="javascript" src="http://my
domian/wiki/extensions/countdown.js"></script>' . "\n";

Then I uploaded Countdown.php and countdown.js to the extensions folder
using secure login from a computer on my network.

On the server I edited the LocalSettings.php file at the bottom of the file
adding the following on a line just before the code ?>

include( 'extension/Countdown.php' );

The following were added to my wiki page:

<countdown name="SUMMER" time="15/07/2006 8:00 AM UTC-0400">
Number of sleeps till we leave for Leslie's Cottage '''<D>''' Number of
hours '''<H>''' Number minutes '''<M>''' and Number seconds '''<S>'''
</countdown>

After doing all that it appears that the Countdown.php and countdown.js
files are being read but time is not displayed. (I compared the html source
code from my site to one where the extension was working and the code
regarding the extension was the same) I expect it has something to do with
the time format on the server but I have tried changing the time setting
with no luck. Maybe I have missed some change in LocalSettings.php??? Anyone
have any suggestions??? Thank you for considering this request.




More information about the MediaWiki-l mailing list