coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Ron on November 19, 2003, 03:17:38 PM

Title: Mail message on new comment
Post by: Ron on November 19, 2003, 03:17:38 PM
In the db_input.php file there is a new option for a mail message to be sent when a new comment is added. How do I enable this, there is no config setting for it right now.
Title: Mail message on new comment
Post by: Nibbler on November 19, 2003, 03:45:34 PM
Simplest way would be to remove the if condition  :D
Title: Mail message on new comment
Post by: Ron on November 19, 2003, 04:34:42 PM
Thats right, but there was supposed to be option in the config menu!
Title: Mail message on new comment
Post by: Joachim Müller on November 19, 2003, 05:56:41 PM
try switching the language to english and see if it turns up in the config screen. If yes, it isn't in the dutch language file.

GauGau
Title: Mail message on new comment
Post by: Nibbler on November 19, 2003, 06:14:27 PM
Add it yourself-

Add row to config table containing:

name :  email_comment_notification
value: 1

And add into your language file:

array('Send mail on new comment', 'email_comment_notification', 1),

inside the $lang_config_data in whichever section of the options you want it in.

(Check your spam folder before you complain it doesnt work :wink: )
Title: Mail message on new comment
Post by: Ron on November 19, 2003, 09:36:03 PM
It isn't in the english language file either!

So it is not my fault  :D

This feature is added After the beta testing!
Title: Mail message on new comment
Post by: Ron on November 19, 2003, 09:59:56 PM
There is a difference between what is in the database and what db_input is refering to.

in the database there is a field : comment_email_notification

in db_input.php it is called email_comment_notification.

The easiest way is to change this in the db_input.php file.

I have added this to my dutch.php file. and can be downloaded from my website. www.ronbos.nl/download

Ron.
Title: Mail message on new comment
Post by: Nibbler on November 19, 2003, 10:06:08 PM
Didn't notice that  :)
Title: Mail message on new comment
Post by: Ron on November 19, 2003, 10:10:50 PM
also the redirect is flawed, it goes to the root of the website, not the coppermine page.

AND the $lang_db_input_php['email_comment_subject'] entry is missing in the language files

I have update the dutch file again. :D
Title: Mail message on new comment
Post by: Tarique Sani on November 20, 2003, 03:52:52 AM
I think files are mixed up some how.

Mail comment is not supposed to be a 1.2 feature....
Title: Mail message on new comment
Post by: Joachim Müller on November 20, 2003, 07:08:57 AM
yes, and possibly I'm to blame :oops:
I'll try to sort this out later today...

GauGau
Title: Mail message on new comment
Post by: Ron on November 20, 2003, 07:43:33 AM
If this feature is going to be removed for now, then please let me know, I'll remove it then from the dutch downloadable file, on my site.
Title: Mail message on new comment
Post by: Joachim Müller on November 20, 2003, 08:00:36 AM
yes, it's gonna be removed: it's supposed to be in the next version (1.3.0?), not in the current release 1.2.0final.

GauGau
Title: Mail message on new comment
Post by: Ron on November 20, 2003, 08:54:58 AM
Ok, I will remove the lines from the dutch language file, tonight.

Removed the "comment" bits from the dutchlanguage file again.