userpoints

How to grant user User Points equal to certain field's value / calculated value?

▼魔方 西西 提交于 2019-12-08 06:08:51
问题 I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field . I tried solving the first part of my problem with the Rules module like this: *Event: A node has been flagged, under "Publish Content and grant points to user" *Conditions: Content is of type 'Content' *Actions: Grant