Extension:WhosOnline

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
WhosOnline

Release status: stable

Implementation User activity, Special page
Description Creates list of logged-in & anons currently online
Author(s) Maciej Brencz
Last version 1.3.1 (2011-05-22)
MediaWiki 1.11+
Database changes yes
License GNU General Public License 2.0 or later
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

Hooks used
BeforePageDisplay

LoadExtensionSchemaUpdates

Check usage (experimental)

WhosOnline extension adds a special page - Special:WhosOnline - for viewing the list of users currently viewing a page on the wiki.

[edit] Installation

  1. Change directory to $IP/extensions/
  2. Download the extension from SVN like this:
svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/WhosOnline/
  1. Create the table online with the SQL query supplied in whosonline.sql. This can be done by running:
    mysql -u [mysql username] -p [mediawiki database name] < extensions/WhosOnline/whosonline.sql

    Alternatively, run:
    php maintenance/update.php
    which creates the table as well.
  2. Add the following line to LocalSettings.php to activate the extension:
    require_once("$IP/extensions/WhosOnline/WhosOnline.php");
  3. If you want anonymous users IP addresses shown, add:
    $wgWhosOnlineShowAnons = true;
    to LocalSettings.php after the above statement. Default is not to show them, for privacy reasons.
  4. Installation can now be verified through Special:Version.

[edit] Usage

Users who login after the extension is installed can be seen at Special:WhosOnline. Refresh the page if it is blank. As of version 1.3.1 it is possible to include the contents of the special page into a page: {{:Special:WhosOnline}}. If you use {{:Special:WhosOnline/10/shownav}} it will only show 10 users and will have the navigation controls.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox