Extension:Poll2
|
Poll Release status: beta |
|||
|---|---|---|---|
| Implementation | Special page | ||
| Description | Add a Poll-Special Page into Mediawiki | ||
| Author(s) | Jan LucaTalk | ||
| Last version | 1.0 | ||
| MediaWiki | 1.14.0 | ||
| License | Attribution-Share Alike 3.0 Unported or later | ||
| Download | Download snapshot Subversion [Help] |
||
|
|||
|
|||
|
Check usage (experimental) |
|||
Contents |
[edit] What can this extension do?
The extension add a Special Page to create Polls and vote to them.
[edit] Usage
Use Special:Poll
[edit] Download instructions
- Create a directory named "Poll" in the wiki/extensions folder
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Poll/ Poll- Download the files at this link and put them on the poll directory
[edit] Installation
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/Poll/Poll.php");
[edit] SQL
Now you must run on a shell this command:
$ php <mediawiki_root>/maintenance/update.php
For help about this script see Manual:Upgrading#Shell and Manual:Upgrading#Alternative 1: phpShell.
[edit] SQL Alternative
If you have no access to a shell and don't want/can't use phpShell, you must install the tables manually. To install open the file "Poll-install-manual.sql" in the direction "archives" in the Poll dir. Now replace /*$wgDBprefix*/ in the whole file with your MediaWiki-table-prefix. Then run the sql file in your database with the MediaWiki installation (e.g. with PHPMyAdmin)
The following patches were excluded from the "Poll-install-manual.sql" file: (accidently?)
ALTER TABLE /*$wgDBprefix*/poll ADD `end` INT( 1 ) NOT NULL ; ALTER TABLE /*$wgDBprefix*/poll ADD `runtime` INT( 10 ) NOT NULL ; ALTER TABLE /*$wgDBprefix*/poll ADD `starttime` INT( 30 ) NOT NULL ;
[edit] Rights
Default rights are:
$wgGroupPermissions['sysop']['poll-admin'] = true; $wgGroupPermissions['*']['poll-admin'] = false; $wgGroupPermissions['autoconfirmed']['poll-create'] = true; $wgGroupPermissions['*']['poll-create'] = false; $wgGroupPermissions['autoconfirmed']['poll-vote'] = true; $wgGroupPermissions['*']['poll-vote'] = false; $wgGroupPermissions['*']['poll-score'] = true;
[edit] See also
- Extension:Poll
- Extension:Poll2/pl - Polish translation
