Extension:WhosOnline/pl

From Linux Web Expert

Podręcznik rozszerzeń MediaWiki
WhosOnline
Status wydania: stabilne
Realizacja Aktywność użytkownika , Strona specjalna
Opis Creates a list of logged-in & anonymous users currently online
Autor(zy) Maciej Brencz
Ostatnia wersja 1.7.0 (2017-02-12)
MediaWiki 1.29+
Zmiany w bazie danych Tak
Licencja GNU General Public License 2.0 or later
Pobieranie
  • $wgWhosOnlineShowAnons
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Przetłumacz rozszerzenie WhosOnline jeżeli jest dostępne na translatewiki.net
Problemy Otwarte zadania · Zgłoś błąd

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.

Instalacja

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/WhosOnline/pl</tvar>|Download]] and move the extracted <tvar name=name>WhosOnline/pl</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WhosOnline%2Fpl
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'WhosOnline/pl' );
    $wgWhosOnlineShowAnons = true;
    // If you want anonymous users IP addresses shown. Default is not to show them, for privacy reasons.
    
  • <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Użycie

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.