Extension:Poll

From MediaWiki.org

Jump to: navigation, search
Zeichen 206.svg WARNING: the code or configuration described here poses a major security risk.

Problem: several XSS and sql injection vulnrabilities
Solution: Escape post variables
Signed: Bawolff 20:41, 12 March 2010 (UTC)

           

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. or later
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

This extension will not work with PostgreSQL!!

  • 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 the following line to LocalSettings.php:
require_once( "{$IP}/extensions/Poll/Poll.php" );

Please notice:

  • This extension does not allow database table prefixes: such as wiki_ etc.
  • Images must be placed into the folder .../extensions/Poll/images/

[edit] See Also