FREE Get a FREE template when you purchase Social bundle 🚀 ⚡️

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Add Post Title to body emails

Thora · ·
11:22 PM Thursday, 18 January 2018
Normal
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
The replies under this section are restricted to logged in users or users with an active subscription with us