DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:poll

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
Next revisionBoth sides next revision
plugin:poll [2010-09-20 16:03] – added link to new Doodle2 plugin 213.61.78.248plugin:poll [2018-06-05 22:09] Klap-in
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Lets you add polls to a wiki page. (previous authors: Esther Brunner) +description: Lets you add polls to a wiki page 
-author     : Gina Häußge, Michael Klier +author     : Dokufreaks (previous author: Gina Häußge, Michael Klier, Esther Brunner) 
-email      : dokuwiki@chimeric.de+email      : freaks@dokuwiki.org
 type       : syntax type       : syntax
-lastupdate : 2008-02-14+lastupdate : 2016-04-25
 compatible : >=2006-11-06 compatible : >=2006-11-06
 depends    :  depends    : 
Line 12: Line 12:
 similar    : userpoll similar    : userpoll
 tags       : poll, !experimental tags       : poll, !experimental
 +downloadurl: https://github.com/dokufreaks/plugin-poll/archive/master.zip
 +sourcerepo : https://github.com/dokufreaks/plugin-poll/tree/master
 +bugtracker : https://github.com/dokufreaks/plugin-poll/issues
 ---- ----
- 
-^ Download | [[http://www.chimeric.de/_src/plugin-poll.tgz|plugin-poll.tgz]] | 
  
 ===== Syntax ===== ===== Syntax =====
  
-Use this [[plugins|plugin]] to add a poll to a wiki page. The syntax looks like this:+Use this plugin to add a poll to a wiki page. The syntax looks like this:
  
   <poll [id]>   <poll [id]>
Line 37: Line 38:
  
 ===== Demo ===== ===== Demo =====
-You can see the demo here : http://www.ichiayi.com/wiki/tech/dokuwiki_plugin/poll+ 
 +You can see the demo here: http://www.ichiayi.com/wiki/tech/dokuwiki_plugin/poll FIXME
  
  --- //[[tryweb@ichiayi.com|Jonathan Tsai]] 2008/08/29 21:01//  --- //[[tryweb@ichiayi.com|Jonathan Tsai]] 2008/08/29 21:01//
  
 ===== Installation Notes ===== ===== 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. When the [[blog]] plugin is also installed, you need to turn ''$conf['plugin']['blog']['useifmodifiedsince']'' off. I will try to eliminate this incompatibility.
 +
 ===== Languages ===== ===== Languages =====
  
 The "Vote" Button needs to be translated to other languages. Currently only German (de) and English (en) are available. [[wikidesign@gmail.com|Send me]] your translation! The "Vote" Button needs to be translated to other languages. Currently only German (de) and English (en) are available. [[wikidesign@gmail.com|Send me]] your translation!
->I've just send the Russian one, but without exclamation sign at the end... Feel free to add it, that sign in Russian means just the same.+> I've just send the Russian one, but without exclamation sign at the end... Feel free to add it, that sign in Russian means just the same.
 //Gleb// //Gleb//
  
Line 88: Line 92:
 >>In Esperanto "Voĉdoni". Attention: "Voĉdonu" is not correct as this implies that you give your computer orders as you would do when talking to other persons. >>In Esperanto "Voĉdoni". Attention: "Voĉdonu" is not correct as this implies that you give your computer orders as you would do when talking to other persons.
 //Denizo// //Denizo//
 +
 +>> In Estonian
 +//Hääleta// or //Hääleta !//
  
 >>In Danish "Stem" >>In Danish "Stem"
Line 107: Line 114:
 >In Russian "Голосую" >In Russian "Голосую"
 //Zalex_UA// //Zalex_UA//
 +
 +>In Nepali "रोज्नुहोस्"
 +//RT_Nepal//
 +
 ===== Bugs / Feature Requests ===== ===== Bugs / Feature Requests =====
-Please report bugs or feature requests at the [[http://github.com/dokufreaks/plugin-poll/issues|Bug tracker]]. 
  
-===== Further Resources ===== +Please report bugs or feature requests at the [[https://github.com/dokufreaks/plugin-poll/issues|Bug tracker]].
-  * [[http://github.com/dokufreaks/plugin-poll/tree/master|Git Repository]] +
-  * [[http://github.com/dokufreaks/plugin-poll/issues|Bug Tracker]]+
  
 ===== Changes ===== ===== Changes =====
  
-{{rss>http://github.com/feeds/dokufreaks/commits/plugin-poll/master}}+{{rss>https://github.com/dokufreaks/plugin-poll/commits/master.atom date}}
  
 ===== Discussion ===== ===== Discussion =====
 +
 +
 +----
 +**How to allow multiple polls in one page** 
 +
 +In the file ... /lib/plugins/pool/synthax.php\\
 +Add the parameter $title to the function _pollForm
 +<code>
 +<    function _pollForm($options, &$renderer) {
 +>    function _pollForm($options, &$renderer, $title) {  
 +</code>
 +Add it in it's call too:
 +<code>
 +<                $renderer->doc .= $this->_pollForm($options, $renderer);
 +>                $renderer->doc .= $this->_pollForm($options, $renderer, $title);
 +</code>
 +
 +add md5($title) to group radio name in the form
 +<code>
 +<                '<input type="radio" name="vote" id="poll__option'.$i.'" '.
 +>                '<input type="radio" name="vote'.md5($title).'" id="poll__option'.$i.'" '.
 +</code>
 +and finally add md5($title) to the radio button filter 
 +<code>
 +<            } elseif ($vote = $_REQUEST['vote']) {
 +>            } elseif ($vote = $_REQUEST['vote'.md5($title)]) {
 +</code>
 +
 +Note that the votes should be submitted one by one
 +
 +Have a nice day,
 +----
 +
  
 I am running DokuWiki 3.09. I am getting the following error  I am running DokuWiki 3.09. I am getting the following error 
plugin/poll.txt · Last modified: 2019-10-15 05:41 by tryweb

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