forum.coppermine-gallery.net

Support => Looking for Freelancers / Paid help => Topic started by: jmcreis on February 03, 2011, 12:43:46 pm

Title: [Done]: Needed: Email notify for users on new comments
Post by: jmcreis 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
Title: Re: Needed: Email notify for users on new comments
Post by: Αndré 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.
Title: Re: Needed: Email notify for users on new comments
Post by: jmcreis 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

Title: Re: Needed: Email notify for users on new comments
Post by: Αndré on February 03, 2011, 02:48:18 pm
PM with my email address sent.
Title: Re: Needed: Email notify for users on new comments
Post by: Αndré 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.
Title: Re: [Done]: Needed: Email notify for users on new comments
Post by: jmcreis 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.
Title: Re: [Done]: Needed: Email notify for users on new comments
Post by: EC 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.
Title: Re: [Done]: Needed: Email notify for users on new comments
Post by: Αndré 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));
            }
Title: Re: [Done]: Needed: Email notify for users on new comments
Post by: EC on March 01, 2011, 09:53:48 pm
thanks. I will try.
elena
Title: Re: [Done]: Needed: Email notify for users on new comments
Post by: Αndré on March 14, 2011, 12:21:54 pm
Further development of the mod: http://forum.coppermine-gallery.net/index.php/topic,71072.0.html