So when a member gets an PM on the site, the notification they receive in their personal email does not tell them the contents. You just want it to say, "Site PM received, login to read" instead.
Do I have that right?
i may have found where it loads the text but i have not found the text. Also i have not tested this. And i am not 100% sure but it looks plausable.
ow_plugins/notifications/bol/service.php
inside of this function
private function sendProcess
try
{
$mail = OW::getMailer()->createMail()
->addRecipientEmail($email)
->setTextContent($txt)
->setHtmlContent($html)
->setSubject($subject);
OW::getMailer()->send($mail);
i guess you could do a test and say $testtxt = "hello"; $testhtml = "hello"; and then replace the $txt and $html with the other vars an see what happens. If you get hello in your notification then you know you found the right place and you can make the text what you want.
But as always changing the core is not recommended. My lawyer made me say that LMAO
i may have found where it loads the text but i have not found the text. Also i have not tested this. And i am not 100% sure but it looks plausable.
ow_plugins/notifications/bol/service.php
inside of this function
private function sendProcess
try
{
$mail = OW::getMailer()->createMail()
->addRecipientEmail($email)
->setTextContent($txt)
->setHtmlContent($html)
->setSubject($subject);OW::getMailer()->send($mail);
i guess you could do a test and say $testtxt = "hello"; $testhtml = "hello"; and then replace the $txt and $html with the other vars an see what happens. If you get hello in your notification then you know you found the right place and you can make the text what you want.
But as always changing the core is not recommended. My lawyer made me say that LMAO
If you want to remove the message body from email notifications, open ow_plugins/notifications/components/notification.php
Find this line:
$data['content'] = empty($data['content']) ? '' : UTIL_String::truncate($data['content'], 140, '...');
Replace with:
$data['content'] = null;