Project:Fivestar Extra
Version:6.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Will the new Multiple Axis rating of Fivestar 6.2 be supported by Fivestar Extra? It would be great to be able to rate users on several axes, for example reliability, communication, integrity etc.

Comments

#1

Martin, it depends on how they have structured their hooks and whether they have provided support for multiple axis ratings of things other than nodes. Right now I'm waiting on support for some more basic issues anyway.

#2

Category:feature request» support request
Status:active» fixed

From what I understand from this page, you should be able to use Fivestar itself for this.

Make a user review content type, use a user reference field instead of a product reference field, and then a lot of the rest is quite similar.

You need to display the view in the user profile, too.

Not a simple project, but I think the tools already exist and so coding multi access support into this lighter module would be overkill.

For the real detail, you'll have to ask the Fivestar and Views people, but it looks possible to me.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

Unfortunately, this does not work for this reasons:

1. The instructions say about the node type, which is the target for the rating:
'Check the "Enable fivestar rating" box under the "Fivestar ratings" fieldset. This is important because votes made by the Review content type will not be calculated unless this box is checked.'
The Enable fivestar rating box is not available in a profile, only in content types.

2. The instruction about the review node type is:
'Select "Node reference" as the field type'.
It is not possible to select a user reference.

Therefore I still have no solution for this and would be very grateful, if you could support Multiple Axis rating in Fivestar Extra.

#5

Status:closed (fixed)» active

#6

Same problem here. I would really appreciate some help.

#7

+1 here too. Need to be able to do this for a project.

#8

Version:6.x-1.0-beta3» 6.x-1.1
Category:support request» feature request

OK, couldn't wait. Started poking about, and figured out how to do this — albeit with patching the module code. Note this is a patch against the 6.x-1.1 version of FivestarExtra. Ironically, this isn't dependant on the 6.x-2.x version of Fivestar, as I've leveraged the 6.x-1.19 version of Fivestar in doing this (the current production release I believe). What was critical was that version's ability already to accept a $tag parameter in various functions, and the rest was more or less easy. Here's what I did:

  1. Patched the admin.inc file to include a text area in which to specify multiple axes. This might have been done better, granted, but the way it works is simple and ties in with the tags bit of the voting API nicely. I also added a textfield to allow the section title to be changed, in case not everyone fancied "User Rating" as a title.
  2. Patched the module file itself in a few places, including hook_user, hook_forms, and the widget function itself, so that they all became tag-aware, and handled the tags properly. The biggest set of change were in hook_user, where not only did I include a loop to now go through all the axes, but also included classes so that the output can be well-styled. Also made it so that the "hidden" weight actually works (although not sure why you'd want to do that, but...).
  3. I introduced a couple of new variables, so modified the .install file's hook_uninstall function to be simpler and catch all the fivestarextras_ variables.

The modified code is working very nicely for me, and with all the classes added, I was able to get it to look basically how I wanted (screen shot attached). So even though we can't seem to get multi-axis rating on nodes with Fivestar itself, this should get us to multi-axis rating on users, and maybe will give some other folks some ideas and expedite the other. :-)

Anyway, please review and comments are of course welcome.

Shawn

AttachmentSize
screenshot.png 12.12 KB
fivestarextra_6.x-1.1_cbd_multi-axis.patch 9.38 KB

#9

I needed multi-axis features of fivestar 6.x-2.x-dev. Below is my patch against fivestarextra with following changes:
-added multi-axis voting
-added ability to customize the main title of the module, and the two titles above/below each voting widget.
-disabled voting of user's own comments, replacing with static fivestar display.
cheers.

AttachmentSize
fivestarextra_6.x-1.1_fivestar-6.x-2.x-dev.patch 35.52 KB
nobody click here