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. specialpage.php can also be easily edited.

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

Installation

 * 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 MUST set at least $ratingbar_dbhost, $ratingbar_dbuser, $ratingbar_dbpass and $ratingbar_dbname.
 * 4. Run the following SQL code.
 * 4. Run the following SQL code.

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
 * (don't forget to replace wg_ratingbar with the tablename you want.)
 * 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

History

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