Hi there,

I could find a way to configure jRating to make Comments rateable as well.
Am I blind, or is this there no feature like this?
In the last case, I would be happy about a configuration possibility for this,
as the voting api allows it.

Thanks a lot!

Comments

hickory’s picture

This isn't possible at the moment but - as VotingAPI allows votes on comments - maybe it could be done.

benjamin birkenhake’s picture

If I would write (or make somebody write) a patch/extension/modification that allows jRAting, to be optionally applied to comments, would you consider integrating it?

hickory’s picture

Of course, if it works well and doesn't complicate the module too much.

jbach-1’s picture

Please please please. This is a beautiful idea.

sanduhrs’s picture

Version: 5.x-1.x-dev » 5.x-1.0
Assigned: Unassigned » sanduhrs
Status: Active » Needs review
StatusFileSize
new18.23 KB

So, actually someone made me write a patch, to add comment rating capability to jRating :)

The patch is quite big, but rather simple.
- It adds the option to Display average rating for comments to the jrating settings page.
- It adds the option to Show a rating control for comments to the node-type settings page
- It allows users to rate comments ;)

It does some little changes to rating.js, just for accuracy.
Please have a look and test it, should be absolutely backwards compatible with jRating 5.x-1.0

This patch is for jRating 5.x-1.0
No patch for HEAD or 5.x-1.x-dev availlable by now.
If there's interest in incorporating the patch into the module I'll shurely do a patch for jRating HEAD.

vg

sanduhrs’s picture

StatusFileSize
new18.36 KB

After extensive testing with FF and IE we found a Bug which prevented IE6/7 from submitting the comment form when replying or editing a comment. This new patch fixes the problem by not adding the jRating rating form to comments in preview mode.
Have a look.

vg

hickory’s picture

Thanks for the contribution sandhurs, it should be very useful. I'll try and add it to -dev soon.

hickory’s picture

Status: Needs review » Fixed

I've commited an update which should allow jRating to handle different content types, including comments. It needs some testing though, particularly for comments (it's not returning the average rating properly at the moment, at least). Thanks for the patch, it was very helpful.

hickory’s picture

Update: average rating is fixed now.

Anonymous’s picture

Status: Fixed » Closed (fixed)