![]() |
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 |
Sounds interesting... Anything for get the members back :D
|
Nice hack thanks, I'll try it. Does it strip vB code? If not, can you please add that feature.
Thanks |
Hey there,
Quote:
Regards, Logician |
Logician,
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) { |
Quote:
Find: PHP Code:
PHP Code:
PHP Code:
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 didnt test this but it should work.. Enjoy.. :) Logician |
Logician,
Thank you, that worked flawlessly! :cool: 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. - djr |
Does this work with 2.2.6??
|
yep, got 2.2.6 installed myself
|
Logician ... Thanks man.
|
Great hack, Logician. Thanks!
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. This will make a lot of people very happy. Cheers! |
Hai there,
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. Can you help me? |
Installed it on 2.3.0 - waiting for first email reply to check its working. ;)
However, install instructions were straightforward enough and there were no code differences to be concerned with. |
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. ;)
|
Great hack . . .The only problem I have is now there is no subject in the emails. . .
|
Quote:
I'd say uninstall it, make sure your default vb notifications has subjects, then reapply (carefully!) ;) Ps. You look "unlicensed" here, please check your email address you use here in vbulletin.com and make sure it is authorized in members section of vbulletin.com. Thanks.. |
Will do and I added my email to VB.com
THanks. . . :bunny: |
Found it it wasn;t anything you did I was a error in VB
http://www.vbulletin.com/forum/showt...threadid=68750 Thanks! |
ok glad you find the culprit and thx for sharing here too..
|
Quote:
Code:
$string = preg_replace( '~<[^\]]*>~' , '' , $string ); Let me know what you think. :) |
Quote:
|
Quote:
Thanks for posting the solution |
Quote:
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 ); and on and on... |
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!
Thanx! |
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 |
Quote:
http://www.vbulletin.com/forum/showt...threadid=68750 |
Thanks for the help. I read this whole thread twice, but never saw this info.
|
if U have an a html mail notify
to interprate the vbcodes remplace PHP Code:
PHP Code:
To send a html notify mail This hack: https://vborg.vbsupport.ru/showthrea...104#post435104 |
Is there a way or a hack to do this for PM's so the PM will be sent with the email alert?
|
Hi,
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. |
Quote:
|
That's the weird thing, all e-mails that are send out Logician, do you have an idea what could be the cause of that?
|
Shall I e-mail you the admin/functions.php if you want to take a look at it?
Here's an example how a notify e-mail looks like in my mailbox: Hello Housequake, sowtob has just replied to a thread you have subscribed to entitled - Cosmic day???? - in the Trading/Discussion forum of Forum Home. Here is a small part of the reply: ---------------------------------------------------- He's back today or tomorrow I think.... ---------------------------------------------------- This thread is located at: http://www.housequake.com/forum/show...3&goto=newpost There may be other replies also, but you will not receive any more notifications until you visit the board again. Yours, Housequake.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unsubscription information: To unsubscribe from this thread, please visit this page: http://www.housequake.com/forum/memb...threadid=15893 To unsubscribe from ALL threads, please visit this page: http://www.housequake.com/forum/memb...type=allthread |
If all emails are like this, how can this be related to this hack? ^^ Have you checked email templates and confirmed that they are good in terms of line breaks?
|
I even triple checked my templates Logician, could it be something server side?
All templates seem to be stored without linebreaks automatically somehow. |
Quote:
http://www.vbulletin.com/forum/showthread.php?t=25810 |
Yes! I did Logician, thanks for this link (otherwise i would have never found it) :-)
|
Hi,
Great Hack, big thxx, ist works....*click install* |
Quote:
I have installed this hack onto my test board which is on my laptop using XP, and have seen that this problem occurs on windows servers, however my live site is on a Linux server, so will everything just translate across without any problems? ie will the line breaks be enforced, unlike when they are on Windows servers? |
I'm using the hack both in linux and windows servers just fine.
|
All times are GMT. The time now is 05:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|