Closed (fixed)
Project:
Flag
Version:
6.x-1.1
Component:
Rules integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2009 at 21:09 UTC
Updated:
15 May 2010 at 21:28 UTC
I was struggling with this issue for months, and here I beg you to make argument for userpoints module and flag.
The current argument allows you to send points to user who clicked flag button. (flagging user) But the one I need is (Contents author or Comment Author, or Flagged user) argument. So please, at least can anyone explain me how to do that.. with some preprocess function, or something.. because I don't have much experience with PHP.
Example you have "Nice post" button, and "Bad post" button - and you want to when someone clicks "Nice post" button, the author of that post gets 10 points (example), and the opposite for "Bad post".
Comments
Comment #1
klausiDoes not seem to be Forms support related to me.
Looks like an issue for Flag module rules integration and Userpoints rules integration.
Hint: you can load a user in an action and then use this user in the next action.
Comment #2
vertazzar commentedReally didn't understood this part, can you explain me more precise please.
You're right.. sorry for posting in wrong section, but I really didn't know where to post else.
Comment #3
vertazzar commentedMove *
Comment #4
vertazzar commentedbump
Comment #5
vertazzar commentedI think this is problem for every flag unflag rule execution, there is no way that you can actually set the rule to author of comment or node..
on flag do this to author of comment
on unflag do this to author of comment
etc..
Comment #6
quicksketchI don't use or support Rules in any way whatsoever. This fix will need to come from the community.
Comment #7
vertazzar commentedOkay, if so can anyone provide at least a hook for flag that will grant points to author of node/comment
I'm sure that quicksketch wont provide those hooks, like declared in this thread http://drupal.org/node/339970
but anyone if is willing to help me, and the rest of community - the help is appreciated.
Also quicksketch thanks for this wonderful module.
Comment #8
amitaibu@vertazzar,
Use Flag's and User point's Rules integration:
Set up a Rule with event "Flag flagged" that its action is to grant user points to a user.
Comment #9
vertazzar commented#8 Thanks for reply, but I already tried that, if you already read the posts you would understand that rules, flags and userpoints integration doesnt have argument who will give points to node/comment author only to flagging user = the user who flagged the node/comment
Comment #10
amitaibuThis is not correct, you can have an action to "Load user by ID" and use the token of the node author.
Comment #11
vertazzar commentedomg dude that was in front of my nose all the time ... :|
THANK YOU !
Comment #13
esllou commentedbookmarking
Comment #14
vertazzar commentedmore info here
http://drupal.org/node/305086#comment-2552744