Extension:CommunityVoice

Please fill in any info you know about the CommunityVoice extension.

Description
This extension allows an editor to place a ratings scale anywhere in a wiki page, and then users can give 1-5 star ratings. Each ratings scale has a category and title attribute which will later be used by the ratings list tag, displaying top-rated titles in a category. Anyone can view the current rating, however if you are logged in you may also vote.

Has a dependency on Extension:ClientSide that provides functions for generating code in client-side formats such as HTML, CSS and JavaScript.

Download
You can download the CommunityVoice code directly via SVN from the MediaWiki source code repository, at http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/CommunityVoice/

From a command line, you can call the following:

svn checkout http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/CommunityVoice/

Installation
Note once again that, before you install CommunityVoice, you must have ClientSide installed as well.

After you've created a 'CommunityVoice' directory (either by extracting a compressed file or downloading via SVN), place this directory within the main MediaWiki 'extensions' directory. Then, in the file LocalSettings.php in the main MediaWiki directory, add the following line for the CommunityVoice extension ('require_once' line):

How to use
The syntax to use is   .


 * Category = Specify the properly category.
 * Title = Specify a title reference.



Example: 

Little tips
If you recieve and error like this:

Error returned by MySQL database is «1146: Table 'YOURWIKI.cv_ratings_votes' doesn't exist (localhost)».

Check your privileges, one of the possibles reasons it is the user have enough rights to create the tables required. Then try to run manually the Initialize.php through the shell. Go to the Mediawiki extensions folder and write the following code.

This will rebuild the tables required to run the extension.

If your reading that, maybe your wiki is not running correctly the CommunityVoice, remember to check the files extension, for example. Sometimes the javascript files extension (.js) are changed to text files extension (.txt), then the javascript file is not executed. It's very particular for the file CommunityVoice.js.txt, if you see this then rename it to CommunityVoice.js.