By Thora on Thursday, 18 January 2018
Posted in General Issues
Likes 0
Views 1.1K
Votes 0
Hello,

I'm trying to customize the emails for people who have subscribed to new comments, replies, and the confirm subscription emails. I have found most of the settings and language customization. However, I cannot find where and how to add the name of the post into the body of the email. I would also like to alter the way the title is displayed in the subject line.

I am not a php coder, so I don't know how to track down this info.

This is how I would like it to display:

NAME posted a new comment on the post POST TITLE

So far, I have this part working:
NAME posted a new comment on the post

But I don't know how to add the Post Title, with bolding added.

This is the coding from the Template Editor, for the modified "comment.new.php" template:


<td class="mobile" style="font-family:arial, sans-serif; font-size:22px; line-height:32px;color:#171a17; ">
<?php echo JText::sprintf('COM_KOMENTO_EMAILS_NEW_HEADING', ucfirst($commentAuthorName));?>
</td>


This is the coding from the Template Editor, for the modified "comment.reply.php" template:


<td class="mobile" style="font-family:arial, sans-serif; font-size:22px; line-height:32px;color:#171a17; ">
<?php echo JText::sprintf('COM_KOMENTO_EMAILS_REPLY_HEADING', ucfirst($commentAuthorName));?>
</td>


I will want to do a similar thing in the "subscription.confirm.php". If it is a similar process, then once I know how to add it in the above templates, I'll be able to figure it out for this template as well.

The other thing I would like to customize is the Subject lines on these 3 emails.

I have found the way to customize the first part, via the language override. But I would like to change the way the title of the Post is. Currently, the Post Title shows with brackets around it. I would like to remove the brackets.

This is how it is currently showing:

New comment on post - (POST TITLE)

I would like it to display like this:

New comment on post - POST TITLE

--
Thank you.
Thora
Hi Thora,

You actually can use the code below to get the title of the content:

<?php echo $data['contentTitle']; ?>


and for removing the bracket you can customize in the file:
/administrator/components/com_komento/includes/notification/notification.php
http://take.ms/M8AM8
·
Friday, 19 January 2018 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Muhammad,

Thank you. That worked great!

Thora
·
Sunday, 21 January 2018 05:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Sunday, 21 January 2018 12:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post