Hi,
I've recently installed this module to enable notifications to forum commentators (people who post in a thread) and node authors. Problem is: This module won't notify the thread author, as permission to post forum threads won't enable the setting to receive notifications under /user/uid/edit for registered users.

Should I look for another module which will both notify posters in a thread as well as the thread author, please?

Are there any workarounds to make node authors receive notifications when their threads are answered?

PS: I set this as a bug report, as I think notifying node authors of forum threads would also be appropriate for this module. However my excuses if I'm wrong.

Comments

MatteNoob’s picture

I think I've figured some of it out

Firstly I only have this module activated for one content type. Secondly even though the checkbox was activated under /user/uid/edit on the admin account the database said no by default. It should be set to activated by default or deactivated by default and no tick in the checkbox.

Secondly I still havent figured out how to get the checkbox to get notifications for node authors under /user/uid/edit for other users than the administrator, even though they are allowed to create node of that content type.

Instead of the checkbox they have a hidden field which has value 0. This is passed to the database so the user never gets notifications on his nodes when comments are posted. Furthermore if I let users create nodes using another content type in addition to forum thread the checkbox appears.

Mails are sent out if I change the settings in the comment_notify_user_settings table manually.

My question is: How can I make that checkbox appear with only forum content type for users, please?

Any help would be much appreciated.

MatteNoob’s picture

I finally figured it out. Don't know if this is a good solution but it works.

In "comment_notify.module" you have this line (#295):

if (user_access('administer nodes') || $nodes ) {

Obviously that logic returns false, but if you replace that with

if (user_access('administer nodes') || $nodes || node_access('create', 'forum')) {

users who are only allowed to create nodes of content type forum will also be able to get notifications when comments are created. I have no idea why $nodes doesn't return true when users are able to create forum threads, but someone might be able to elaborate on that.

This was how I did it, and it works perfectly. Thank you me :)

greggles’s picture

Status: Active » Closed (duplicate)

Thanks for taking the time to submit an issue. I believe this is a duplicate of #717590: When content creation permission is only blog, it doesn't show checkbox..

Please consider if this is a duplicate. If not, you can mark this issue as active again.

When submitting a new issue it's always good practice to search for an existing issue first.

sbogner@insightcp.com’s picture

I had the same issue; applied the patch mention in #717590 but that didn't solve it. The checkbox for 'receive node follow-ups' didn't appear. When I applied the code change from MatteNoob, it appeared fine. #717590 talks about having access only to blog entries; my user has access only to create forum topics - could that be relevant in this?

andrenoronha’s picture

For users with administer nodes everything is fine as said before.

For the others I tried #2 but it didnt work....
i tried

if (user_access('administer nodes') || $nodes || node_access('create', 'forum') || node_access('create', 'post'))

for my two types of commentable nodes.

MatteNoob:
I have no idea why $nodes doesn't return true when users are able to create forum threads, but someone might be able to elaborate on that.

i also tried changing line 290:

if (user_access('create '. $type->type .' content'))

to:

if (node_access('create', $type->type))

nothing happened again....