I'm following this videocast tutorial = http://www.lullabot.com/videocast/building-views-fivestar-and-votingapi

I've installed: (but also tried to use lastest -dev versions of votingapi and fivestar)
votingapi-6.x-2.0-rc2
fivestar-6.x-1.15
views-6.x-2.x-dev (dated: June 3, 2009, 20:29)

I've set up a node view in a page display

The relationship setup:
Node: Individual Votes
Value type = percent
Vote tag = vote
Restrict to current user = TRUE (checkbox is checked)

The field setup:
(Individual votes) Voting API votes: Value
Appearance = Fivestar Stars (clickable, no text)
Relationship = Individual votes

The expected behavior is:
a user viewing the view who hasn't voted on any of the content would recieve the fivestar voting wiget with 0 stars colored

The behavior I am getting is:
A user who is viewing the view is presented with a clickable widget that already has stars selected which seem to be displaying the "average" vote.

This is confusing as users believe they've already voted or someone else has voted using their username.

I am expecting the wrong behavior?

I can provide screenshots or a videocast if needed as I can't find where I've strayed from the video tutorial.

Comments

patchak’s picture

You can setup the fivestar widget so it does not show the average, but only the user value. You can also set it up so that there is a phrase like "Average" displayed under the stars..

This would happen directly in the fivestar settings on the content type edit page.

Hope this helps,
Patchak

blackenedblue.com’s picture

I should have mentioned my fivestar settings per content type:

They are as follows:

Star display style: Display user vote value
Text display style: Current Average in text

I'll give it another day in the forums, but I am starting to think this is a bug. I didn't want to create a bug report though without any confirmation that what I am seeing isn't expected behavior.

vm’s picture

I can confirm what you are seeing. I just set up a view exactly as you describe and indeed there are stars highlighted even if a user has not voted. I suggest filing a bug report but I can't tell you whether it is a votingapi issue, fivestar issue or views issue. I'd start with fivestar.

vm’s picture

So that you can follow along, I've filed an issue against the fivestar.module here: http://drupal.org/node/483458