Can we add a dynamic/static formatter for fivestar CCK fields, based on #185074: Let users rate on multiple axis? Fivestar CCK Field should allow voting for users (so it turns into a multiple groupped field instead of the current).

This idea has a different logic on storing the votes, but has a finished/working admin UI.

CommentFileSizeAuthor
#5 example1.jpg26.8 KBRenee S
#5 example2.jpg34.11 KBRenee S

Comments

quicksketch’s picture

The Fivestar CCK field acts like other CCK fields, that is, it presents a field on the node edit form. You wouldn't expect the CCK textfield to make a textfield to the user viewing the content would you? The Fivestar CCK field is made for the node author to submit a value, then other users will view that value (say you were setting up a product review, the rating would be a single users opinion, plus the review itself in the node body).

quicksketch’s picture

It looks like the proper location for this request is #317317: Rate on multiple axis with admin UI which has the correct idea.

Renee S’s picture

> You wouldn't expect the CCK textfield to make a textfield to the user viewing the content would you?

Actually, I don't believe that's a fair representation of the functionality the issue's author was asking for. It sounds like they were talking about having the user vote on a view field. Not quite the same thing, and there are more ways to skin that cat than using CCK fields.

I too would like this functionality. Here's an example: I'm displaying quotes in a view that are selected by taxonomy. I want users to be able to vote on the quote within the view, without having to go to the node. There should be a way to do this through CCK, or at least a way to expose the Fivestar field to Views2, which would work just as well.

quicksketch’s picture

z allen, you can already do this, though the options for Fivestar are hidden within the VotingAPI options in the Views interface. I get the mistaken complaint that you can't vote on the Fivestar CCK field constantly, so if it's not what was being requested then I'm not sure what they were asking. To answer your question about how to have a Fivestar field in a view, see http://www.lullabot.com/videocast/building-views-fivestar-and-votingapi. Though I note again, this has nothing to do with CCK. The Fivestar field presented in Views is part of Fivestar's direct rating widget.

Renee S’s picture

Title: Allow users to vote on Fivestar CCK fields » Voting on Fivestar fields in views
Category: feature » bug
StatusFileSize
new34.11 KB
new26.8 KB

Thanks, that's a very useful tutorial.

Found a bug tho =)

If you use AJAX with the Voting API view using a fivestar rating it fails to properly load the fields. The first view works - it gives you a bunch of stars and you can vote on them - but if you attempt to page to the next set of results you get presented with a "Select a rating" dropdown box instead, with "Give it 1/5, 2/5," etc, but when you click on a choice it takes you to a white page with only a bunch of markup on it

{ "status": true, "display": "\x3cdiv class=\"view view-tips-students view-id-tips_students view-display-id-block_1 view-dom-id-1\"\x3e\r\n    \r\n  \r\n  \r\n      \x3cdiv class=\"view-content\"\x3e\r\n      \x3cdiv class=\"item-list\ ... etc
quicksketch’s picture

Title: Voting on Fivestar fields in views » Allow users to vote on Fivestar CCK fields
Category: bug » support
Status: Active » Fixed

z allen, this has already been fixed in the development version (it's not in 1.13). Please open a new issue for such requests.

Status: Fixed » Closed (fixed)

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