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

Richard Blackborder’s picture

Status: Active » Postponed (maintainer needs more info)

Can 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.

czeky’s picture

Hi, 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

czeky’s picture

+ 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...

czeky’s picture

... maybe direct SQL query in node-profile.tpl.php?

Richard Blackborder’s picture

Assigned: Unassigned » Richard Blackborder

1. 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

allisonredhead’s picture

It 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?

Richard Blackborder’s picture

Project: Fivestar Extra » Voting API
Version: 6.x-1.x-dev » 6.x-2.x-dev
Assigned: Richard Blackborder » Unassigned
Status: Postponed (maintainer needs more info) » Closed (fixed)

Allison, 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.