DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:onlinenumber

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:onlinenumber [2018-05-15 11:02] – addition of "contact me" hokkaidopersonplugin:onlinenumber [2020-07-14 09:58] (current) – Compatible with hogfather hokkaidoperson
Line 6: Line 6:
 email      : dosankomali@yahoo.co.jp  email      : dosankomali@yahoo.co.jp 
 type       : Syntax type       : Syntax
-lastupdate : 2018-05-15 +lastupdate : 2019-11-19 
-compatible : Greebo, 2018-04-22+compatible : Greebo, Hogfather
 similar    : whoisonline similar    : whoisonline
-tags       : online, statistics+tags       : online, statistics, users
  
 downloadurl: https://github.com/hokkaidoperson/DokuWiki-OnlineNumber-Plugin/archive/master.zip downloadurl: https://github.com/hokkaidoperson/DokuWiki-OnlineNumber-Plugin/archive/master.zip
Line 30: Line 30:
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
 +:!: I changed partitions from “:” to “|”, because I thought that “|” is a less common character than “:”.\\ 
 +:!: Please add ''<nowiki>~~NOCACHE~~</nowiki>'' 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: The most simple example is:
  
-  {{onlinenumber}} person(s) started to browse this website in last 10 minutes.+  {{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 last 10 minutes.'' (if there are 3 visitors online).+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: Also, you can enter like this:
  
-  {{onlinenumbervisitor is online.visitors are online.}}+  {{onlinenumbervisitor 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). 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 [[https://jdwiki.hkdyukkuri.space/|here]] (sorry but this page is available only in Japanese). See the plugin in action [[https://jdwiki.hkdyukkuri.space/|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 ===== ===== Syntax =====
  
-  {{onlinenumber:message A:message B}}+  {{onlinenumber|message A|message B}}
  
   * **message A**: texts following the number of online (when the number is 1)   * **message A**: texts following the number of online (when the number is 1)
Line 71: Line 81:
   * **2018-05-15**   * **2018-05-15**
     * Initial release     * Initial release
 +  * **2018-05-22**
 +    * Little change
 +  * **2018-06-18**
 +    * Updating with some improvement.  Allowed the localization of the error message.
 +  * **2018-08-29**
 +    * Added a htaccess file
  
 === Known Bugs and Issues === === Known Bugs and Issues ===
plugin/onlinenumber.1526374925.txt.gz · Last modified: 2018-05-15 11:02 by hokkaidoperson

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki