Question on notifying on comments
gjerdery - October 9, 2008 - 21:19
| Project: | Notify by Views |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
I'm curious about what happens to comments added to content, when a user has set immediate notifications. My php reading skills are not fully-formed yet, so am not confident in my own understanding of what is happening. In the function "_notify_by_views_mail_send," I believe I understand what happens in the case of frequency equaling "never," and frequency NOT equaling "immediate," but does the $comments array get initialized when frequency does equal "immediate?"

#1
An 'immediate' notification is sent when the node is first inserted; so under any normal circumstance, it could not have any comments attached to it yet.
So unless I misunderstand your question, there's no issue here...
#2
I see -- I take your point on nodes not having comments upon creation. Is it possible to immediately notify users when new comments are posted to a node matching an authorized view? It appears as though comments are included when a user's frequency is set to one of the "digest" modes (although I realize I haven't actually tested this behavior myself -- so could be wrong, please correct me!). The Notify module sends out comments at the admin-selected interval. If I were to set the Notify frequency to "never" so that users would have sole control of notification frequency through Notify by Views, would those selecting "Immediate" ever receive new comments? Thanks again for all your help!
#3
Just realized I hadn't changed the status with my last post...
#4
I'd recommend another module (comment_notify, comment_subscribe) for notification of comments. Notify by Views was designed specifically with nodes in mind, not comments.