Email on comments:
Building on thread http://forum.coppermine-gallery.net/index.php/topic,71072.0.html
which sends email when a comment is posted.
I adapted a variation on this for a customer - looking at implementing a plugin to handle this function, but lacking appropriate hookpoints from what I can see.
The related thread updates db_input.php, but this only addresses comment submission, and not approval (if approval is required...)
Looking for hookpoints in db_input.php and reviewcom.php...
A zip of patch file based on SVN 8668 is attached to detail my thoughts. All 'action' plugins with no data returned.
Addition of 5 hookpoints:
- 'comment_updated' in db_input.php
- 'comment_posted_anonymous' in db_input.php
- 'comment_posted_registered' in db_input.php
- 'comment_approval_processed' in reviewcom.php
- 'comment_multiple_approvals' in reviewcom.php
If this looks acceptable, I'll work on the plugin code to exploit... Obviously will have a min version at whatever level the hookpoints get included. I haven't done any testing with this in plugin form yet - wanted to see if I was approaching this correctly, and if additional plugin points like this would be considered.