Compatible with DokuWiki
Similar to stars
This is a very simple plugin that will allow the inclusion of single or multiple Star Rating or Voting Systems on one page.
The rating details within an expandable box answering how many vistors vote per star level.
It utilises small text files to store it's required information instead of a database. It also delivers a configurable ip voting
restriction and the ability to set how many times a single ip may vote.
To see the plugin in action please visit: fcon- Rater examples
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.
Or just download and extract it as folder “rater” into your “\lib\plugins” directory.
External requirements:
Attention !
The update to version 2011-09-27 needed a change in ”.rating” file names. To reuse the former ”.rating” files please change the filenames
in ”…/data/meta”-directory according following concept:
| old filename format | converted filename |
|---|---|
| rater_[ID][NAME][TYPE].rating | rater_[ID]_[NAME]_[TYPE].rating |
| rater_1test1rate.rating | rater_1_test1_rate.rating |
Configuration of rater plugin can be done easily.
The following can be configured:
| Item | default value |
|---|---|
| restrict ip address voting | true |
| allowed user votes | 1 |
| Exceeded user rate attempts msg | You have already rated this item. You were allowed %s vote(s). |
| Missing rate value msg | You have not selected a rating value. |
| Thank you for msg | Thank you for voting. |
| generic item text | this item |
| end of line character (OS specific) | \n |
There is also a css file but it is related to thumb output only.
This delivers a picture of 5 stars and radio buttons below to rate. The rating will be counted and stored to a file at …dat/meta/*.rating
The code base is picked up from PHP, 5 Star Rating System \\
(using hReview) as mentioned within forum post Rating plugin.
{(rater>id=1|name=item1|type=rate)}
This delivers up/down thumbs to vote for a certain topic.
{(rater>id=1|name=item1|type=vote)}
Flam & Loleg asked for a statistic feature to see a list of all raters of a site sorted by highest rate. This is now implemented and the following syntax will deliver it (see also Examples). There are no more prameter necessary.
{(rater>id=1|name=item1|type=stat)}
There are no more prameter necessary. The list layout can be customized within style.css
The following line contains all paramters and possible values:
{(rater>id=1|name=item1|type=rate/vote/stat|trace=user/ip|end=09/25/10 / 25.09.2011|tracedetails=0/1)})}
It is allowed to place more than one rate/vote function into the same page but I dont know about the performance impacts if you will place
there hundreds.
[this section might not be needed in case of external bug manager, or use RSS feed]
[developers roadmap]
a small FAQ is provided at: Rater plugin - FAQ
You got this plugin up and running? You have got a demo page? Put a link here!
Feel free to add yours here:
Please use only the DokuWiki Forum for discussion and Rater issues to raise your problems. You can mention it here but this page is not regularily tracked
and if something is solved it will be cleaned from this page (better to use the forum due to automated notifications).