DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:multipoll

This is an old revision of the document!


MultiPoll Plugin

Compatible with DokuWiki

>=2006-11-06

plugin Lets you add slightly extended polls to a wiki page. (from poll plugin by Gina Häußge, Michael Klier and previously Esther Brunner)

Last updated on
2010-04-12
Provides
Syntax

The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.

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 poll, quiz, userpoll

Tagged with !experimental, extended, poll

This plugin is the result of an attempt of mine to make the original poll plugin meet my requirements, I heavily hacked into its code, thus it looks very similar … I do not attempt to “steal” the original work, but the code I ended with was too much different to just propose a patch … If the authors of the poll plugin are interested in a merge, they are welcome !!!

Download multipoll.zip

Syntax

Use this plugin to add a poll to a wiki page. The syntax looks like this:

<multipoll [hideresults] [hideifvoted] [showresultsto]=user,@grp,... | [id]>
  [question 1]
  * [option]
  * [option]
  * ...
  [question 2]
  * [option]
  * [option]
  [multivaluated question]
  + [option]
  + [option]
  + [option]
  + ...
</multipoll>
[hideresults] hides the results of the poll to users who don't have write access on the page, displays a “You already voted” message instead optional
[hideifvoted] completly hides the poll once the user voted, only users with write access on the page can see the results optional
[showresultsto] comma separated list of users or @groups which can see the results without the need to vote or to have editing rights optional
[id] the ID of the poll; must be unique1); appears as title required
[question] the question you'd like to ask optional
[option] a possible answer to the immediately above question required

The poll title is converted to a md5sum. This is used as the filename in data/meta: md5sum.multipoll - so all polls in the whole wiki must be unique. As a result you can move your poll around and the poll data is accessible. If you remove the poll you must remove the poll data with “rm”.

Installation Notes

When the blog plugin is also installed, you need to turn $conf['plugin']['blog']['useifmodifiedsince'] off. I will try to eliminate this incompatibility.

Discussion

1)
If it is not, metadata of the polls with the same id gets mixed up, i.e. users with IPs who have voted for a previous poll with that id can't vote again.
plugin/multipoll.1271088668.txt.gz · Last modified: 2010-04-12 18:11 by 195.220.94.78

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