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

Release status: beta

Implementation User interface, API
Description A feature to encourage new users to provide feedback
Author(s) Brandon Harris, Andrew Garrett, Timo Tijhof
Latest version 0.1
MediaWiki 1.20
License GPL
Added rights


Hooks used


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

Check usage and version matrix; code metrics


Open tasks · Report a bug

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

Installation[edit | edit source]

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


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

Configuration[edit | edit source]

$wgMoodBarCutoffTime[edit | edit source]

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

$wgMoodBarConfig[edit | edit source]

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 | edit source]

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

infoUrl[edit | edit source]

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

privacyUrl[edit | edit source]

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

disableExpiration[edit | edit source]

Days cookie for disabling MoodBar should last.

Behavior[edit | edit source]

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.