Extension:WhosOnline

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

Release status: stable

Implementation User activity, Special page
Description Creates a list of logged-in & anonymous users currently online
Author(s) Maciej Brencz
Latest version 1.4.0 (2014-10-31)
MediaWiki 1.25+
Database changes Yes
License GNU General Public License 2.0 or later
Download
Parameters
  • $wgWhosOnlineShowAnons
Hooks used
BeforePageDisplay

LoadExtensionSchemaUpdates

Translate the WhosOnline extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

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

Installation[edit | edit source]

vagrant>Vagrant</>, install with <tvar

  • <translate>

1>download-link</> and place the file(s) in a directory called <tvar|name>WhosOnline</> in your <tvar|ext>extensions/</> folder.</translate>

  • <translate>

Add the following code at the bottom of your LocalSettings.php:</translate>

require_once "$IP/extensions/WhosOnline/WhosOnline.php";
  • <translate>

Run the [[<tvar|update>Special:MyLanguage/Manual:Update.php</>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>

  • 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.
  • YesY Done <translate>

Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.</translate>

Usage[edit | edit source]

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.