Weighted average per role

zdean - February 7, 2009 - 04:07
Project:Voting API
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Is it possible to create weighted averages? For example, if you have 2 different roles on your site, you might want the vote of Role 2 to influence the "average" more than that of Role 1.

To illustrate, you might have a website for rating movies. The site would allow votes by its users as well as its own movie critics. You might want the vote of your critic to count for 50% of the total average while the "user average" counts for the other 50%.

Hope that makes sense.

Thanks.

#1

quicksketch - April 29, 2009 - 05:50
Title:weighted average» Weighted average per role
Project:Fivestar» Voting API
Version:6.x-1.x-dev» 6.x-2.x-dev

Fivestar is merely an interface to VotingAPI, which manages all data storage and calculation. This request would be better suited over there. This request might be a duplicate or merely related to #178512: hook_calculate....

 
 

Drupal is a registered trademark of Dries Buytaert.