Extension:Poll2

From MediaWiki.org
Jump to: navigation, search


MediaWiki extensions manual - list
Crystal Clear action run.png
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]

Browse source code
View code changes

Changelog

Added rights

poll-admin, poll-vote, poll-create and poll-score

Hooks used
LoadExtensionSchemaUpdates

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

[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

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox