DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:accscounter

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
Last revisionBoth sides next revision
plugin:accscounter [2018-07-05 11:33] – [Development] An issue was found hokkaidopersonplugin:accscounter [2021-01-04 21:03] Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Export the number of those who visited a specified page in your wiki today, yesterday, or in whole period.  You can also show the list of the popularity according to the log data taken by the plugin.  This plugin is ported from those of PukiWiki (with some customizing).+description: Export the number of those who visited a specified page in your wiki today, yesterday, or in whole period.  You can also show the list of the popularity according to the log data taken by the plugin. This plugin is ported from those of PukiWiki (with some customizing).
 author     : HokkaidoPerson  author     : HokkaidoPerson 
 email      : dosankomali@yahoo.co.jp  email      : dosankomali@yahoo.co.jp 
 type       : Syntax type       : Syntax
-lastupdate : 2018-07-02 +lastupdate : 2020-06-11 
-compatible : Greebo, 2018-04-22+compatible : Hogfather, Greebo
 similar    : top similar    : top
 tags       : statistics, users, counter tags       : statistics, users, counter
  
-downloadurl: https://github.com/hokkaidoperson/DokuWiki-AccsCounter-Plugin/archive/master.zip+downloadurl: https://github.com/hokkaidoperson/DokuWiki-AccsCounter-Plugin/zipball/master
 bugtracker : https://github.com/hokkaidoperson/DokuWiki-AccsCounter-Plugin/issues bugtracker : https://github.com/hokkaidoperson/DokuWiki-AccsCounter-Plugin/issues
 sourcerepo : https://github.com/hokkaidoperson/DokuWiki-AccsCounter-Plugin sourcerepo : https://github.com/hokkaidoperson/DokuWiki-AccsCounter-Plugin
Line 51: Line 51:
  
 ==== Popular Pages ==== ==== Popular Pages ====
-:!: The pages which the access counter plugin is active will be listed.  If you want the popular plugin check all pages, you will put the counter plugin in sidebars or templates.+:!: The pages where the access counter plugin is active will be listed.  If you want the popular plugin check all pages, you will put the counter plugin in sidebars or templates.
  
 The most simple example is: The most simple example is:
Line 83: Line 83:
   * **argument**: ''today'', ''yesterday'', or ''allperiod''(default)   * **argument**: ''today'', ''yesterday'', or ''allperiod''(default)
   * **blacklist**: pages that will not be shown in the list (divide by ''|'')   * **blacklist**: pages that will not be shown in the list (divide by ''|'')
 +
 +===== Data Manager =====
 +
 +You can choose "Data Manager" in the admin menu of your wiki, and easily view and control the log data!
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
Line 90: Line 94:
 ^Option^Description^Value Type^Default Value^ ^Option^Description^Value Type^Default Value^
 |''timezone''|Timezone used to judge changing of the day (if empty, the timezone set to the server will be used.  You can specify one of IDs in [[http://php.net/manual/en/timezones.php|List of Supported Timezones" at PHP Manual]]|string|((empty))| |''timezone''|Timezone used to judge changing of the day (if empty, the timezone set to the server will be used.  You can specify one of IDs in [[http://php.net/manual/en/timezones.php|List of Supported Timezones" at PHP Manual]]|string|((empty))|
- +|''excludeMgAndSp''|Don't count managers and superusers? (see config "[[config:manager]]" and "[[config:superuser]]|pull-down choice from ''0'' (Count both), ''sp'' (Don't count superusers), or ''mg'' (Don't count managers (including superusers))|''0''| 
-===== Localization ===== +|''exclusionList''|IPs and remote hosts that will be excluded\\ The plugin don't count users with these IPs and remote hosts.  This list will be useful if your website has many accesses by robot(s) from specified IP(s) and remote host(s).\\ The plugin gets remote hosts by IPs reverse lookup (gethostbyaddr).\\ Enter one IP or remote host per line.\\ Wildcards available:\\ ? one character (an alphanumeric character, a dot ".", or a hyphen "-")\\ * one or more characters (alphanumeric characters, dots ".", or hyphens "-")\\ ! one character (a numeral)\\ ~ one or more characters (numerals)\\ \\ e.g.: "123.456.???.123" -> 123.456.789.123, etc. (123.456.78.123 won't be excluded)\\ e.g.: "*.example.com" -> 123.456.789.123.example.com, 1-2-3-4.rooter.example.com, etc.|textarea|((empty))| 
-Error messages and the description of configuration can be shown in: +|''usrExclusion''|Users or user groups that will be excluded\\ The plugin don't count these users and users in these groups.\\ Enter users and user groups separated by comma.|string|((empty))| 
-  * English +|''cntrExclusion''|Countries that will be exluded\\ The plugin don't count users from these countries.  This list will be useful if your website has many accesses by robot(s) from specified country(ies).\\ The plugin gets country codes by a DNS service of "cc.wariate.jp" ([[http://cc.wariate.jp/|Details in Japanese]]).\\ Enter two-character country codes(ISO 3166-1 alpha-2) separated by comma.|string|((empty))| 
-  * Japanese+|''cntrInclusion''|Set specific countries to be counted\\ If you specify county(ies) here, the plugin will count users ONLY from these countries.\\ The plugin gets country codes by a DNS service of "cc.wariate.jp" ([[http://cc.wariate.jp/|Details in Japanese]]).\\ Enter two-character country codes(ISO 3166-1 alpha-2) separated by comma.|string|((empty))| 
 +|''reverseLookupFailed''|Exclude from the counter when the reverse lookup (IPs to remote hosts) failed (IPs of robots tend to reject the reverse lookup)|boolean|''0''
 +|''reverseLookupException''|IPs which the plugin doesn't apply to the option "reverseLookupFailed"\\ Enter one IP per line.\\ Wildcards available:\\ ? = one character\\ * = one or more characters\\ \\ e.g.: "123.456.???.123" -> 123.456.789.123, etc. (123.456.78.123 won'be excluded)\\ e.g.: "123.*.789.123" -> 123.456.789.123, 123.9.789.123, etc.|textarea|((empty))| 
 +|''reverseLookupCntrException''|Countries which the plugin doesn't apply to the option "reverseLookupFailed"\\ The plugin gets country codes by a DNS service of "cc.wariate.jp" ([[http://cc.wariate.jp/|Details in Japanese]]).\\ Enter two-character country codes(ISO 3166-1 alpha-2) separated by comma.|string|((empty))| 
 +|''sfsExFreq''|Check the frequency score of the visitor's IP address not to count spammers? ([[plugin:stopforumspam2|Stopforumspam2 plugin]] required)\\ If the given number is "0" then the plugin won't do that, otherwise it'll do.  You can define the borderline special to this function.  If "-1" then the plugin will use the conf "freqBorder" of Stopforumspam2 plugin, if more than 0 then the number will be the borderline.|numeric (-1 +)|''0''| 
 +|''sfsExConf''|Check the confidence score of the visitor's IP address not to count spammers? (Stopforumspam2 plugin required)\\ If the given number is "0" then the plugin won't do that, otherwise it'll do.  You can define the borderline special to this function.  If "-1" then the plugin will use the conf "confidenceBorder" of Stopforumspam2 plugin, if more than 0 (and 100 or less) then the number will be the borderline.|numeric (-1 - 100)|''0''| 
 +|''saveLog''|Save the log of IPs, the date and the time when visitors access this wiki?\\ The log will be recorded for every page.  This option will be useful when you decide which IPs, remote hosts, and countries to exclude from the counter.\\ The log files will be saved in ''accscounterlog'' directory in your cache directory (inside [[config:savedir|the data directory]] in default config).  Pick up and delete the log files if necessary.|pull-down choice from ''0'' (Don't save), ''ppage'' (Save (Don't make files for every date)), or ''pdate'' (Save (Make files for every date))|''0''|
  
 ===== Development ===== ===== Development =====
Line 102: Line 112:
   * **2018-07-02**   * **2018-07-02**
     * Initial release     * Initial release
 +  * **2018-07-17**
 +    * Fixed the bug (The plugin sometimes used to do their works with tomorrow's date)
 +  * **2018-08-08**
 +    * Fixed the bug (An elementary mistake.  The plugin used to write files without making a directory)
 +  * **2018-08-29**
 +    * Added a htaccess file
 +  * **2018-10-30**
 +    * Big update!  Added options of black lists and the log saving system.
 +  * **2019-02-10**
 +    * Changed saving destinations of this plugin's data to be compatible with some plugins like [[plugin:farmer|farmer plugin]].  You can move or delete data in old directories.  See the notification you'll see after updating the plugin.
 +    * Added a function that uses [[plugin:stopforumspam2|stopforumspam2 plugin]].
 +  * **2019-03-12**
 +    * Changed saving destinations of this plugin's data **AGAIN**, to be easy to uninstall.  See the notification you'll see after updating the plugin.
 +    * Added the function of Data Manager.
 +  * **2019-10-21**
 +    * Added the conf ''cntrInclusion''
 +  * **2019-11-07**
 +    * Bug fix
  
 === Known Bugs and Issues === === Known Bugs and Issues ===
  
-  * :!: The plugin sometimes does their works with tomorrow's date +(Currently none)
-    * Now investigating+
  
 === ToDo and Wishlist === === ToDo and Wishlist ===
Line 119: Line 146:
  
 ===== Discussion ===== ===== Discussion =====
- 
  
  
plugin/accscounter.txt · Last modified: 2022-01-13 17:22 by florious

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