Extension talk:AjaxRatingScript

Parse Error using 1.6.8
i'm getting the following error message... using 1.6.8 " Parse error: parse error, unexpected $end in C:\wamp\www\mediawiki-1.6.8\extensions\Ratings\_drawrating.php on line 53 " -AJ

Directory constistancy
I've also noticed in the authors instructions he swaps the directory names "rating" and "ratings" frequently, which creates other issues. - El T.

Well i've managed to get it to work ( partly ), right now i have the ratings on each page.. but only numbers show up, no images of stars...and when i click on a rating it takes me to the db.php page, it doesnt execute it..

Check your paths and make sure they are consistant across the board. I had similar issues with until I had all of the paths set correctly.

That being said, I still can't get it working properly I get a row of vertical numbers and when I click a ranking it does not include the full string in the url and I get an error that evades me at the moment.

I plan on working on it more today and I will let you know if I have any success. - El T.

I get the same thing (vertical numbers). Everything functions properly as far as it working, but I don't get the stars. There's gotta be some dependency that was left out of those instructions. I'm wondering if something like ImageMagick is required, since the image included in the ratings zip isn't just a pair of lit/unlit stars.

Extension hotcode
Do I need to enable raw HTML to us  on a wiki page?

I'm going to look into making the 1,5 or something like that

66.31.65.129 17:50, 28 January 2007 (UTC) No,  is not raw html, it's server side PHP code, and already included in the script itself. There seems to be an issue with either the directory structure, or something else not mentioned in the writeup.

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