Extension:Rating Bar

The Rating Bar extension provides a rating system. It includes two tags, one for displaying the rating bar and another one for displaying all kinds of tables related to the ratings.

Functionality overview

 * Display a rating bar. Scale: 0 to 100%.
 * Display top rated items.
 * Display top voters.
 * List voters for one items.
 * Display latest votes.
 * Display user's votes.

Usage
This page details all possible usages. Two files can be edited by the administrator to configure the extension: config.php and styles.css (although it would be a better idea to edit MediaWiki:Common.css instead of styles.css so style customizations won't be lost when upgrading the extension). specialpage.php can also be easily edited.

A few examples:
 * To display rating bar:  or
 * Top rated pages:
 * Latest votes:

Installation
CREATE TABLE `wg_ratingbar` ( `user_id` INT( 10 ) UNSIGNED NOT NULL, `rating` TINYINT( 3 ) UNSIGNED NOT NULL , `page_id` VARCHAR( 255 ) NOT NULL , `time` INT( 10 ) NOT NULL , `ip` VARBINARY( 40 ) NOT NULL , PRIMARY KEY (  `user_id` ,  `page_id` ,  `time` ,  `ip` ) ) ENGINE = MYISAM
 * 1) Create a new folder (directory) in the following location:
 * 2) Download the source code archive here and extract it in the new folder.
 * 3) Edit config.php. You have to set at least:
 * 4) * database connection information: $ratingbar_dbhost (database host, most often "localhost"), $ratingbar_dbuser (database user), $ratingbar_dbpass (database password) and $ratingbar_dbname (database name)
 * 5) * the table name prefix: $table_prefix must be set to the same value as the $wgDBprefix setting from LocalSettings.php
 * 6) * your database name: $site_name (this name will be changed to a more appropriate one in future releases ;)) must be set to the same value as the $wgDBname setting from LocalSettings.php
 * 7) Run the following SQL query.
 * 1) Run the following SQL query.
 * NB: don't forget to replace wg_ in wg_ratingbar with your own table prefix.
 * 5. Add the following code at the end of LocalSettings.php:
 * (replace, of course, with the proper path!)
 * (replace, of course, with the proper path!)

Who's using it?
(Please add your URL to the bottom of the list.)
 * Wiki4Games.com, the video game wiki
 * Wiki-Mangas, le wiki des animes et mangas (français)
 * Adventures in Odyssey wiki

History

 * 2009-02-27 (1.0-rc1): first release candidate.