Code: Select all
$text = stripslashes(trim($text));
Code: Select all
$text = substr($text, 0, 255);
I just thought I 'd add in this variation on Ken's suggested solution...Martin Day wrote:Thanks Ken - This was just the kind of help I was hoping for. I am having trouble getting my test board to push out emails at present, but when I can get to do some tests, I'll let you know how it went.
Code: Select all
$text = stripslashes(trim($text));
Code: Select all
// Truncate message text in email
if (strlen($text) > 200)
{
$tobecont = '... [click on the link above to read more]';
$text = substr($text, 0, 200).$tobecont;
}
// end of Truncate message text in email
Code: Select all
Hello {USERNAME}, the forum "{FORUM_NAME}" at "{SITENAME}" has received a new reply since your last visit. You can view the forum by clicking on the following link: {U_FORUM}
Code: Select all
Hello {USERNAME}, the forum "{FORUM_NAME}" at "{SITENAME}" has received a new reply since your last visit. You can view the topic by clicking on the following link: {U_NEWEST_POST}
Code: Select all
Hello {USERNAME}, the forum "{FORUM_NAME}" at "{SITENAME}" has received a new topic since your last visit. You can view the forum by clicking on the following link: {U_FORUM}
Code: Select all
Hello {USERNAME}, the forum "{FORUM_NAME}" at "{SITENAME}" has received a new topic since your last visit. You can view the Topic by clicking on the following link: {U_NEWEST_POST}
Great work and many thanksprimehalo wrote:It has been approved: http://www.phpbb.com/customise/db/mod/prime_notify/