User Points - Rules Integration

The User Points module can greatly benefit from the powerful and flexible Rules module integration. This document is meant to be a basic introduction to the Rules events, conditions, actions currently available as well as example for use-cases.

// Introduction to User Points - Rules

Below are the Events, Conditions and Actions available with User Points - Rules Integration.

Add a 'premium' role when users have x or more points

Note: As of 25 February 2011, these instructions don't work. See http://drupal.org/node/1109992.

Add or deduct points from node author when node is published

This is useful if the admin publishes content for the user, so the userpoint should be added to/deducted from the content author and not the

Add or deduct points when node is published

This rule is useful for if the user publishes his/her own content:

Add/deduct points to content author when node is "flagged"

This is helpful for Flags such as 'favorites' or 'report offense' that require points to be added/deducted from the node author.

Condition for "points have been added/deducted"

This is useful to check if the user was awarded points or if points were deducted from the user.

Condition for "user has/had exactly x points"

The below setup will check if user now has exactly 5 points after points were added/deducted from the user.

Send a privatemsg to user when points are given using user2userpoints.module

This will show you how to send a privatemsg, or any other action you wish when a user is given points from another user using the

Welcome points for users

This rule will be useful to award points to users when they register an account at your site.

Guide maintainers

Bilmar's picture