We will use this issue to brainstorm potential uses of the Voting Rules module. These use cases should eventually be included in the documentation after methods have been determined to achieve desired results

Comments

TimelessDomain’s picture

Fivestar --> Vote Up/Down
ex. when using 1-5 stars on a node (or entity):
1) if user rates 1-2 stars -> trigger vote up/down to vote down 1 on same node/entity for same user
2) if user rates 3-5 stars -> trigger vote up/down to vote up 1 on same node/entity for same user

Fivestar --> Userpoints
ex. when using 1-5 stars on a node: reward more userpoints to the node author for each additional star rating by any user.
1 star: 5 points
2 stars: 10 points
3 stars: 15 points
4 stars: 20 points
5 stars: 25 points

Taxoman’s picture

Good examples.
Could also support roles, so that administrators can specify a scheme based on roles too.
Example: When people who are members of certain "trusted" or "prominent" roles votes on a post, the author gets extra points added/withdrawn according to the settings.
Along with that, it should be possible to set permissions on which roles can change the roles scheme.

Shadlington’s picture

Another use case could be marking a node as needing indexing by a search module (I'm thinking Apache Solr Integration or, for D7, Search API) when a user votes on it.

hjulien’s picture

I'm looking to create a rule that takes actions on nodes that have 4 or more stars. Is this possible now?

smscotten’s picture

The use case I'm looking for:

Integer field input -> Fivestar

Specifically, I'm doing an import where Feeds does not support the Fivestar field, so I'm importing the numerical rating from elsewhere, and I'd like to set a rule to set the Fivestar field to that value.

However I get that my use-case is a workaround for functionality that should exist elsewhere. But I could see this being useful for non-import functions as well: aggregate a number of numerical ratings into a single overall rating.

Haidee’s picture

is it possible for this module to have Fivestar send a notification to user whenever their comments/ content(node) being rated/voted? it would be nice to have this kind of feature.

thanks

istryker’s picture

@Haidee
Event: user cast vote
Condition: Entity type is a Node
or
Condition: Entity type is a Comment
Optional Condition: Node of Type X
Action: Send Email to entity:author - using drupal core or other contribute module (ie notification)

Haidee’s picture

@iStryker: will try this... thanks!

Haidee’s picture

i don't see this conditions:

Condition: Entity type is a Node
or
Condition: Entity type is a Comment

can you name some module tha i should be working with?

by the way i'm using d6

calefilm’s picture

Issue summary: View changes

Hello Timeless Domain,

Can you or anyone else help me to create a rule that does just that but in DRUPAL 7?

1 star: 5 points
2 stars: 10 points
3 stars: 15 points
4 stars: 20 points
5 stars: 25 points

Thank you... Drupal Rules in 7 is so much more complicated than it was in D6

bluegeek9’s picture

Version: 6.x-1.0-alpha1 » 7.x-1.x-dev