vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Send Part of User's Reply with Email Notification (https://vborg.vbsupport.ru/showthread.php?t=34912)

Logician 04-14-2003 04:57 PM

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? :)

trafix 04-15-2003 01:12 AM

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

TECK 04-15-2003 03:19 PM

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...

M.C. 05-10-2003 10:27 PM

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!

mccollin 08-25-2003 08:45 PM

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

assassingod 08-25-2003 08:54 PM

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

mccollin 08-26-2003 12:38 PM

Thanks for the help. I read this whole thread twice, but never saw this info.

lalo landa 09-19-2003 07:55 AM

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

midnightz 10-20-2003 11:12 PM

Is there a way or a hack to do this for PM's so the PM will be sent with the email alert?

Aaron1 03-23-2004 08:03 PM

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.


All times are GMT. The time now is 09:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01256 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete