It would be great if you could expose the result of the userpoints transaction to a rule.

A

Comments

BillyMG’s picture

Assigned: Unassigned » BillyMG
Category: bug » feature

Will work on it and post back here.

BillyMG’s picture

Status: Active » Needs review

Committed this to the dev version. It includes two rules. The first is for when the user can pay for the node, and gets called after the user has been charged the points. The second rule is when the user tries to submit or preview or do anything to the node that would cause it to get validated. The user hasn't been charged points (since they couldn't afford it anyway) at this point, but they may not be done editing the node. This needs to be done to make sure the rule is still useful and called when it still matters.

I've just started using rules, so let me know if there's other things that are needed beyond these two rules.

BillyMG’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.