forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 email => Topic started by: lurkalot on March 01, 2011, 07:31:17 pm

Title: Email users on new comments
Post by: lurkalot on March 01, 2011, 07:31:17 pm
Email users on new comments is a feature that I'd love to see built into coppermine.  Ideal for photographic communities.

I just noticed this post by Andre,  http://forum.coppermine-gallery.net/index.php/topic,70352.msg346215.html#msg346215  And was wondering

1: If this mod will work ok with coppermine bridged with SMF2.
2: Is it configurable. Would my members be able to turn the notifications on, or off.

Any ideas Andre?

Would love someone to make this a stand alone plugin. ;)
Title: Re: Email users on new comments
Post by: Αndré on March 02, 2011, 09:23:30 am
Should be quite easy to make it compatible to bridged galleries. If I'd modify the code can you test it for me? Regarding the on/off toggle I think this should too much for a simple mod and should be accomplished by the person who creates the plugin :)
Title: Re: Email users on new comments
Post by: lurkalot on March 02, 2011, 10:00:05 am
Andre.  Thanks, Sure I'll test it. 

I'll use one of my test sites to check it on first. ;)
Title: Re: Email users on new comments
Post by: Αndré on March 02, 2011, 10:16:10 am
Please try the following. Open db_input.php, find
Code: [Select]
            if ($CONFIG['email_comment_notification'] && !USER_IS_ADMIN ) {
                $mail_body = "<p>" . bb_decode(process_smilies($msg_body, $CONFIG['ecards_more_pic_target'])) . '</p>' . $LINEBREAK .$lang_db_input_php['email_comment_body'] . ' ' . $CONFIG['ecards_more_pic_target'] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $redirect;
                cpg_mail('admin', $lang_db_input_php['email_comment_subject'], make_clickable($mail_body));
            }
and below, add
Code: [Select]
            $result = cpg_db_query("SELECT filename, title, owner_id FROM {$CONFIG['TABLE_PICTURES']} WHERE pid = $pid LIMIT 1");
            $picture = cpg_db_fetch_rowset($result);
            mysql_free_result($result);
            if ($picture[0]['owner_id'] && $picture[0]['owner_id'] != USER_ID) {
                global $cpg_udb;
                $result = cpg_db_query("SELECT ".$cpg_udb->field['username']." AS user_name, ".$cpg_udb->field['email']." AS user_email FROM ".$cpg_udb->usertable." WHERE ".$cpg_udb->field['user_id']." = {$picture[0]['owner_id']} LIMIT 1");
                $owner = cpg_db_fetch_rowset($result);
                mysql_free_result($result);
                $title = $picture[0]['title'] ? $picture[0]['title'] : $picture[0]['filename'];
                $mail_body = "Your picture '$title' has received a new comment. You can see it at " . ' ' . $CONFIG['ecards_more_pic_target'] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $redirect;
                cpg_mail($owner[0]['user_email'], $lang_db_input_php['email_comment_subject'], make_clickable($mail_body));
            }
Title: Re: Email users on new comments
Post by: EC on March 02, 2011, 12:36:37 pm
I tested too!. My gallery is phpBB3 bridged. It works apart the title which gives null result.
elena
Title: Re: Email users on new comments
Post by: Αndré on March 02, 2011, 01:24:48 pm
the title which gives null result.
Try to replace
Code: [Select]
$title = $picture[0]['title'] ? $picture[0]['title'] : $picture[0]['filename'];with
Code: [Select]
$title = $picture[0]['title'] != '' ? $picture[0]['title'] : $picture[0]['filename'];
Title: Re: Email users on new comments
Post by: EC on March 02, 2011, 01:36:20 pm
:-( It doesn't work
Title: Re: Email users on new comments
Post by: Αndré on March 02, 2011, 01:43:08 pm
Please post some information if you expect help:
- Post the content of the received mail
- Post a link to the picture you tested
- Does the picture you're testing with has a title?
Title: Re: Email users on new comments
Post by: EC on March 02, 2011, 01:52:51 pm
I'm sorry. I made a stupid mistake. The first picture I tested has a simple title "...".
I use a picture with a title and your code works, and it returns correctly a message

La tua foto 'Punti di vista' ha ricevuto un nuovo commento. Puoi leggerlo al link seguente http://www.fotonicamente.it/Gallery/displayimage.php?pid=5193


thanks again
elena
Title: Re: Email users on new comments
Post by: lurkalot on March 02, 2011, 08:32:22 pm
Andre, thanks.  Tested and working. 

Shame about users not being able to turn them Off / On though..  I don't think I'll be able to use this mod without.  Some members won't want to get emails.

Believe me, if I had a clue about coding a plug then I would in a flash.  I'll see if one of my coder friends can sort this for me, and report back. ;)
Title: Re: Email users on new comments
Post by: Stramm on March 03, 2011, 09:53:47 am
I've ported the modpack version of the notification system some time back. However it's a mod and not a plugin and it's not prepared for posting though. But users can turn on/ off notifications in general and for certain images.

When I'm in coding mood I'll either write some instructions on how to mod your gallery or I'll see if a plugin version will work. But you can't expect from Αndré to code such a featurerich enhancement over night ;)
 
Title: Re: Email users on new comments
Post by: EC on March 03, 2011, 10:27:20 am

Many features of the mod you did for coppermine 1.4... were very useful. The notification also of comments from other users, the private messagging, the avatar...which worked also in bridged gallery.
Are you going to do such a mod also for the latest version of coppermine?
thanks
elena
Title: Re: Email users on new comments
Post by: Stramm on March 03, 2011, 12:45:39 pm
As far as I've seen a user has ported the PM plugin to 1.5. This I've written as a replacement for the modpack version. I do not know if it'll work as I've not tested it so far.

Avatars... some avatar plugin is around there. Therefore I won't spend any time there (again I do not know neither if that plugin is working nor what it's doing exactly).

A 'modpack' I won't do again. Hopefully a good bunch of the features as plugins.
Title: Re: Email users on new comments
Post by: lurkalot on March 03, 2011, 06:41:15 pm

When I'm in coding mood I'll either write some instructions on how to mod your gallery or I'll see if a plugin version will work. But you can't expect from Αndré to code such a featurerich enhancement over night ;)
 

Stramm, thanks that would be great.  A plugin just containing the "Email users on new comments" mod, and a on / off check box, so my members can choose would be fantastic.
Title: Re: Email users on new comments
Post by: EC on March 14, 2011, 10:24:05 am
Is there the possibility to notify also commenters and not only the owner about the discussion/comments posted on a photo?
Thanks a lot
Elena
Title: Re: Email users on new comments
Post by: Αndré on April 29, 2011, 06:36:45 pm
Is there the possibility to notify also commenters and not only the owner about the discussion/comments posted on a photo?
You can say a big 'Thank you' to jmcreis (http://forum.coppermine-gallery.net/index.php?action=profile;u=104498), who was ready to pay to put this modification to the top on my to-do list :)

Replace my first modification with the following code:
Code: [Select]
        $result = cpg_db_query("SELECT filename, title, owner_id FROM {$CONFIG['TABLE_PICTURES']} WHERE pid = $pid LIMIT 1");
        $picture = cpg_db_fetch_rowset($result);
        mysql_free_result($result);
        if ($picture[0]['owner_id'] != USER_ID) {
            $user_id_array[] = $picture[0]['owner_id'];
        }

        $result = cpg_db_query("SELECT author_id FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid = $pid AND author_id != 0");
        while ($row = mysql_fetch_assoc($result)) {
            if ($row['author_id'] != USER_ID) {
                $user_id_array[] = $row['author_id'];
            }
        }
        mysql_free_result($result);

        if (count($user_id_array)) {
            global $cpg_udb;
            $title = $picture[0]['title'] ? $picture[0]['title'] : $picture[0]['filename'];
            $mail_body = "Your picture '$title' has received a new comment. You can see it at " . ' ' . $CONFIG['ecards_more_pic_target'] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $redirect;
            $result = cpg_db_query("SELECT ".$cpg_udb->field['email']." AS user_email FROM ".$cpg_udb->usertable." WHERE ".$cpg_udb->field['user_id']." IN (".implode(', ', $user_id_array).")");
            while ($row = mysql_fetch_assoc($result)) {
                cpg_mail($row['user_email'], $lang_db_input_php['email_comment_subject'], make_clickable($mail_body));
            }
            mysql_free_result($result);
        }
Title: Re: Email users on new comments
Post by: EC on April 29, 2011, 07:13:44 pm
Thanks! Thanks a lot to both. It works fine
Elena
Title: Re: Email users on new comments
Post by: cmfa on May 11, 2011, 03:27:27 pm
hi,

that's what I had in mind for quite a while. Is it possible not only the title but also with the Thumbinal to pass in the e-mail?

CMFA
Title: Re: Email users on new comments
Post by: Αndré on May 14, 2011, 08:27:03 pm
There are 2 possibilities to include the thumbnail:
1.) Attach it to the email
2.) Embed the image in the email (= use it directly from your gallery)


Which one do you prefer? Afaik the ecard function just embeds the image, so maybe we should do it here the same way.
Title: Re: Email users on new comments
Post by: cmfa on May 15, 2011, 02:17:49 pm
hi,

yes, as in the e-card would be good.

VG
Title: Re: Email users on new comments
Post by: cmfa on May 16, 2011, 09:07:40 pm
hi,

Problem is solved for me, I put the following code in between, adding a new entry in the $ mail_body. Now pictures are transmitted. A little tinkering in the appearance ...

Code: [Select]
        $result = cpg_db_query("SELECT url_prefix, filepath, filename, title, caption, pwidth, pheight FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE pid='$pid' $FORBIDDEN_SET");
        $row = mysql_fetch_assoc($result);
        $normal_pic_url = get_pic_url($row, 'normal');
        $gallery_url_prefix = $CONFIG['ecards_more_pic_target']. (substr($CONFIG['ecards_more_pic_target'], -1) == '/' ? '' : '/');
        if (!stristr($normal_pic_url, 'http:')) {
        $normal_pic_url = $gallery_url_prefix . $normal_pic_url;}
        $pic_markup = '<img src="'.$normal_pic_url.'" alt="" vspace="8" border="0" class="image" />';

CMFA
Title: Re: Email users on new comments
Post by: jmcreis on May 17, 2011, 12:06:36 am
If this sends the picture, I do not think is good.
My gallery, for example, has the photos protected by transparent gif to hinder copying.
If the email sends the original ...
What I think that is enough to send the thumbnail as link to the photo in the gallery.
Title: Re: Email users on new comments
Post by: cmfa on May 17, 2011, 08:23:59 pm
hi,
in the e-mail transmission and the watermark is present. Thus, the no problem

cmfa
Title: Re: Email users on new comments
Post by: jmcreis on May 17, 2011, 09:03:44 pm
Thank you for the info
Title: Re: Email users on new comments
Post by: christophg on June 23, 2011, 12:16:04 am
You can say a big 'Thank you' to jmcreis (http://forum.coppermine-gallery.net/index.php?action=profile;u=104498), who was ready to pay to put this modification to the top on my to-do list :)

Replace my first modification with the following code:
Code: [Select]
        $result = cpg_db_query("SELECT filename, title, owner_id FROM {$CONFIG['TABLE_PICTURES']} WHERE pid = $pid LIMIT 1");
        $picture = cpg_db_fetch_rowset($result);
        mysql_free_result($result);
        if ($picture[0]['owner_id'] != USER_ID) {
            $user_id_array[] = $picture[0]['owner_id'];
        }

        $result = cpg_db_query("SELECT author_id FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid = $pid AND author_id != 0");
        while ($row = mysql_fetch_assoc($result)) {
            if ($row['author_id'] != USER_ID) {
                $user_id_array[] = $row['author_id'];
            }
        }
        mysql_free_result($result);

        if (count($user_id_array)) {
            global $cpg_udb;
            $title = $picture[0]['title'] ? $picture[0]['title'] : $picture[0]['filename'];
            $mail_body = "Your picture '$title' has received a new comment. You can see it at " . ' ' . $CONFIG['ecards_more_pic_target'] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $redirect;
            $result = cpg_db_query("SELECT ".$cpg_udb->field['email']." AS user_email FROM ".$cpg_udb->usertable." WHERE ".$cpg_udb->field['user_id']." IN (".implode(', ', $user_id_array).")");
            while ($row = mysql_fetch_assoc($result)) {
                cpg_mail($row['user_email'], $lang_db_input_php['email_comment_subject'], make_clickable($mail_body));
            }
            mysql_free_result($result);
        }

Hello Andre...

First, I am totally new to coppermine and have version 1.5.12 installed...What a phenomenal program. It solved all my photography club needs...!
Secondly, it has been hours spent trying to find a current thread related to sending the owner of a photo an e-mail, after someone makes a commetn on his image...So I am grateful I found this and hopes it is my solution.
Thirdly, I am new to this Forum and hope I am not posting this inquery in the wrong area...If so I apologize in advance.

After reading these threads, it appears that this e-mail notification code has been finalized and resolved, and the person who uploads an image receives an email stating that a comment has been made on his image...?

If so, and if I understand your instructions, I have to locate a file named db_input.php somewhere on my external server and add the last, modified code you supplied...? Do I simply insert the above code in a new line, after I find the initial code...?

What exactly does this final code do...(1) Notify the original author that a comment has been made and (2) notify the person who made the comment that a comment had been made...?

You can see my site here: http://www.grooppa.com/coppermine/index.php?cat=0

Thanks so much in advance...Respectfully...Christoph
Title: Re: Email users on new comments
Post by: lurkalot on June 23, 2011, 12:39:21 am

If so, and if I understand your instructions, I have to locate a file named db_input.php somewhere on my external server and add the last, modified code you supplied...? Do I simply insert the above code in a new line, after I find the initial code...?


Have another read of the thread (Page one), Andre tell you what part of the code to find, and what to add underneath it. ;)


What exactly does this final code do...(1) Notify the original author that a comment has been made and (2) notify the person who made the comment that a comment had been made...?


It will do either 1 or 2 or both.  The first code that Andre posted will  "(1) Notify the original author that a comment has been made."  Read on, and you'll find the next part which adds, "(2) notify the person who made the comment that a comment had been made...?"
 
Title: Re: Email users on new comments
Post by: christophg on June 23, 2011, 12:49:45 am
Hello Lurkalot...

Thanks for your quick reply...
I'm going to go ahead and add the "modified code" which Andre supplied.

I suppose no harm can be done. A simple removal of the code should put Coppermine back into its original condition.
Thanks, I'll give it a try...I will also report back, for the benefit of others.

Christoph
Title: Re: Email users on new comments
Post by: christophg on June 23, 2011, 02:25:18 am
Hello Lurkalot...

I placed the code according to Andre's instructions.
No error messages were received. However, the member of the gallery did not receive a message stating that a comment was made on her image.
I received the normal message from coppermine, which tells me that a comment has been made "on the gallery" (this is the default which I turned on in the coppermine configuration).

The e-mail notification code does not work, or what am I doing wrong...?

Thanks...

Title: Re: Email users on new comments
Post by: Αndré on June 23, 2011, 10:12:52 am
Note that you'll only receive an email, if someone else posts a new comment on your picture.
Title: Re: Email users on new comments
Post by: christophg on June 23, 2011, 04:26:57 pm
Thanks for responding...

Perhaps I don't understand Lurkalot's responses to my questions. Should I have included your first code example, in order for members to receive e-mails...? I inserted your second  "Modified Code" only.

In response to your comment, I placed a comment under another photographer's image, not my own. That photographer did not receive a notice that a comment was made on his image.

Where am I missing this...? Thanks...
Title: Re: Email users on new comments
Post by: Αndré on June 23, 2011, 04:38:39 pm
Please attach your modified db_input.php file as zip file to your next reply.
Title: Re: Email users on new comments
Post by: christophg on June 23, 2011, 04:49:41 pm
Hello Andre...
Thanks for your assistance. Enclosed is zipped modified db_input.php
Title: Re: Email users on new comments
Post by: Αndré on June 23, 2011, 04:59:20 pm
You pasted the code at the wrong location. Undo your change and read carefully where you have to add the code.
Title: Re: Email users on new comments
Post by: christophg on June 23, 2011, 05:12:56 pm
Hello Andrea...

My sincere apology for this error on my part...!
Thanks so much for taking your time to help me with this...I will make correction and test. I should have a response from a photographer within 2 hours and I will respond with the result.

Thanks...Christoph
Title: Re: Email users on new comments
Post by: christophg on June 23, 2011, 07:25:06 pm
Hello Andre...

I have corrected my "placement of code" error and everything is working.
I would like to extend a big gratitude for helping me with this...! It is greatly, greatly appreciated...!

On another note, can the code be modified to replace the "image.jpg" reference in the e-mail with a thumbnail of the image?
In reading through the thread, It appears this has been tried, but never resolved?

Again, my deepest gratitude for your help...!

Christoph
Title: Re: Email users on new comments
Post by: Αndré on June 24, 2011, 09:09:29 am
can the code be modified to replace the "image.jpg" reference in the e-mail with a thumbnail of the image?
In reading through the thread, It appears this has been tried, but never resolved?
I assume you're talking about the code provided by cmfa (http://forum.coppermine-gallery.net/index.php/topic,71072.msg350058.html#msg350058)? If so, just follow his instructions and then find
Code: [Select]
$normal_pic_url = get_pic_url($row, 'normal');and replace with
Code: [Select]
$normal_pic_url = get_pic_url($row, 'thumb');to use the thumbnail instead of the intermediate-sized image.
Title: Re: Email users on new comments
Post by: lurkalot on April 13, 2015, 09:24:40 am
Please try the following. Open db_input.php, find
Code: [Select]
            if ($CONFIG['email_comment_notification'] && !USER_IS_ADMIN ) {
                $mail_body = "<p>" . bb_decode(process_smilies($msg_body, $CONFIG['ecards_more_pic_target'])) . '</p>' . $LINEBREAK .$lang_db_input_php['email_comment_body'] . ' ' . $CONFIG['ecards_more_pic_target'] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $redirect;
                cpg_mail('admin', $lang_db_input_php['email_comment_subject'], make_clickable($mail_body));
            }
and below, add
Code: [Select]
            $result = cpg_db_query("SELECT filename, title, owner_id FROM {$CONFIG['TABLE_PICTURES']} WHERE pid = $pid LIMIT 1");
            $picture = cpg_db_fetch_rowset($result);
            mysql_free_result($result);
            if ($picture[0]['owner_id'] && $picture[0]['owner_id'] != USER_ID) {
                global $cpg_udb;
                $result = cpg_db_query("SELECT ".$cpg_udb->field['username']." AS user_name, ".$cpg_udb->field['email']." AS user_email FROM ".$cpg_udb->usertable." WHERE ".$cpg_udb->field['user_id']." = {$picture[0]['owner_id']} LIMIT 1");
                $owner = cpg_db_fetch_rowset($result);
                mysql_free_result($result);
                $title = $picture[0]['title'] ? $picture[0]['title'] : $picture[0]['filename'];
                $mail_body = "Your picture '$title' has received a new comment. You can see it at " . ' ' . $CONFIG['ecards_more_pic_target'] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $redirect;
                cpg_mail($owner[0]['user_email'], $lang_db_input_php['email_comment_subject'], make_clickable($mail_body));
            }

Andre, has something changed in the latest versions of Coppermine, I can't seem to make this work any more, and users not receiving emails.  Any ideas?
Title: Re: Email users on new comments
Post by: Αndré on April 13, 2015, 10:26:07 am
The code you posted sends an email to the owner of a picture when a new comment has been added. I had a short look at that code and don't see a reason why it shouldn't work.
Title: Re: Re: Email users on new comments
Post by: lurkalot on April 13, 2015, 08:57:42 pm
The code you posted sends an email to the owner of a picture when a new comment has been added. I had a short look at that code and don't see a reason why it shouldn't work.

Andre, thanks.  I finally got around to upgrading to 1.5.34 and obviously had to add the code again.  But can't get it to work whatsoever. I've done the edit, and redone it to make sure, but nope, still won't work. It was working before I upgraded though, hence my question. ;)
Title: Re: Email users on new comments
Post by: gmc on April 14, 2015, 01:00:37 am
Nothing jumping out at me either...
On my list to do something in this area - if someone can beat me to it....
I had a plugin call added here in 1.5.28:
Code: [Select]
        CPGPluginAPI::action('comment_add', array('msg_id' => cpg_db_last_insert_id(), 'pid' => $pid, 'msg_author' => $msg_author, 'author_id' => USER_ID, 'msg_body' => $msg_body, 'approval' => $app));
for just this function.  I used code based on this thread (variation of André and cmfa's input from this thread and from some other comments) in another members gallery - and intended to convert to plugin for future use by others.
Just haven't had the time to work on the plugin yet.... Best laid plans.

Greg
Title: Re: Re: Email users on new comments
Post by: lurkalot on April 14, 2015, 01:47:38 am
Nothing jumping out at me either...
On my list to do something in this area - if someone can beat me to it....
I had a plugin call added here in 1.5.28:
Code: [Select]
        CPGPluginAPI::action('comment_add', array('msg_id' => cpg_db_last_insert_id(), 'pid' => $pid, 'msg_author' => $msg_author, 'author_id' => USER_ID, 'msg_body' => $msg_body, 'approval' => $app));
for just this function.  I used code based on this thread (variation of André and cmfa's input from this thread and from some other comments) in another members gallery - and intended to convert to plugin for future use by others.
Just haven't had the time to work on the plugin yet.... Best laid plans.

Greg

Thanks Greg. A plugin would be fantastic tbh, I wish I could code one myself, but I haven't a clue.  I'm now wondering if the problem is with my site or host settings rather than Coppermine.  I'm still checking that out.
Title: Re: Email users on new comments
Post by: gmc on April 14, 2015, 08:12:22 pm
I'll take a look at making a plugin for this...

The one feature - that I agree would be nice - but I need some suggestions on how - is individual users being able to opt in/out...
Pretty simple in a standalone gallery - but an issue in bridged gallery (no control over the user table format... or ability to add columns) - and doesn't work well in a user's cookies - because that isn't the current user when sending the email.
(and lurkalot - I know you use the SMF bridge for at least some of your galleries...)
Anyone know how this has been approached for other features, or have any suggestions?

Otherwise was looking a few config variables:
 - send email to picture owner (if comment isn't by owner)
 - send email to others that commented on the same picture
 - send thumbnail (embedded link) with the email
 - custom email text to override default

And two plugin actions called by Plugin API:
in db_input.php - 'comment_add'
in reviewcom.php - 'comment_approve'

So email will be sent when comment is added (if no approval needed) - or when comment is approved.

Any other thoughts/comments?
Title: Re: Re: Email users on new comments
Post by: lurkalot on April 15, 2015, 09:42:05 am
I'll take a look at making a plugin for this...

The one feature - that I agree would be nice - but I need some suggestions on how - is individual users being able to opt in/out...
Pretty simple in a standalone gallery - but an issue in bridged gallery (no control over the user table format... or ability to add columns) - and doesn't work well in a user's cookies - because that isn't the current user when sending the email.
(and lurkalot - I know you use the SMF bridge for at least some of your galleries...)
Anyone know how this has been approached for other features, or have any suggestions?

Otherwise was looking a few config variables:
 - send email to picture owner (if comment isn't by owner)
 - send email to others that commented on the same picture
 - send thumbnail (embedded link) with the email
 - custom email text to override default

And two plugin actions called by Plugin API:
in db_input.php - 'comment_add'
in reviewcom.php - 'comment_approve'

So email will be sent when comment is added (if no approval needed) - or when comment is approved.

Any other thoughts/comments?

gmc, I think you've got the feature list about covered.  Yes all my installs are bridged, but I don't personally need any control to turn it on / off if it's built as a plugin, as I could just uninstall it if need to turn the emails off.  Also I'm not too bothered about giving individual members this switch either. Although if it could be done it would be great.

I think if this was built in as core though, it would need a on / off switch, as some might not want to use it.
Title: Re: Email users on new comments
Post by: gmc on April 17, 2015, 02:57:19 am
We have a bouncing baby plugin...  :)
See announcement thread here: http://forum.coppermine-gallery.net/index.php/topic,78163.0.html (http://forum.coppermine-gallery.net/index.php/topic,78163.0.html)
and happy commenting!

CPG 1.5.28 or higher required... the plugin points needed were added in that release.  Tested thru 1.5.34 - the now current release.

Greg
Title: Re: Email users on new comments
Post by: lurkalot on April 17, 2015, 07:40:17 am
Greg, thank you.   8) I'll give it a try now.  I'm assuming I'll have to remove the existing edit I made to the db_input.php file?
Title: Re: Email users on new comments
Post by: Αndré on April 17, 2015, 09:30:34 am
I'm assuming I'll have to remove the existing edit I made to the db_input.php file?

They're not needed anymore. Actually, if the mod would work as expected in your gallery, you should get each email twice with the mod and plugin enabled.

Thanks for creating the plugin, Greg!
Title: Re: Re: Email users on new comments
Post by: lurkalot on April 17, 2015, 06:45:54 pm
They're not needed anymore. Actually, if the mod would work as expected in your gallery, you should get each email twice with the mod and plugin enabled.

Thanks for creating the plugin, Greg!

Andre, thanks. I actually replaced the file with a fresh one before installing the plugin just in case.  Greg did a good job on this, I'm really happy with it.  ;)