Highhest average and rating is there any way?
battlingnewbie - August 18, 2009 - 02:25
| Project: | Fivestar |
| Version: | 6.x-1.18 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Is there anyway to check if a node has won in the sense of getting the highest votes and the highest average? Is there any way to make a views integration with fivestar. I would like to hold a competition where people vote on nodes and the ones with the highest percentage and highest rating wins. Is there any way for me to do this

#1
Either you've already figured out how to do this, or you should watch this:
http://www.lullabot.com/node/425/play
Pretty much step by step screencast to accomplish exactly what you are asking for.
#2
Cool I saw the screencast and it's exactly what I'm looking for thanks allot
#3
However, I am having a very hard time trying to create a list of highest average nodes containing a selected taxonomy term.
For instance I have:
Node A
Taxonomy Category 1
Term "A"
Node B
Taxonomy Category 1
Term "A"
Node C
Taxonomy Category 1
Term "B"
Node D
Taxonomy Category 1
Term "B"
I am trying to create a block which rates by Ascending or Descending Average vote of a Taxonomy category:
For Example:
Taxonomy Category 1 Leader board
All of Nodes which contain Taxonomy Category 1 Term A which have been voted for Total Average - Example: Total Voted average 80%
All of Nodes which contain Taxonomy Category 2 Term B which have been voted for Total Average - Example: Total Voted average 70%
Right now the best I can o is Get this:
Category 1
Term A Average 70%
Term A Average 60%
Term B Average 40%
Term B Average 30%
I can see the terms repeated and the individuals node containing that terms average. I need to have the total of each node containing the selected Taxonomys Category Term added together and created an averaged, then sorted by ascending or descending. I have tried for many hours in veiews to do this but I cant figure it out. If someone could elp me I would really appreciate it.
So to summerize I am trying to get
Taxonomy Category 1 Leaderboard
Term A Average (ie. 70%) + Term A Average (ie. 60%) = Term A total voted Average
Term B Average (ie 40%) + Term B Average (ie, 30%) = Term B Total voted Average
Thank you so much for any help you can give me
#4
Does this really do what you need? If I understand your question correctly, it's the same as mine - and isn't answered in the videocast. I'm looking for a list not of the content by average rating (decending), but of "highest" rating (average rating x # of votes cast).
I don't think that the latter is actually possible at this time w/ the stable release of FiveStar. If I'm wrong, it'd be great if someone could give me the heads up.
Cheers,
S
#5
I havent figured it out yet... I am doing other development , but I know I will come back to this issue. If I find out how I will let you know