Extension talk:Rating Bar

There are 2 other talk pages for this extension (as far as I know): Franck Dernoncourt 21:06, 20 April 2009 (UTC)
 * http://www.wiki4games.com/index.php?title=Wiki4Games_talk:RatingBar
 * http://www.mediawiki.org/wiki/User_talk:Patheticcockroach (EDIT: but shoudn't be a talk page for this extension)
 * Seriously, my talk page isn't supposed to be for the extension (although lately I must say it's been used as if it was Extension talk:Rating Bar itself :o, so it may contain answers to questions you may have). Patheticcockroach 21:32, 20 April 2009 (UTC)
 * lol Franck Dernoncourt 21:39, 20 April 2009 (UTC)

Stars or Blocks
Hi, there is a way to change the horizontal bar for stars or blocks (like the source for the extension in mininova)? --Knight Rider 01:53, 10 March 2009 (UTC)
 * Actually, one of the reasons why we made this extension is because we didn't like the star style. You may want to give a try to JSKitRating if you want stars. It's possible that we add a stars option (btw, what do you mean with block like in mininova? I have just been there and didn't see any kind of rating bar), but that's not a current development priority. Patheticcockroach 07:19, 10 March 2009 (UTC)
 * When i said mininova i'm refering the mininova labs script that inspirate your extension. I like your extension, it's great, but the bar with percents is complicated, if have a option to limit the votes in a scale of 1 to 5 or 1 to 10 instead 1 to 100, it will be more simple. PS: sorry my bad english --Knight Rider 18:04, 10 March 2009 (UTC)
 * Oh... if there's still a Mininova labs reference in the extension it's probably that Franck forgot to remove it: he used it to do the first drafts of the extension, then I rewrote the rating bar from scratch. Anyway, these kind of settings (stars; 1 to 10 (or rather, 0 to 10)) are likely to get on our to do list at some point, but not in the near future, since 1) we are focusing on improving the coding style and fixing some remaining defects like the impossibility to place several bars on the same page and 2) we unfortunately don't have much spare time ATM. Patheticcockroach 18:33, 10 March 2009 (UTC)
 * Yep, Minivova's rating bar is great... but doesn't work with MSIE :-/ Franck Dernoncourt 09:15, 11 March 2009 (UTC)

Thanx for this very nice extension. Being able to chose stars or blocks would be great as an option indead of a continous bar. I hope you'll work on it! JSKitRating extension of course has stars but isn't as convenient as your rating bar with, e.g., the possiblity of displaying user's votes. -- 83.77.149.220 13:41, 29 March 2009 (UTC)

I like the pourcentage idea I will use it and I thank you guys for all your hard work. Merci Franck --Kronoxt


 * Stars are now available! You guys did some really good work there...

Error: You need to enable javascript to vote
So, I followed the fixes posted over at wiki4games, but still get this error. In the preview of the article, I can see the voting bar. However, when I save it, it goes away, as others have reported. I'm not sure what code I should post to help diagnose :( Are there other adjustments to be made to get this working?  This extension is beautiful by the way and I'm looking forward to getting it working.  Your time is much appreciated. --Wait, so, is this where I should be posting?  Or should I post on wiki4games instead?  This is the extension page right? CaliVW78 14:06, 24 April 2009 (UTC)
 * The place to post is a bit confusing, to make it simple I watch all possible pages anyway ;) The issue you report seems a bit different than what the others reported though (the bar appears when you edit - I don't think this was the case for the others). Still, did you set $site_name to the same value as $wgDBname? Otherwise, well, a link to your wiki +/- your configuration (don't forget to remove passwords) would be nice (reporting a bug/issue is a great occasion to get some traffic :) ). I'll try to publish a dev version this week-end so ppl don't have to bother going around the bugs we've already fixed (most often: session ID cookie and custom extension path). Patheticcockroach 15:18, 24 April 2009 (UTC)
 * My apologies. I am seeing the rating bar without issue, when I do a preview of the page.  When I save it, it goes back to the error. $site_name does indeed match $wgDBname.  This wiki is not public facing, though I may too setup a dev environment to help with these issues, which would be public facing.  Below is my config:

$ratingbar_dbhost                                      = 'localhost'; // Usual 'localhost' $ratingbar_dbuser                                      = 'root'; $ratingbar_dbpass                                      = '******'; $ratingbar_dbname                                      = '******'; $table_prefix                                          = ''; // eg wg_ $site_name                                                     = 'nocwikidb'; // 'yoursitename' if your site is http://www.yoursitename.com $ratingbar_tablename                           = 'ratingbar'; $user_tablename                                        = 'user'; // Table where we check if the user exists. Default value in MediaWiki: user $categorylinks_tablename                       = 'categorylinks'; // Table where we check if a page belongs to a category. Default value in MediaWiki: categorylinks Interestingly enough, you state that $site_name should match $wgDBname. However, in the config file itself, it states that it should be the hostname of the box? In my case the url is http://noc/wiki, but the $wgDBname in my LocalSettings.php file is "nocwikidb" Which should I be using for $site_name ? CaliVW78 06:47, 3 May 2009 (UTC)
 * RatingBar/config.php****
 * I suggest you try version 1.1-dev2, it fixes most reported bugs about javascript not loading. Patheticcockroach 08:18, 3 May 2009 (UTC)
 * Ok, gave 1.1-dev2 a try, with the same results. I am still using a wiki that is not public facing, so I'm not able to give you a url that you can go a look at.  The issue remains though.  An error is displayed stating "Error: You need to enable javascript to vote."  When I do a preview of the article though, the rating bar shows up perfect.  If I vote on the rating bar via the preview page, that value sticks and can be seen on the article page, just above the javascript error.CaliVW78 11:36, 25 May 2009 (UTC)

A few thoughts
Hi, first off I'm happy to see a new serious option to finally go for a rating system. It's all about avoiding abuse and the option to do useful things with the collected data. --Subfader 21:12, 1 May 2009 (UTC)

Average as stars
Display a stars bar, not just a bold average number. --Subfader 21:12, 1 May 2009 (UTC)

My ratings

 * Add a special page called My ratings on which the user can access his ratings. A sortable table with the columns: Rating, Page, Date. The user can do what he wants. All votes are collected but may not be considered on displaying per-page-ratings (see below).
 * On a page display a second rating bar with the user's own rating below the normal bar. (like IMDB) --Subfader 21:12, 1 May 2009 (UTC)
 * It's already possible for a user to display their own ratings, but it's available only by a tag and not a special page yet. Patheticcockroach 07:03, 2 May 2009 (UTC)

All votes per page by others
On the extended rating box add a link to a to a Special Page to see all votes by all considered users for that page. E.g. link the (XX votes). May result a long list for big wikis, but no problem with the standard MW "200 items navigation listing". --Subfader 21:12, 1 May 2009 (UTC)

Adapt IMDB rating system
I'd like to see it behaving like the IMDB rating which is one of the best. For small wikis it may not work out cos if the rating is only displayed after e.g. 5 votes have been received it can take very long till they see ratings, so maybe make that optional or let a few ratios be defined per $wg. --Subfader 21:12, 1 May 2009 (UTC)
 * No stats for a page till X votes have been received.
 * Use the Bayes estimator instead of plain average.
 * For the displayed stats only votes by regular raters are considered. While it's not clear what IMDB uses here. I guess a regular and serious user is one who fits the criteria below. If the the votes by a user are considered after a while let's call him a serious user here. So a user is serious if:
 * Time/ammount ratio:  = the higher the better. The user rated quite a few pages within a long period, but not too many in a short time. If the user registered before the extension was installed, take the date when the extension was installed. After introducing the rating on the wiki or after a user registered he may vote a lot in a short time, but only if he stays active the votes may be considered soon.
 * Value ratio: The user is no pusher (fan or hater). Hard to find rules for that. There might be users who only vote things they like best so if a user votes only 10/10 he should be considered nontheless if he fits other criteria.
 * For all this: Never let the user know if he is in the "list" of serious users. He shall not try to become one. On IMDB you don't know if you influence the votes or not so you just vote seriously for yourself.

DPL integration
I'd like to see the data being accessable using Extension:DynamicPageList (third-party) so all kinds of combinations for lists are possible like the above mentioned "My ratings" page. Example parameters:  (pages with "serious" votes),   (pages without votes). That would be it already I guess since you could combine them with all the standard DPL parameters. --Subfader 21:12, 1 May 2009 (UTC)


 * That's quite a large list of good suggestions, and actually some of these ideas already crossed our minds but were postponed to "later" because we had to make some choices if we wanted to release something within an acceptable delay... The only part I don't really understand is the DPL integration: I didn't know this extension, and I'm not sure of what we'd need to do to make DPL work on Rating Bar. Anyway, adding all this to the (already quite long) to do list. Not sure of when I'll be able to implement it though. Patheticcockroach 06:57, 2 May 2009 (UTC)


 * I didn't expect it to be integrated too soon :) Just wanted to leave my requirements for a good rating extension. I won't go live with any rating system till all this is possible. That's why I never installed one of the simpler extensions. You can't do anything with it than display the avaerage vote on the page. About DPL (third-party): You should give it a try. With the combination of a few commands you can run all kinds of quereys and receive lists or tables of articles, categories or include the complete contet or chapters of articles. If you could querey the rating table you could drop lists such as: all your chart tables, latest comments left, unrated articles, categories with most/no ratings, users who didn't rate 1/5 etc. Here are a few examples. No idea how to work together with DPL, but it can't be more than adding a few commands realted to the rating table. --Subfader 16:58, 2 May 2009 (UTC)

Error: Sorry, MySQL query failed.
Hi, i install 1.1-b1 version, follow all the steps in instalation, but always i try to preview or save a page with rating bar i get the a mysql query failed. I recheck all steps, but don't know what could be happening.--Knight Rider 16:20, 6 May 2009 (UTC)
 * Looks like there is a very weird issue with some non-English wikis: for some reason the variable containing database and table names become empty at some point... someone sent me a back up of his wiki so I can investigate more precisely... I'm not very optimistic about whether I'll find what's wrong though :/ 89.159.167.45 12:33, 30 May 2009 (UTC)