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

Settings
The extension looks nice however I don't understand why we have to predefine the Database Settings in _config-rating.php like dbhost, dbuser, dbpass and etc. Can we just take advantage of LocalSettings.php? In the way is it now we have to update this file every time if we change our database settings. I also wanted to include wfLogDBError wfDebug in rpc.php. Seem like the file loads directly via javascript and doesn't have access to the global mediawiki functions. Is there any way that this can be fixed? Thanks

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)


 * I use an adaptation of the $myImportantNamespace tweak. It works partly, because the rating do not appears on classical page and do on the allowed namespaces, but it also appears on the Category and Help Namespaces... Any ideas ? --Rmatt 23:58, 21 March 2008 (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?
 * lol same here. cannot add new pages :D Man this extension has so many bugs and installation requires so many tweaks, the status shouldn't be stable. --Subfader 14:29, 30 March 2008 (UTC)

i cant get it to work
i have the version 1.12 of mediawiki this is my be the problem? --www.guitarpedia.co.il 08:50, 10 May 2008 (UTC)

How i can add the rating in specific pages?
I already read the comment before that talks about it but my question is:

How i can add the rating thing in certain pages by just add some tags to the page like:

i mean to add that tags in every pages which i want the users to rate. thank u.

Script Error "viewer has no properties"
First, thanks for the extension. It work's so far on my site http://pcwelt-tipps.de. But only after a manual purge of each single page (.../index.php?title=testpage&action=purge).

Without manual purge it gives a Javascript error in rating.js ("viewer has no properties"). It seems that the rating div isn't included in the cached content. I tried purging all pages with a script, But this doesn't work either. The site runs on MediaWiki 1.11.1 with AJAX RATING BAR V2 14-07-2007. I also used the newer script V2.5: same result. The site is working with URLs like http://pcwelt-tipps.de/wiki/page. --piggy 09:03, 28 May 2008 (UTC)

I answer my own question: to make it work i changed 'extension/Ratings/rpc.php' to '/extension/Ratings/rpc.php' in ratings.js (line 65)

--piggy 23:13, 8 June 2008 (UTC)

how can i translate this rating thing
which file i need to edit?

you have to change RateArticle.php (v2.5 '$wgMessageCache' Special Page)

_drawrating.php: $tense, $rater

rpc.php: $tense, $new_back

maybe there are more strings. Try 'find' in your text editor.

--piggy 23:20, 8 June 2008 (UTC)

Rating SpecialPage and placement
I think it would be nice to have a Rating page that showed top Rated articles, that would be available in the Special Pages section.

Also, I think it would be better if you could allow customizeable placement of the rating section (e.g. if the stars showed up in the upper right of the article, next to the title)

Using it to simply vote for an article (kind of digg-like)
We're going to have some proposals for people to vote on, each of which will be on a page potentially. According to docs, it sounds like you can't vote only 1 star - but that's what we'd like to do: 1 star (=yes), or don't vote (0 stars). Is this possible to modify? Also, does this let people vote only once? Thanks. --Charlener 19:32, 27 August 2008 (UTC)

Non valide chez moi !
line 258 column 317 - Erreur: document type does not allow element "link" here