By esllou on
I have userpoints and flag operating but setting up this rule doesn't seem possible.
I have a flag which is basically a "I like this node" flag. Everytime another member flags a node, I'd like for that node's author to get a point.
In rules, I have set up the event "A node has been flagged" using the relevant flag. No problems.
But then I run into problems. Userpoints only seems to be able to give points to the flagging user, not the author of the flagged nodes.
has anyone set up anything like this??
Comments
nobody? what would be the
nobody?
what would be the best module issue queue to ask about this in...userpoints, flag or rules?? :-s
.
If nothing else, you can do this through the User Points API with a call to userpoints_userpointsapi, and in the parameters you would need the uid to be set to the applicable node author rather than the logged in User. Maybe take a look here: http://drupal.org/node/206558
and a couple of other reference threads:
http://drupal.org/node/549610
http://drupal.org/node/339970
But before that, if you haven't already done so, maybe try this module:
http://drupal.org/project/userpoints_contrib
It's a collection of modules, and of them is userpoints_flag / "User Points Flag". I haven't looked at it before, myself, so I don't know if does exactly what you need, but it's probably worth a look.
thanks for this. I'll look
thanks for this. I'll look into it tomorrow, but looks as if the rules method might be possible after loading a user. Cheers.
this looks useful too: http://drupal.org/node/305086#comment-2552744