[Done]: Needed: Email notify for users on new comments [Done]: Needed: Email notify for users on new 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

[Done]: Needed: Email notify for users on new comments

Started by jmcreis, February 03, 2011, 12:43:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmcreis

1 - I need that my users receive an email notification on new comments on their photos.

Version 1.5.12
Paypal

Αndré

Quote from: Joachim Müller on July 22, 2004, 10:32:01 AM
Details needed
It's advisable to post the budget you're ready to spend, the time schedule you have in mind and as many details as possible on the customization you need - a link to your page is mandatory.
Depending on that information I may be ready to create a plugin or mod for you.

jmcreis

@André

In my country the price and time is done by the vendor LOL

BDW I need others modifications and we can arrange that also.
I trust you André

If you want please send me a PM ... or enter in my gallery...
You dont need register.
In the last line of the home page, just at the very end, you have a link for email to me.
Greetings


Αndré


Αndré

The job has been completed. I can recommend jmcreis as contract partner, as he has payed very quick.

jmcreis

Thanks André
Your work was of great use to me. You were more than a mere service provider. You are a friend.
I have no hesitation in recommending you and your work.

EC

? is there a mod to apply to the latest coppermine version to have this functionality available?
Thanks
e.

Αndré

Here's the mod that I created for jmcreis. Please don't ask for support in this thread.

Open db_input.php, find
            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
            $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) {
                $result = cpg_db_query("SELECT user_name, user_email FROM {$CONFIG['TABLE_USERS']} WHERE 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));
            }

EC


Αndré