Closed (fixed)
Project:
Voting API
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2009 at 11:23 UTC
Updated:
13 Oct 2009 at 15:43 UTC
Hi, I'm using comments and comments rating for user profile node ratings, works fine, but I need..
1. visible ratings on my profile (my content), but I can't be able to vote
2. I really would like to take somehow all the ratings and calculate average and display it at the top of the page
many thanx for a help, great module
Comments
Comment #1
Richard Blackborder commentedCan you explain a bit more to me:
1. What should the visible ratings be of? Do you mean that you don't want to be able to rate yourself?
2. This can be achieved using views and votingAPI. You need to access the underlying data that Fivestar Extra uses and display the average. Fivestar Extra does not handle that function, though, so I can't give much more guidance there, sorry.
Comment #2
czeky commentedHi, thanx..
1. I don't want to rate myself (it's working now I think using a patch, but can't prove it, because I can't see ratings on my node-profile page which other users gave me)
2. I was thinking this way, but I was not able to do this ;-( maybe I need more Views lessons.. ;-) Could You point me out a bit?
Thank You
Comment #3
czeky commented+ I was thinking like.. take all the ratings, make some math (all the rating stars / users ..... 500 stars / 100 users gave rating = user's profile rating = 50%---) sort of...
Comment #4
czeky commented... maybe direct SQL query in node-profile.tpl.php?
Comment #5
Richard Blackborder commented1. I need you to properly explain this to me. You are not giving me nearly enough explanation to understand the problem; you need to write more than a single sentence. What exactly are you trying to do and what exactly is the problem? Give me details.
2. I am not able to give you lessons in Views, sorry. I can tell you that all the numbers for Fivestar Extra are handled by the module votingapi. So you want to look into votingapi's handling of views. You could also check out the Fivestar module and views. It shows you quite a lot. Watch this video:
http://www.lullabot.com/videocast/building-views-fivestar-and-votingapi
Comment #6
allisonredhead commentedIt seemed to me that the original poster was asking for a way to aggregate all the votes made for the comments of user X and average those.
In otherwords:
If User X has made 10 comments and each of these comments has received one vote for "four stars" User X average comment rating is 80 (4 stars) [This is 10 (ratings) * 80 (of 4 stars each) / 10 (total comments) = 80.
The obvious utility is to provide readers with an ability to identify good commenters/trolls/etc. and then (probably) to filter comments by some minimum standard.
Even if the OP wasn't asking for this, I'd like to know if this is possible.
Is it?
Comment #7
Richard Blackborder commentedAllison, I refer you to my answer in #5 to part 2.
I'd like to help, but I don't have the expertise with views and anyway the issue queue for Fivestar Extra isn't the place for questions on views/votingapi. If you go ask in the votingapi queue you might get some joy, or check out the video I linked above.