I would like to create a new option on my site that enables users to filter votes.

For example:
You have a list of movies (views 2)
On overy movie users can post votes.
The list is sorted, the best movies are on the top of the list.
And now somebody wants to exclude all votes from users that are younger than 18 years old.

Probably the sort order will be different, as kids votes for other movies than older people.

Does anybody know a module with this function ?

Is it possible to do this with this voting API ?

Comments

eaton’s picture

Status: Active » Closed (won't fix)

Unfortunately, the cached vote results that are stored automatically are across the entire age of the content. To filter them, you'd need to either pre-calculate different 'sets' of vote results, like "Today's rating" and "Last month's rating", or you'd need to query the raw 'vote' tables dynamically whenever users request a filtered view.

There's really not any good way to do this automatically with VotingAPI and Views at present, unfortunately.