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 and extract it in the new folder.
 * 3) * version 1.1-b1 (latest)
 * 4) * version 1.1-dev2
 * 5) * version 1.0-rc1
 * 6) Edit config.php. You have to set at least:
 * 7) * database connection information: $ratingbar_dbhost (database host, most often "localhost"), $ratingbar_dbuser (database user), $ratingbar_dbpass (database password) and $ratingbar_dbname (database name)
 * 8) * the table name prefix: $table_prefix must be set to the same value as the $wgDBprefix setting from LocalSettings.php
 * 9) * 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
 * 10) 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
 * http://www.opinionpedia.net Opinions about products and services
 * Photogallery at adsoft.cz (czech)
 * TrailWIKI.us A WIKI of all hiking trails in Washington State.

History

 * 2009-05-03 (1.1-b1): added a star-style version of the rating bar.
 * 2009-04-26 (1.1-dev2): bugfix nightly + a new hook w4g_ratingraw to display the average rating of an item standalone.
 * 2009-02-27 (1.0-rc1): first release candidate.