2

I am using the Privatemsg module, Flag module and Rules module.

I wonder if using Rules I could send a private message to all the people who have flagged a specific node when a new comment is posted.

Thus, the flag would act like a subscription for new comments notification.

  • Is this for D7 ? – Pierre.Vriens Jun 5 '16 at 19:30
  • 1
    interesting profile picture ... if I was to update mine in a similar way, I would need 2 such pictures, no? Btw, just fixed some outstanding issue that was still waiting recovery ... – Pierre.Vriens Nov 3 '18 at 11:22
1
  1. Create a new rule triggered on After saving a new comment`.
  2. No conditions necessary; set them up only if you require something specific.
  3. Actions:
    • Fetch users who have flagged a node
    • Loop through those users (argument will be populated automatically)
    • Under that loop create a new action "Send a message". This will require you to have "Privatemsg Rules Integrations" module enabled.
  • ok so I did #1 and #2 for #3 I don't see a "Fetch users who have a flagged a node" see pic --> s28.postimg.org/albqryl7x/flag1.jpg I tried using fetch users who flagged a content and got this screen s7.postimg.org/hkll45g4q/flag2.jpg Then I added a loop s28.postimg.org/68rfy4xkc/flag3.jpg Then under loop I added an action to send message but I get this screen postimg.org/image/vhhly87jh but I don – No Sssweat Mar 29 '14 at 12:42
  • ...but I don't know what to put for recipient, it wont let me just use users: – No Sssweat Mar 29 '14 at 12:48
  • Just use the list-item - that is the current item in the loop. – Aram Boyajyan Mar 29 '14 at 14:30
  • ah thanks list-item looks like it should be used there, but I'm still not getting any messages, something must be wrong elsewhere humm – No Sssweat Mar 29 '14 at 15:01
  • I did this on a clean installation before posting so it should be working without any issues; make sure the flags are enabled for the content type of your node and that you are subscribed to it. Try doing it on a clean install as well. – Aram Boyajyan Mar 29 '14 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.