Jump to content

Extension:WhosOnline: Difference between revisions

From mediawiki.org
Content deleted Content added
m upd, form
+ unmaintained
Line 1: Line 1:
{{Unmaintained extension}}
{{Extension|templatemode =
{{Extension|templatemode =
|name = WhosOnline
|name = WhosOnline
Line 13: Line 14:
|update = 2011-05-22
|update = 2011-05-22
|mediawiki = 1.11+
|mediawiki = 1.11+
|needs-updatephp = yes
|needs-updatephp = Yes
|license = GNU General Public License 2.0 or later
|license = GPLv2+
|download = {{WikimediaDownload|server=svn}}
|download = {{WikimediaDownload|server=svn}}
|readme =
|readme =
|changelog =
|changelog =
|parameters =
|parameters = * $wgWhosOnlineShowAnons
|rights =
|rights =
|example =
|example =
}}
}}
'''WhosOnline''' extension adds a special page - Special:WhosOnline - for viewing the list of users currently viewing a page on the wiki.
The '''WhosOnline''' extension adds a special page - Special:WhosOnline - for viewing the list of users currently viewing a page on the wiki.


==Installation==
==Installation==

Revision as of 20:01, 19 March 2014

MediaWiki extensions manual
WhosOnline
Release status: stable
Implementation User activity , Special page
Description Creates list of logged-in & anons currently online
Author(s) Maciej Brencz
Latest version 1.3.1 (2011-05-22)
MediaWiki 1.11+
Database changes Yes
License GPLv2
Download Template:WikimediaDownload/svn
  • $wgWhosOnlineShowAnons
Quarterly downloads 5 (Ranked 79th)
Translate the WhosOnline extension if it is available at translatewiki.net

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

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/
    
  3. 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.
  4. Add the following line to LocalSettings.php to activate the extension:
    require_once("$IP/extensions/WhosOnline/WhosOnline.php");
    
  5. 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.
  6. Installation can now be verified through Special:Version.

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.