Hi,

I'm using Views 2/Voting API/Fivestar, and i'm trying to display in another field the number of votes for a particular user and also display the fivestar rating.

I can't get a field with only the number of votes, how can I get it ?

Thanks,

Comments

eaton’s picture

When you say 'the number of votes for a particular user', do you mean the number of things that a given user has voted on? AFAIK, that information isn't being stored or generated automatically and can't be done just with the Views integration. You'd need to write your own SQL query against the votingapi tables to determine that information.

ChrisRut’s picture

Have a look at this step-by-step instructional videocast on lullabot: Building Views with Fivestar and VotingAPI
Should get you started.

ChrisRut’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

AntiNSA’s picture

Status: Closed (fixed) » Active

This video is blocked in China. Can anyone help me out with this?

jacobpov’s picture

trying to accomplish something a bit different, I need a total amount of votes user has recieved

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 is no longer supported. Closing old issues to clean up the issue queue.

Please reopen and update this issue if this is still an issue in the D7 or D8 version.