YAFLogo

mg1979
  • mg1979
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
I would like to change the text that comes across in the email notification when a new post is made.

the email currently looks like this

Quote:

A new message has been posted in the thread {name of thread}

To read the message, open the following link in your browser:

{link to thread}



is there a file i can edit to change or add additional text to this email.

(currently using yaf 1.9.4)
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
11 years ago
Originally Posted by: mg1979 

I would like to change the text that comes across in the email notification when a new post is made.

the email currently looks like this

Quote:

A new message has been posted in the thread {name of thread}

To read the message, open the following link in your browser:

{link to thread}



is there a file i can edit to change or add additional text to this email.

(currently using yaf 1.9.4)



The text for the email templates is stored in the language files (languages/english.xml)

<Resource tag="TOPICPOST_TEXT">
There's a new post in topic "{topic}" at {forumname}:

By {postedby}: 
"{bodytruncated}"

To read more, click or copy and paste the following link into your browser:

{link}
</Resource>
mg1979
  • mg1979
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
are {postedby} and {bodytruncated} tags that i can use?

i have added those two tags to the email notification text but they dont show the authors name in the email or any of the text from their post. (they only show up as {postedby} and {bodytruncated})
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
11 years ago
Originally Posted by: mg1979 

are {postedby} and {bodytruncated} tags that i can use?

i have added those two tags to the email notification text but they dont show the authors name in the email or any of the text from their post. (they only show up as {postedby} and {bodytruncated})



No sorry i copied the template from the latest version, if it does not work in your version you need to upgrade. Or modify the source code.
mg1979
  • mg1979
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
thanks, i will give the update a shot and post back
mg1979
  • mg1979
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
the upgrade went well. everything is now on the latest version.

however, email notifications for new posts are not coming through email. (email test during the upgrade worked, and i also am getting email notifications when sending PMs) not sure why email notifications of new posts arent coming in.
mg1979
  • mg1979
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
I have it figured out.

with the upgrade the email notification option in a user profile defaults to "turn off notifications"

once that was switched back on the email alerts are coming through and with the updated text that i wanted from the original question. thanks for the help.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button