Extension:WhosOnline

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
WhosOnline
Release status: stableCategory:Stable extensions
Implementation User activity Category:User activity extensions, Special page Category:Special page extensions
Description Creates a list of logged-in & anonymous users currently online
Author(s) Maciej Brencz
Latest version 1.7.0 (2017-02-12)
MediaWiki 1.29+Category:Extensions with manual MediaWiki version
Database changes Yes
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgWhosOnlineShowAnons
Quarterly downloads 5 (Ranked 87th)
Translate the WhosOnline extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The WhosOnline extension adds a special page, Special:WhosOnline, which shows the list of all users (optionally including anonymous users) currently viewing the wiki. It creates this list by finding all users who last viewed any page on the wiki less than the time ago specified by the setting $wgWhosOnlineTimeout, which by default is one hour.

Installation

  • Download and move the extracted WhosOnline folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WhosOnline
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'WhosOnline' );
    $wgWhosOnlineShowAnons = true;
    // If you want anonymous users IP addresses shown. Default is not to show them, for privacy reasons.
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

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

Category:Extensions by Fandom
Category:All extensions Category:BeforePageDisplay extensions Category:Extensions by Fandom Category:Extensions in Wikimedia version control Category:Extensions included in Canasta Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:LoadExtensionSchemaUpdates extensions Category:Special page extensions Category:Stable extensions Category:User activity extensions