I currently have a rule set to when members user role send a msg to model user role the member loses 1 point and the model gains 1 points. Is it possible to make it so this only happen if the model responds to the privatemsg? Is that still dealing with rules or are we talking mini module?

Comments

berdir’s picture

read or respond? That's a different thing :)

If read, then you certainly need custom module because there is no rules event for that.

For reply, something like this might work:

event: message is sent
condition: $thread_id not equal $mid (If they are, then it is a new thread, if not, it's a reply. You probably need a comparison condition for that and then negate it)
condition: author has role model
condition (maybe): recipient has role whatever
action: deduct points for recipient
action: give points to author

Actually, after thinking about it, this is probably not going to work. 1) You can't check if the thread was start by the current recipient and it would be executed for every response.

So, I guess you need a custom module as well here...

jrivelli’s picture

What would that cost me? I would be willing to add it to all documentation and what else is needed as well.

manuel.adan’s picture

Component: Code: userpoints_rules/userpoints_workflow_ng » Code: userpoints
Issue summary: View changes
Status: Active » Closed (outdated)

Closing this as outdated, 6.x version is no longer maintained.