Extension:MoodBar

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
MoodBar

Release status:Extension status beta

ImplementationTemplate:Extension#type User interface, API
DescriptionTemplate:Extension#description A feature to encourage new users to provide feedback
Author(s)Template:Extension#username Brandon Harris, Andrew Garrett, Timo Tijhof
Latest versionTemplate:Extension#version 0.1
MediaWikiTemplate:Extension#mediawiki 1.20 . MoodBar master should only be used with core's master; otherwise, use matching branches (e.g. MoodBar REL1_26 with core REL1_26, or matching WMF release branches).
LicenseTemplate:Extension#license GPL
Download
Added rightsTemplate:Extension#rights

moodbar-view
moodbar-admin
moodbar-delete

Hooks usedTemplate:Extension#hook
BeforePageDisplayManual:Hooks/BeforePageDisplay
LoadExtensionSchemaUpdatesManual:Hooks/LoadExtensionSchemaUpdates

Translate the MoodBar extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

For more info on MoodBar, check out the MoodBar project page.

Installation[edit]

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/MoodBar/MoodBar.php");

You will also need to run update.php to apply schema changes.

Configuration[edit]

$wgMoodBarCutoffTime[edit]

MoodBar will only be shown to users registered after this time, format is a MediaWiki 14-character timestamp (e.g. 20110721103700)

$wgMoodBarConfig[edit]

A set of settings sent to clients. Valid array keys are below.

To modify, set the array element in LocalSettings.php. E.g.:

$wgMoodBarConfig['disableExpiration'] = 180;

bucketConfig[edit]

Allows you to modify the parameters passed to mediaWiki.user.bucket()

infoUrl[edit]

Allows you to modify the URL that users are given for further information about the feature.

privacyUrl[edit]

Allows you to modify the URL that users are given for privacy information.

disableExpiration[edit]

Days cookie for disabling MoodBar should last.

Behavior[edit]

MoodBar adds a trigger to the top-left corner in the vector skin. It is displayed for all users who registered after $wgMoodBarCutoffTime. If EditPageTracking is installed, it is only shown for users who have visited an edit page before.

Users with the right moodbar-view can view feedback sent through the interface on Special:MoodBar, or by exporting it to CSV with the included maintenance script exportMoodBar.php.

MoodBar accepts feedback through an API module, action=moodbar.