Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

Comments
  #22  
Old 04-14-2003, 04:57 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 06:57 PM TECK said this in Post #20
Logician, you could try something like this:
Code:
$string = preg_replace( '~<[^\]]*>~' , '' , $string );
$string = str_replace( '"' , '' , $string );
That should take care of all your BB Code...
Let me know what you think.
Does it? I dont think so.. Have you tested it?
Reply With Quote
  #23  
Old 04-15-2003, 01:12 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:13 AM ryancooper said this in Post #18
Found it it wasn;t anything you did I was a error in VB

http://www.vbulletin.com/forum/showt...threadid=68750

Thanks!
PHEW!! Had me worried there for a minuite..... I had the same problem, fixed now.

Thanks for posting the solution
Reply With Quote
  #24  
Old 04-15-2003, 03:19 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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 );

and on and on...
Reply With Quote
  #25  
Old 05-10-2003, 10:27 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #26  
Old 08-25-2003, 08:45 PM
mccollin mccollin is offline
 
Join Date: Jul 2003
Location: North Carolina, USA
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 08-25-2003, 08:54 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Best to read the thread before posting
http://www.vbulletin.com/forum/showt...threadid=68750
Reply With Quote
  #28  
Old 08-26-2003, 12:38 PM
mccollin mccollin is offline
 
Join Date: Jul 2003
Location: North Carolina, USA
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help. I read this whole thread twice, but never saw this info.
Reply With Quote
  #29  
Old 09-19-2003, 07:55 AM
lalo landa lalo landa is offline
 
Join Date: Nov 2002
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if U have an a html mail notify

to interprate the vbcodes remplace

PHP Code:
if ($visible) {
        
// LOGICIAN SEND PART OF USER REPLY WITH EMAIL NOTIFICATION HACK
        
$logic_mes_sumsubstr($message050)."...";
        
// 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);
            } 
All the message will be showed

To send a html notify mail

This hack: https://vborg.vbsupport.ru/showthrea...104#post435104
Reply With Quote
  #30  
Old 10-20-2003, 11:12 PM
midnightz midnightz is offline
 
Join Date: Jan 2003
Location: Inside the Velvet Tunnel
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way or a hack to do this for PM's so the PM will be sent with the email alert?
Reply With Quote
  #31  
Old 03-23-2004, 08:03 PM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05680 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete