This is an old revision of the document!
Table of Contents
authorstats Plugin
Compatible with DokuWiki
2010-11-07, Binky, Rincewind, Angua, Adora Belle, Weatherwax, Ponder Stibbons
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to statdisplay, stats
Description
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
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
NOTE: This plugin Requires PHP 5.3+ due using namespaces
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.
The generated tables as expected.
Current Year Contributions Graph
Syntax
Simple Description
<AUTHORSTATS #>
# is optional and could be any number of months in which you want to output metrics. If it is omitted, the page will output the metrics since the beginning of the wiki.
Current Year Contributions Graph
<AUTHORSTATS YEARGRAPH>
BNF Description
[authorstats_syntax] ::= '<AUTHORSTATS>' | '<AUTHORSTATS [num]>' | '<AUTHORSTATS YEARGRAPH>' [num] ::= integer
Acknowledgements
- Gerrit Uitslag (aka. Klap-in) for his bug-reports and feedback.
Bugs and Issues
To inform us about a bug or even send me a patch please use GitHub's Issue tracking interface.
Discussion
- Please anybody help! How can it be made the name of an auther to be a link to his userhomepage?
- how can i display the fullname instead of the loginname of authers? thanks
- feature requests:
- sortable table
- <AUTHORSTATS YEARGRAPH #y> to display yeargraph of year #yr
- I had lots of “Warning: Illegal string offset”. Had to edit syntax.php _getTotalContrib with this kind of code : isset($a['C']) ? intval($a['C']) : 0 . Thanks btw ;)
- My wiki has around 200 users and more than 2000 pages. When running this plug-in for several times, no result returned and when i checked the php_error_log file, 5468398 lines of error messages were produced, the error log file became more than 200 megabytes big. As above user found the warning: illegal string offset, but the real error comes from syntax.php several lines before, in the _sortByContrib function, where $b wasn't properly passed.