This patch enables users to add Fivestar ratings to their reviews as long as the Fivestar module is enabled, a feature that I wanted and figured other people might want as well.

There may be some issues with the install function to add a ratings column to the reviews table, and I couldn't find a Fivestar function that gives all available widgets, so currently the only option is 'default'. There's probably a few other bugs here and there.

Comments

derektom14’s picture

StatusFileSize
new10.83 KB

The previous patch was corrupted. Here's a clean one, that also has the added of feature of using all available Fivestar widgets.

EDIT: I left some debugging code in this patch. I'll fix it soon.

derektom14’s picture

StatusFileSize
new10.86 KB

Here's a revision of the patch. It should be good.

jay.lee.bio’s picture

Wow this is interesting, I'm one of those that need Fivestar to work with this module. I'll try to test this out shortly and will report back with results.

osopolar’s picture

Looks nice. Seems that this will fit to my usecase: Rate an entity (user, node etc. with up to five stars) and leave a verbal evaluation — like on ebay. I.E.: ***** (five stars) | This patch rules. Am I right?

gynekolog’s picture

First, Thank you for your work.
1) Basic function is OK but voting results is not working in views (by relationship). It's big problem for me because i need a average value for every node with reviews.

2) It would be good to be able set fivestar voting mandatory.

3) After applying the patch I receive alerts Notice: Undefined index: default in reviews_add_review() (line 94 of D:\xampp\htdocs\test\sites\all\modules\reviews\includes\reviews.pages.inc).

scot.hubbard’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

Many thanks.

This is included in version 7.x-1.17