Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I solved my problem with the Flags module: I created the flags called 'Commented on this node' &amp; 'First reaction'* and rule called 'Commented on a node'. These are my rule's settings:</p> <p><em>EVENTS:</em> After saving a new comment</p> <p><em>CONDITIONS:</em></p> <ul> <li>Content is of type Parameter: Content: <code>[comment:node]</code>, Content types: Article</li> <li>NOT Node is flagged Parameter: Flag: Commented on this node, node: <code>[comment:node]</code>, User on whose behalf to check: <code>[comment:author]</code></li> </ul> <p><em>ACTIONS:</em></p> <ul> <li>Grant points to a user Parameter: User: <code>[comment:author]</code>, Points: 2, Points category: Reaction, Entity: <code>[comment:node]</code>, Description: New reaction, Operation: Add, Display: false, Moderate: Automatically approved</li> <li>Flag a Node Parameter: Flag: Commented on a node, Node: <code>[comment:node]</code>, User on whose behalf to flag: <code>[comment:author]</code>, Skip permission check: false</li> <li>Flag a Comment: Parameter: Flag: First reaction, Comment: <code>[comment]</code>, User on whose behalf to flag: <code>[comment:author]</code>, Skip permission check: false</li> </ul> <p>So, every time a user adds a comment to a certain node for the first time, the node is flagged as 'Commented on a node', the reaction is flagged as 'First reaction' and the user who added the comment is rewarded 2 points.</p> <p>**I use the 'First comment' flag in a <a href="https://drupal.stackexchange.com/questions/89853/how-to-deduct-user-points-after-deleting-comment-with-rules">related question</a>.*</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload