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.
Yesterday at 06:51 PM Logician said this in Post #21 Does it? I dont think so.. Have you tested it?
I did not test it... but if my logic is good, that code will remove all bbcode from the content.
Basically removes everything in between [ brackets.
You can start working from there... to adjust it onto your hack.
Example, the code:
$string = preg_replace( '~<[^\]]*>~' , '' , $string );
can be also written as:
$string = preg_replace( '~[high]\[[/high][^\]]*[high]\][/high]~' , '' , $string );
sorry... i didn`t understand any worl u said... just wonderin` how to make it work on 2.3.0 couse in admin/functions.php avarything changed now with email function... i`m bad in PHP so help me please just run that great hack on!
This is very strange, not probably related to this HACK, but I can't get it installed because of it. First off, I only have 3 hacks installed on my site, and non that have anything to do with notifications.
I am losing the Subject in the email when I install this hack. I agree that it makes no sense for this to happen, because we don't touch that code, and the templates are separate. What I've narrowed it down to, is the email_notify template. If I change that template from the default, it loses the subject. I tried totally removing the hack, and just changing the email_notify template to add some text, and the subject was gone. I reverted to original, and it came back. This makes no sense. Anyone else run into this. I'm on 2.3.0
Today at 10:45 PM mccollin said this in Post #25 This is very strange, not probably related to this HACK, but I can't get it installed because of it. First off, I only have 3 hacks installed on my site, and non that have anything to do with notifications.
I am losing the Subject in the email when I install this hack. I agree that it makes no sense for this to happen, because we don't touch that code, and the templates are separate. What I've narrowed it down to, is the email_notify template. If I change that template from the default, it loses the subject. I tried totally removing the hack, and just changing the email_notify template to add some text, and the subject was gone. I reverted to original, and it came back. This makes no sense. Anyone else run into this. I'm on 2.3.0
if ($visible) {
// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
$logic_mes_sum= substr($message, 0, 50)."...";
// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
sendnotification ($threadinfo['threadid'], $bbuserinfo['userid'], 0);
}
For this
PHP Code:
// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
$logic_mes_sum= $message=bbcodeparse2($message,0,1,1,1);
// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
sendnotification ($threadinfo['threadid'], $bbuserinfo['userid'], 0);
}
I moved my forum to a new server but suddenly i have a strange but annoying problem. Whenver someone subscribes to thread, the e-mail he gets sent looks terrible because it lacks linebreaks, i double checked if this hack isn't properly installed, but that's not the case. Anyone have a clue what could be the problem?
Btw all e-mails sent out misses linebreaks (br's) very weird.