Notify me of comment replies

Basic task As commenter writer, I would like to be notified when replies are posted to my comments. This is important since it helps me participate in discussions I am interested in.

Bonus task As comment writer, I would like to select if I want to be notified about replies or not. I want to set this for each comment I write. This is important since not all comments I write are important to follow up.

How to Demo: 

Note that while doing this exercise you can change all e-mail notifications to on-screen notifications, for easier development.

Basic task 1. Log in to the site. (Use an account with an e-mail address you can access.) 2. Post a comment. 3. Log out (or switch to a browser where you're not logged in). 4. Post a reply to the comment above. 5. Verify that the author of the parent comment receives a notification within a few minutes.

Bonus task 1. Log in to the site. (Use an account with an e-mail address you can access.) 2. Post a comment alpha. Verify that there is a check box "Notify me about replies to this comment". Check it. 2. Post a comment beta. Don't check the notification box. 3. Log out (or switch to a browser where you're not logged in). 4. Post a reply to the alpha comment. 5. Verify that the author of the parent comment receives a notification within a few minutes. 6. Post a reply to the beta comment. 7. Verify that the author of the parent comment doesn't receive a notification within a few minutes.

Required Preparations: 

A standard Drupal 7 installation with Rules.

Additional Comments: 
  • As a bonus-bonus exercise, you can make sure that notifications are not sent out if replying to your own comments.
  • Note that this solution only sends out notifications to the immediate parent. Thus, it is not really ideal for a client site. (Check out the next exercise for a smoother feature.)
Modules: 
Downloads: 
Suggested Solution: 
Solution Video: