coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 email => Topic started by: rsgj0098 on September 06, 2024, 01:29:32 AM

Title: Email notifications of comments
Post by: rsgj0098 on September 06, 2024, 01:29:32 AM
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  :-*
Title: Re: Email notifications of comments
Post by: ron4mac on September 06, 2024, 08:06:29 PM
You can try making needed correction as done by another user (https://coppermine-gallery.com/forum/index.php?msg=389795).

Replace the 3 occurrences of cpg_db_fetch_row with cpg_db_fetch_assoc ...
See if that helps.
Title: Re: Email notifications of comments
Post by: rsgj0098 on September 07, 2024, 01:23:58 AM
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...');

Title: Re: Email notifications of comments
Post by: ron4mac on September 07, 2024, 01:46:05 PM
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.
Title: Re: Email notifications of comments
Post by: rsgj0098 on September 07, 2024, 02:55:01 PM
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..?