DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authorstats

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
Both sides next revision
plugin:authorstats [2014-10-03 18:24]
82.130.120.35 [Discussion] PHP Parser error
plugin:authorstats [2020-09-20 13:22] (current)
Aleksandr lastupdate
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Plugin that outputs statistics about the wiki's authors. +description: Plugin that outputs statistics about the wiki's authors 
-author     : sophron, Constantinos Xanthopoulos +author     : Constantinos (ConX) Xanthopoulos 
-email      : sophron@latthi.com, conx@xanthopoulos.info+email      : conx@xanthopoulos.info
 type       : syntax type       : syntax
-lastupdate : 2014-08-30 +lastupdate : 2020-03-09 
-compatible : 2010-11-07, Binky, Rincewind, Angua, Adora Belle, Weatherwax, Ponder Stibbons+compatible : 2010-11-07, Binky, Rincewind, Angua, Adora Belle, Weatherwax, Ponder Stibbons, "Detritus", "Elenor Of Tsort", "Frusterick Manners", Greebo, Hogfather
 depends    :  depends    : 
 conflicts  conflicts 
Line 21: Line 21:
 ===== Description ===== ===== Description =====
  
-Plugin that outputs metrics about the wiki's authors. After generating the stats from the admin panel, simply save a page including the code ''<AUTHORSTATS #>'' (read the Syntax section) to generate a table containing the desired statistics.+Plugin that outputs metrics about the wiki's authors. Simply save a page including the code ''<AUTHORSTATS #>'' (read the Syntax section) to generate a table containing the desired statistics.
  
 ===== 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.
  
 +**NOTE:** This plugin Requires PHP 5.3+ due using namespaces
 ===== Example of Usage ===== ===== Example of Usage =====
  
-** Saving a page including in the code "<AUTHORSTATS>and "<AUTHORSTATS 16>".** \\ This will submit two tables. One with metrics since the beginning of the wiki and one with metrics for the last 16 months.+** Saving a page including in the code ''<AUTHORSTATS>'' and ''<AUTHORSTATS 16>''.** \\ This will submit two tables. One with metrics since the beginning of the wiki and one with metrics for the last 16 months.
  
 {{http://i.imgur.com/Em9wf.png?nolink&450}} {{http://i.imgur.com/Em9wf.png?nolink&450}}
Line 66: Line 67:
 ===== Acknowledgements ===== ===== Acknowledgements =====
  
-  * [[https://github.com/pacbard/gChartPhp|GChart PHP wraper project]]+  * [[https://github.com/sophron George Chatzisofroniou (aka. sophron)]] who is the original author!!!
   * Gerrit Uitslag (aka. Klap-in) for his bug-reports and feedback.   * Gerrit Uitslag (aka. Klap-in) for his bug-reports and feedback.
  
Line 72: Line 73:
  
 To inform us about a bug or even send me a patch please use GitHub's Issue tracking interface. To inform us about a bug or even send me a patch please use GitHub's Issue tracking interface.
 +
 +==== Don't display old author and contributions ====
 +If your wiki is old, authorstats may not show all contributions. In this case, delete ''authorstats.json'' and recreate with this content :
 +
 +<code>
 +{
 +    "authors": {
 +    },
 +    "lastchange": 1262381936
 +}
 +</code>
 +Change ''1262381936'' by the timestamp of the creation of the wiki. 
  
 ===== Discussion ===== ===== Discussion =====
  
-  * Unordered List ItemPlease anybody help! How can it be made the name of an auther to be a link to his userhomepage? +  * Please anybody help! How can it be made the name of an auther to be a link to his userhomepage? 
-  * The plugin killed my wiki: //PHP message: PHP Parse error:  syntax error, unexpected '[' in /var/www/wiki/lib/plugins/authorstats/syntax.php on line 127// Can anyone help?+  * how can i display the fullname instead of the loginname of authers? thanks 
 +  * feature requests: 
 + 
 +**1. SORTABLE**  
 +It's works correctly you need install [[plugin:sortablejs|sortablejs]] plugin; 
 + 
 +<code> 
 +<sortable  1=alpha 2=numeric  3=numeric 4=numeric 5=numeric 6=numeric 7=numeric> 
 +<AUTHORSTATS>  
 +</sortable> 
 +</code> 
 +         
 +**2<AUTHORSTATS YEARGRAPH #y> to display yeargraph of year #yr**
plugin/authorstats.1412353480.txt.gz · Last modified: 2014-10-03 18:24 by 82.130.120.35