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, but with a maximum of 5.
I tried doing this 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 points to a user
Part 1:
However, it's impossible to pick flagged-node:field-value
in the Points section. How can I solve this issue?
Part 2: I've also got a question about the 'maximum 5' condition. I made 2 seperate rules with an extra condition 'Data comparison': one with [flagged-node:field-value is lower than 6] and another with [flagged-node:field-value is greater than 5]. (Note that I can choose "field-value" here!) Isn't it possible to do this in just 1 single rule?
Note: I solved part 2 with the Rules module. You can read my answer below.