MediaWiki Extension – WhosOnline

This extension is the popular “Whos Online extension” of ChekMate Security Group(http://www.chekmate.org/). This extension is modified version in order to make it work with MediaWiki version 1.8.2 and above. In order to work it with previous versions earlier than 1.8.2 , please visit their site to download the code.

URL: http://www.chekmate.org/wiki/index.php/MW:_Whos_Online_Extension

here are the steps that you have to perform to make this extension work.

1. Add one new table in your database, named online. If database uses a prefix, then add the prefix before the table name. Here is the SQL code for creating the table:

CREATE TABLE online (

userid int(5) NOT NULL default ‘0’,

username varchar(255) NOT NULL default ”,

timestamp varchar(255) NOT NULL default ”

) TYPE=MyISAM;

2. Download the code below and Save the following in your ./extensions/ directory

3. Add the following to the end of LocalSettings.php:

4. Add the following code in your wiki page:

<b>Users Online</b>: <whosonline></whosonline>

 

Now save the page and view it in browser. You are done.

4 thoughts on “MediaWiki Extension – WhosOnline

  1. Marcel de Ruiter says:

    Hi Mizanur,

    Sounds like an interesting extension, but I am puzzled a bit at what it offers exactly. Does it show the logged-in users (would be a bit strange since some people never log off)? Or is it something else, like users being active the last x minutes?

    Thanks in advance for your answer.

    Best regards,
    Marcel

  2. Jakob says:

    Hi!

    I really wanna make this extension work on my wiki.. I get this error when I try to create the table though (I’m not so handy at MySQL):

    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘‘0′,

    username varchar(255) NOT NULL default â€

    Can you help me?

Leave a Reply

Your email address will not be published. Required fields are marked *