Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Done]: Needed: Email notify for users on new comments  (Read 12076 times)

0 Members and 1 Guest are viewing this topic.

jmcreis

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
[Done]: Needed: Email notify for users on new comments
« on: February 03, 2011, 12:43:46 pm »

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

Version 1.5.12
Paypal
« Last Edit: February 08, 2011, 06:46:11 pm by Αndré »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Needed: Email notify for users on new comments
« Reply #1 on: February 03, 2011, 01:34:43 pm »

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.
Logged

jmcreis

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
Re: Needed: Email notify for users on new comments
« Reply #2 on: February 03, 2011, 02:35:44 pm »

@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

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Needed: Email notify for users on new comments
« Reply #3 on: February 03, 2011, 02:48:18 pm »

PM with my email address sent.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Needed: Email notify for users on new comments
« Reply #4 on: February 08, 2011, 06:45:32 pm »

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

jmcreis

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
Re: [Done]: Needed: Email notify for users on new comments
« Reply #5 on: February 08, 2011, 07:40:41 pm »

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.
Logged

EC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
    • Fotonicamente
Re: [Done]: Needed: Email notify for users on new comments
« Reply #6 on: March 01, 2011, 06:45:13 pm »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: [Done]: Needed: Email notify for users on new comments
« Reply #7 on: March 01, 2011, 07:16:42 pm »

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

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) {
                $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));
            }
Logged

EC

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
    • Fotonicamente
Re: [Done]: Needed: Email notify for users on new comments
« Reply #8 on: March 01, 2011, 09:53:48 pm »

thanks. I will try.
elena
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: [Done]: Needed: Email notify for users on new comments
« Reply #9 on: March 14, 2011, 12:21:54 pm »

Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.