Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_adiciona_pontos_comments" : {
- "LABEL" : "Adiciona Pontos Comments",
- "PLUGIN" : "reaction rule",
- "OWNER" : "rules",
- "REQUIRES" : [ "rules", "voting_rules", "userpoints_rules" ],
- "ON" : { "voting_rules_insert_comment" : [] },
- "IF" : [
- { "user_has_role" : { "account" : [ "vote:user" ], "roles" : { "value" : { "2" : "2" } } } },
- { "voting_rules_condition_check_vote_value" : { "vote" : [ "vote" ], "operator" : "\u003E", "value" : "0" } }
- ],
- "DO" : [
- { "userpoints_action_grant_points" : {
- "user" : [ "comment:author" ],
- "points" : "5",
- "tid" : "0",
- "entity" : [ "" ],
- "operation" : "Insert",
- "display" : "1",
- "moderate" : "approved"
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement