Extension talk:AjaxRatingScript

Author B.Vahrmeijer
I've cleaned up the code by using standard hooks instead of manual hooks.
 * 1) It works for all versions
 * 2) The AJAX element works fine now.
 * 3) The script is now downloadable and working at promotionwiki.com and leerwiki.nl

if you have MW installed in a subsite like www.yourdomain.com/wiki/index.php and the rating script does not work please read the manual at leerwiki.nl and the discussion site.

Hello and thanks for your extension
I installed it on my site : http://www.wikinouvelles.fr It works fine but something doesn't: When a user clicks on a vote, then navigate on the site and go back to the voted page, the vote doesn't appear. To make it appear, i have to clear the mozilla cache, and then the vote appear. Strange no ?

No, this isnt strange.. please read the posts the discussion at http://www.leerwiki.nl/Overleg:Ajax_script_for_Mediawiki_1.10

Thank you for your answer. I have read this forum, else i wouldn't have asked my question here, but didn't found the answer i wanted. I am going to read it again. Bye

You have your wiki build up like this: www.yourdomain.com/wiki/index.php this has consequences for the script code
to emphasize the 5! different paths which are important:

good luck
 * RateArticle.php: path to js/behavior.js
 * RateArticle.php: path to js/rating.js
 * RateArticle.php: path to css/rating.css
 * Ratings/drawrating.php: path to db.php
 * Ratings/js/rating.js: path to rpc.php

Yes, thanks, we finally found it, and made redirection in LocalSettings.php towards www.yourdomain.com/wiki And now it works. Thank you.

Good job: put your wiki on the first page plz thnx

Limit to Specific Pages
Hi, this extension is very good, but I would like to use this only on pages which I want and where I want by using some tag. Is it possible? I think that many users of mediawiki would welcome such alteration.--Sevela.p 13:22, 14 December 2007 (UTC)


 * Yes you can. Edit RateArticle.php and change the line (~44) that looks like this:


 * You can make the logic whatever you like. You can have it only apply to pages in a specific namespace like this:


 * Or you can make it match a specific set of titles like this:


 * There are better ways to do it but this should get you started. --Christian 17:29, 26 December 2007 (UTC)

author
I have not included a parser hook yet

Suggestion
This is a very nice extension. However, I would like to say, wouldn't it be nice if visitors could remove their votes then revote? As the pages are increasing in quality, the person may wish to change their opinion of the page. Just a tip. --NorthStar 18:06, 5 January 2008 (UTC)


 * I think it would be good to configure an option to delete the ratings after a certain number of days. I personally think that a vote should not be valable more than one year on a wiki. This would be a good improvement ! Rmatt, 20 March 2008

Problem with installation
Hi, this extension is great and it works fine, but when I start a new Page on the edit window I have the rating stars for this Topic. Is there any possibillity to hide the rating stars in the edit mode?