Editing e-mail notifications, where?
I'm looking for the PHP file which is used to send the e-mail notifications to the users when a new comment is made or a new discussion is started. I'd like to edit the notification text to exclude the comment itself, and keep just the link to the forum.
Anyone who can point me to where and in which file this is coded?
Best Answer
-
hgtonight MVP
In Vanilla 2.0.18.8 you should be able to use the following definition to prevent the story from showing up:
$Definition['EmailStoryNotification'] = '%1$s Follow the link below to check it out: %2$s Have a great day!';
I found this information by searching for
Email
on all files. Which lead me toclass.activitymodel.php
line 555. Since I was familiar with php's sprintf() method and vanilla's T() method I knew we could solve this with a locale definition.Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
10
Answers
asfasfasfasfasfs
In Vanilla 2.0.18.8 you should be able to use the following definition to prevent the story from showing up:
I found this information by searching for
Email
on all files. Which lead me toclass.activitymodel.php
line 555. Since I was familiar with php's sprintf() method and vanilla's T() method I knew we could solve this with a locale definition.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.