Extension talk:AjaxRatingScript

Anyone up to cleaning this code?
Excellent piece of ajax.. I would love to use it as a permanent feature in the skin but also include the ajax voting functionality in forms/tables. so having the ability to 1,5 would be freaking sweet..

This code is very hacky tho - anyone in the mood to clean it up


 * I'm working on a hacked version of it that allows what you want. Also allows you to display the result of a page only. Code's not finished but getting there. --ChuckMcB 13:22, 19 March 2007 (UTC)

I cleaned it up a bit. redid the main extension page as well.--70.171.210.196 06:35, 3 May 2007 (UTC)

View pages by rating
It would be cool if this came with a Special page that listed all the pages with a certain rating range. 128.250.6.243 09:40, 28 March 2007 (UTC)

it doesn't work...
'''your extension manual might be buggy... i can't redeclare the execute function''' http://www.mediawiki.org/wiki/Extension:AjaxRatingScript#MonoBook.php You shouldn't be redeclaring it, but rather put the info under the exsisting.--Cdpollard 08:33, 3 May 2007 (UTC)

and where should i place this ? Somewhere around the content area, above or below. It's your skin, find the best place for it.--Cdpollard 08:33, 3 May 2007 (UTC) Put this in where you want it displayed.



Cdpollard's New version
IE rendering on your site is a bit broken, stars bleed over to the right of your page, other than that it's looking good. Any chance of controlling the pages that have the vote on them, having them on *every* page kinda looses the point of them IMHO, that's why I wrote a custom version that I can include in templates (example)and if needed just show the results on another page. --ChuckMcB 12:21, 3 May 2007 (UTC)

Thats great!
That way you can add it into the Featured article template, and only the featured articles would allowed to be rated.

I would also agree with that point. I had planned on doing something like that. I was just adding a little more documentation behind this one. You should add your edit as well. --Cdpollard 10:20, 4 May 2007 (UTC)

error...
Hi,

i get the following error message..

Warning: require_once(/extensions/RateArticle.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\test\LocalSettings.php on line 122

Fatal error: require_once [function.require]: Failed opening required '/extensions/RateArticle.php' (include_path='C:\wamp\www\test;C:\wamp\www\test/includes;C:\wamp\www\test/languages;.;C:\php5\pear') in C:\wamp\www\test\LocalSettings.php on line 122

also, the previous version required that we create a db, do we still have to do that?

- AJ

How to use this extension?
Hi, this must be a 'most wanted' extension in any wiki. But the install instructions are poor.

what is the meaning of the sentence in readme file in the folder?

=
================================================================ 3. Enter this line at the top of any page where you want to have rating bars.

=
================================================================ 

'''does the use need to insert this line in every article? or what?'''

=
================================================================ 4. Point to the right Javascript and CSS files (you need   behavior.js, rating.js, and rating.css)

=
================================================================   

where should we point this?

=
================================================================ 5. Drop the function wherever you want a rating bar to appear

=
================================================================ NOTE: As of version 1.2.1, use the echo statement! Also, if you use the static parameter, you should always specify the 2nd parameter (number of units), even if it is blank (which will default to 10 units)

 - 10 stars (default), ID of 8  - 5 stars, ID of 8xxa  - 5 stars, ID of 9a, static (non votable)  - 10 stars, ID of 9b  - 8 stars, ID of 9c, static (non votable)

Can anyone plz explain where to drop this function?

Error Message Error: You have an error in your SQL syntax
Hi. I get the following error message: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id='49'' at line 1

Any ideas what's wrong. Using Dreamhost Mediawiki. Thanks. BKL