Extension:Poll

From MediaWiki.org

Jump to: navigation, search

           

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
Poll Extension

Release status: stable

Implementation  Tag, MyWiki
Description Add polls to mediawiki.
Author(s)  Sorin Sbarnea and (SerenityTalk)
Last Version  1.5 (2008-04-07)
MediaWiki  1.11. X
License Public domain
Download svn
Example  [1]

check usage (experimental)

Contents


[edit] Purpose

Anonymous polling. Will give number of votes for each answer in same window. Result of others can be seen before voting.

[edit] Usage

<poll>
Do you like this extension?
Yes
No
I don't know yet.
</poll>

[edit] Installation

  • install the latest version from svn
cd /PATH_TO_MEDIAWIKI/extensions
svn export http://mediawiki.svn.sourceforge.net/svnroot/mediawiki/trunk/extensions/Poll/
  • execute the file Poll.sql in order to create required tables (sorry no auto-install, fell free to add it yourself)
PATH_TO_MYSQL/mysql -h <host> -u <username> -D <database name> --password=<password> < <path to Poll.sql file>
  • add require_once("{$IP}/extensions/Poll/Poll.php"); to LocalSettings.php

[edit] Installation Question

 ** Could you please explain the installation process with regards to the SQL file. I have no idea what the instructions are explaining, please for us the lamens?
How do you implement the sql file for use in the wiki? I have all the files but im stuck on the .sql file part :)- Thanks
You will need to execute the contained sql. This can be done via the unix comand line, as seen above, or by pasting the contents of the file into a mysql manager like phpmyadmin 94.193.106.14 16:19, 21 September 2009 (UTC)

++I run it on windows but i opened my SQL manager and connected to the Wiki db then pretty much did an open file, execute Query. the script will handle the rest. Poll is working for me, just need to look into making a page for an admin to see who voted for what

This extension will not work with PostgreSQL!!

[edit] See Also