By JV on Tuesday, 14 November 2017
Posted in General Issues
Replies 3
Likes 0
Views 1K
Votes 0
In Komento admin I have maximum comment length set to 8000 characters. When someone posts a comment that is very long, the email notification that is sent contains the entire comment. First of all, that makes the email text very long. And secondly, because the entire text of the comment is in the email, it is not necessary for the recipient to go to the website to read the rest of the text... It would be better if they had to go to the website!

Is there a setting that will truncate the text in the email notification and add a "Read More" link or something similar to the email?

Thanks.
Hi JV,

Unfortunately, there is no setting to truncate comment text in email. However, you can customize it in the folder:
.../components/com_komento/themes/wireframe/emails/comment.new.php
and change the code below:
[gist type="php"]
<?php echo $commentContent; ?>
[/gist]
to:
[gist type="php"]
<?php echo substr($commentContent,0,250); echo "..."; ?>
[/gist]
line 48 (you may change the '250' into your specific length)

You're suggested to backup the file that you want to customize beforehand for precaution
·
Tuesday, 14 November 2017 13:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Okay, thanks!
jv
JV
·
Tuesday, 14 November 2017 22:38
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome JV
·
Wednesday, 15 November 2017 06:06
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post