Indice

The Number of Online Plugin

Compatibile con DokuWiki

  • 2024-02-06 "Kaos" sconosciuto
  • 2023-04-04 "Jack Jackrum" sconosciuto
  • 2022-07-31 "Igor" sconosciuto
  • 2020-07-29 "Hogfather" si

plugin Export the current number of those who is browsing your wiki, in plain text. This plugin is ported from that of PukiWiki (with some customizing).

Ultimo aggiornamento il
2019-11-19
Fornisce
Syntax
Repository
Source

Simile a whoisonline

Taggato con online, statistics, users

:!: このページを日本語でご覧頂けます。(This page is also available in Japanese.)
:!: I’m not a native English speaker, so this page may contain some mistakes in English sentences.

Summary

This plugin shows the current number of people who are browsing your wiki.

I know that there is whoisonline plugin already, but I wanted simpler one, so I ported Online plugin of PukiWiki1) (also, I wanted to practice porting plugins because I'll add some more plugins by porting from PukiWiki).

How Judged as Online

When this plugin is called, it will internally record your IP address (not showed) and the time.
Also, this plugin reads the recorded data, and if there is/are the access(es) in last 10 minutes (the length of time can be changed), the plugin judges that he/she/they is(are) online.

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples/Usage

:!: I changed partitions from “:” to “|”, because I thought that “|” is a less common character than “:”.
:!: Please add ~~NOCACHE~~ macro to the page you'll use this plugin, because the data will be changed in real time and the page shouldn't be cached.
:!: Users will be regarded as online ONLY WHEN this plugin is called (for example, if you use this plugin only in the top page, users in the other pages won't be recognized. Maybe, using this plugin in sidebars or templates is the best way.)

The most simple example is:

{{onlinenumber}} person(s) started to browse this website in the last 10 minutes.

Then exported like 3 person(s) started to browse this website in the last 10 minutes. (if there are 3 visitors online).

Also, you can enter like this:

{{onlinenumber| visitor is online.| visitors are online.}}

Then exported like 1 visitor is online. (if there is 1 user online), and 4 visitors are online. (if there are 4 users online).

See the plugin in action here (sorry but this page is available only in Japanese).

Error

If the plugin couldn't write the file, you'll see this message:

An error on Onlinenumber plugin: "(The place of the file)" is not writable.

This message can be localized (currently available in English and Japanese).

Syntax

{{onlinenumber|message A|message B}}

Configuration and Settings

You can change the following setting by using the Configuration Manager.

OptionDescriptionValue TypeDefault Value
onlinesecondsSeconds judging as online (Access within this number of seconds will be judged as online)numeric60 * 102)

The description of configuration can be shown in:

Development

Change Log

Known Bugs and Issues

Currently none

Contact Me

If you find some problems in this plugin, you can make issue topics on the GitHub page, or if you wanna contact me for other things, you can contact me by:

Discussion

1)
according to the license of the original plugin
2)
10 minutes