I saw a post somewhere that said you Stramm had created a mod that allows the members to upload their photos in the gallery and THEY get email notifications saying that someone commented on it?
I have looked and looked and cannot find it?
I had copied this down? Is this the mod? If so where do I find the download for it? If this is not it can someone please point me in the right direction so I can get this installed for the members.
Thanks
Frankie
($CONFIG['email_comment_notification'] && !USER_IS_ADMIN ) {
$mail_body = "<p>" . bb_decode(process_smilies($msg_body, $CONFIG['ecards_more_pic_target'])) . "</p>\n\r ".$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 then do I replace it with this?? or add this somewhere in it lol Sorry I AM SO NEW at this
// send an email to the owner of the picture
$result = db_query("SELECT user_name,user_email FROM {$CONFIG['TABLE_PICTURES']} AS p, {$CONFIG['TABLE_USERS']} AS u WHERE u.user_id=p.owner_id and p.pid=".$pid);
if (mysql_num_rows($result)) {
$picture_owner_data = mysql_fetch_array($result);
$subject = "New GJPix Comment by ".USER_NAME;
$mail_body = "Hi ".$user_name."!\n\n".USER_NAME." just wrote a comment on one of your photos, click the link below to read and reply to it.\n";
$mail_body .= "
http://gallery.greatestjournal.com/displayimage.php?pos=-".$pid;
cpg_mail($picture_owner_data['user_email'], $subject, $mail_body, 'text/plain', "GJPix", 'dontreply@yourdomain.com');
}