Email notifications of comments Email notifications of comments
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Email notifications of comments

Started by rsgj0098, September 06, 2024, 01:29:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rsgj0098

Ref. Email Comments for CPG 1.6 plugin by gmc

I posted about this on the plugins board but have had no replies, so hope it is ok to repost it here. It appears the author of this plugin has not been on this forum for three years, so not sure if anyone else can help.

Just installed this plugin on 1.6.26 (bridged with SMF 2.0.14) and it seems to work, but I'm getting complaints from users that they get emails every time someone posts a comment on a picture they're subscribed to. On another site I use (with older versions of Coppermine and SMF) it's configured that emails are only sent for the first comment made since the user last visited that picture, they get no more until they visit again (hope that makes sense..!)

Is it possible to do that with this plugin..? I really want to have the email notification feature, but not for every single comment, as if a thread gets busy, it clogs up peoples' email inboxes.

Thanks,

Ria  :-*

ron4mac

You can try making needed correction as done by another user.

Replace the 3 occurrences of cpg_db_fetch_row with cpg_db_fetch_assoc ...
See if that helps.

rsgj0098

Thanks, I checked and the file already seems to have that modification made, this text is at the top:

<?php
/**************************************************
  Coppermine 1.5.x Plugin - email_comments
**************************************************/
// T-L modification cpg_db_fetch_row to cpg_db_fetch_assoc https://forum.coppermine-gallery.net/index.php?topic=79541.msg389795#msg389795
// Make sure that this file can't be accessed directly, but only from within the Coppermine user interface
if (!defined('IN_COPPERMINE')) {
    die('Not in Coppermine...');


ron4mac

Where did you get that version? It's not the one from CPG1.6 Plugins. Perhaps it was modified from the original in other ways that is causing your problem.

rsgj0098

Not sure now, I thought I'd got it from there. What is the latest version and can you give me a link to it..?