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

klausi’s picture

Component: Forms Support » Provided module integration

Does 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.

vertazzar’s picture

Hint: you can load a user in an action and then use this user in the next action.

Really didn't understood this part, can you explain me more precise please.

Does not seem to be Forms support related to me.

Looks like an issue for Flag module rules integration and Userpoints rules integration.

You're right.. sorry for posting in wrong section, but I really didn't know where to post else.

vertazzar’s picture

Project: Rules » Flag
Version: 6.x-1.x-dev » 6.x-1.1
Component: Provided module integration » Rules integration
Category: feature » bug

Move *

vertazzar’s picture

bump

vertazzar’s picture

I 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..

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

I don't use or support Rules in any way whatsoever. This fix will need to come from the community.

vertazzar’s picture

Okay, 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.

amitaibu’s picture

@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.

vertazzar’s picture

#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

amitaibu’s picture

This is not correct, you can have an action to "Load user by ID" and use the token of the node author.

vertazzar’s picture

Status: Postponed (maintainer needs more info) » Fixed

omg dude that was in front of my nose all the time ... :|

THANK YOU !

Status: Fixed » Closed (fixed)

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

esllou’s picture

bookmarking

vertazzar’s picture