Version: 1.00, by Logician
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 02-08-2002
Last Update: Never
Installs: 34
No support by the author.
Hiyas,
I dont like static email notifications and fancy coloring them up a bit. So this hack is one way to do it. (If I can spare time, more is likely to follow)
This hack simply sends a small portion of user's reply to thread subscribers in their notification mail. It's also possible to send the whole reply, but I dont suggest this, because if they read it all, they wont visit the original thread. But just giving a hint and sending a few lines can be provoking to get them to your board ASAP.
It's an easy to install hack and you can easily customize it by choosing how many characters of the reply will be sent to the members.
I use this hack in V.2.2.2 and havent noticed any problems. Please report bugs in this thread..
Enjoy! \\=^))
Regards,
Logician
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by dost Does it strip vB code? If not, can you please add that feature.
Striping the VB code feature is not very easy to add. I am adding other hacks to my board at the moment (and sharing them here) and if can find time for your request, I'll let you know..
Great hack! Very helpful to keep the users visiting the forums.
A question though: one of my mods is restricted to surf the web at his work, but is able to receive e-mail.
I want to enable full message posting for him, but limited to 50 chars for all other visitors.
I've tried the following code in newreply.php, but to no avail:
Code:
if ($visible) {
if ($bbuserinfo[userid]==xxx) {
// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
$logic_mes_sum= $message;
} else {
$logic_mes_sum= substr($message, 0, 50)."... ";
}
// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
sendnotification ($threadinfo['threadid'], $bbuserinfo['userid'], 0);
}
How can I enable full extracts for this specific user, but limited extracts for all others?
Now add a new template named email_notify_special, the content is same with email_notify template, just one modification:
Replace $logic_mes_sum as $message in the new template.
I had ofcourse reverted all my changes to your hack, because it gave me some errors. With this update the whole contents of the reply is sent by e-mail (tested on myself).
Again, great hack and great update! Thank you for quick reponse.
Our new group comes from another that's been around for years where some of us read online, but many subscribe to what's posted by way of a mailing list.
I want to use your hack but I need it for this:
My sub-forum is called UPDATES so whenever I make a new thread (and a new posting is made automatically of course) I want to have the message contents in my e-mailmoderator template. Your hack does not work all the way because in creating the thread it does not see the message contents. It works but only when you add a second posting in that thread.
Sinan, did you ever find the time to come up with the code to strip out vbcode in the message? vb 3.0 has that feature and it would be good to have it for those of us who aren't going to upgrade right away.