1

I currently am using the User Points Rules module to grant points (both moderated and unmoderated) to users for signing up for content using the Signup module. However, for cases where the user cancels the signup, it doesn't seem possible to remove (through another transaction) the points.

The points aren't static (i.e. 1 point per signup and thus -1 point per cancellation), but are dependent on the integer value entered for the Events content type.

Suggestions?

Issue on d.o: https://www.drupal.org/node/2419721

  • Any feedback about my answer? – Pierre.Vriens Oct 27 '17 at 19:46
0

Your question seems to be a variation (not a duplicate) of the question "How to grant user User Points equal to certain field's value / calculated value?".

Similar to the accepted answer to that question, use the Rules module and try to create a rule with these Rules Actions:

  • Calculate a variable that corresponds to "the integer value entered for the Events content type" (similar to what you wrote in your question).
  • Convert the data type of that variable (to integer).
  • Grant points to user (using the calculated + converted variable.

With that, the only thing left to do is to find an appropriate Rules Event to get this rule triggered.

PS: such "convert data type" is simply a matter of how Rules works (by design), so it's not to be considered as a bug either.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.