By Judee Island on Wednesday, 28 September 2022
Posted in Komento
Likes 0
Views 612
Votes 0
Hello,
Where can I edit the text that is displayed in the email notifications when a user adds a comment?

For example, it says

This is a notification to inform you that a new comment is posted on the site.

1. It does not list my site name, how can I add my site name instead of the word site?
2. This is integrated with Joomla Articles. How can I add it to say which article title the comment was made? It shows in the subject line in parentheses but I would also like it added to this line above.
3. I would like to edit this line to say something else, where is this text stored?
4. I would like to edit the subject line, where is this text stored?
5. It also lists the date as follows 27 September 2022, I would like it to list it September 27, 2022, where can I change that?

Thank you!
Hey Judee,
in the email that is sent to subscriber when new comment is posted, can I add the time next to the date?
To achieve that, these are your only options currently:
- append timestamp at the end of DATE_FORMAT_LC3.
- modify core files(not protected from update) so that the system uses a format other than DATE_FORMAT_LC3.
·
Thursday, 29 September 2022 13:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Judee,
1. It does not list my site name, how can I add my site name instead of the word site?
You would have to create language override the following translation to change the 'site'.

COM_KT_EMAILS_NEW_COMMENT_CONTENT="This is a notification to inform you that a new comment is posted on the site."
2. This is integrated with Joomla Articles. How can I add it to say which article title the comment was made? It shows in the subject line in parentheses but I would also like it added to this line above.
You can use the $contentTitle variable to get the article title. Refer screenshot 1. The file can be overridden here: ../administrator/index.php?option=com_komento&view=mailq&layout=editfile&file=%2Fcomment.new.php
3. I would like to edit this line to say something else, where is this text stored?
Refer answer from 1.
4. I would like to edit the subject line, where is this text stored?
This is the language constant for the subject.

COM_KOMENTO_NOTIFICATION_NEW_COMMENT_SUBJECT="New comment posted on the site"
5. It also lists the date as follows 27 September 2022, I would like it to list it September 27, 2022, where can I change that?
This is the translation for the date which you can override. d=date, F=month. Do note that the override will take effect on all places that uses this translation.

DATE_FORMAT_LC3="d F Y"
·
Wednesday, 28 September 2022 15:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, thank you, I got it.
One last thing, in the email that is sent to subscriber when new comment is posted, can I add the time next to the date?
I created an override DATE_FORMAT_LC3="F d, Y", I didn't want to append the timestamp here because I don't want that to be added everywhere else on the site as you said
Do note that the override will take effect on all places that uses this translation.


If possible I would like it to be D, M j, Y g:ia just for the email.

Thank you
·
Thursday, 29 September 2022 03:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you!
·
Friday, 07 October 2022 03:24
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome Judee.

Regards.
·
Friday, 07 October 2022 10:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post