Hello. Does anyone know how could I add Php code to a Rule to determine the number of Points to add on a category depending on a CCK field of the node which triggers the Rule?
Example: There is a "Riddle" node with a CCK Field called Prize. The user solves the riddle and enters the solution on a Field, that triggers a Rule which add a number of points on the "Money" category according to the Prize and some mathematical conditions.
I've playing with user_rules, but I'm not sure how to implement this. Thanks!
Comments
Comment #1
jredding commentedYou can also use the custom PHP code on any rule and then call the userpoints api directly. See the documentation on how to use the API.
Comment #2
daniorama commentedDoes could work really nice... I was creating a kind of submodule with more rules for userpoints, but I think this could be better. Thanks!
Comment #3
mitchell commentedsubscribing. I'm interested to see how this works out.
Comment #4
Bilmar commented@DaniOrama - were you able to resolve your goal? If so, could you please share with the community?
This seems 'fixed' for the original requester.
Thanks!