vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   bbcode displaying in email notifications (https://vborg.vbsupport.ru/showthread.php?t=173511)

keith1995 03-19-2008 04:07 PM

bbcode displaying in email notifications
 
We installed the "Instant New Thread Notification" add-on which can be found here https://vborg.vbsupport.ru/showthread.php?t=141280 but whenever an email notification is sent out, the bbcode is displaying inside the email body.

For example, if someone had used the editor to underline a word, in the email notification that word is flanked by the U and /U code inside brackets.

Can someone help me out here with either figuring out how to get the actual code to work or how to completely strip out the bbcode so it doesn't display in the email body?

Xplorer4x4 03-19-2008 05:10 PM

Remove the bbcode from the email message as no email client supports them that i know of. You can use HTML instead, such as <u> </u> but not all email clients will display these either.

keith1995 03-19-2008 06:00 PM

Xplorer4x4,

Thanks for the response. Where/how do I remove the bbcode from the email message? I understand I could possibly use strip_bbcode but where would that get inserted?

keith1995 04-03-2008 05:22 PM

I'm still having problems here. Anyone got any ideas?

--------------- Added [DATE]1207250895[/DATE] at [TIME]1207250895[/TIME] ---------------

Some further info on this. Someone posted a new thread on our forum and used the editor to add bullets, color, etc formatting. The email notification that we received looks like this:

PHP Code:

[B][COLOR=black][FONT=Arial][FONT=Arial]CHIEF FINANCIAL OFFICER[/FONT][/FONT][/COLOR][/B]
[
COLOR=black][FONT=Arial][FONT=Arial](Los Angeles)[/FONT][/FONT][/COLOR

I wrapped the above in PHP code so you can see the actual code as opposed to this forum converting it.

It doesn't seem to be convering the bbcode to HTML or stripping it from the email. Anyone know how or where to fix this?

keith1995 04-10-2008 02:11 AM

Anyone got any ideas here? I've tried to edit the Standard Phrase: newthreadsub to include strip_bbcode($newpost[message]) instead of $newpost[message] however that isn't stripping out the code and instead if prefixing the entire message with strip_bbcode.

Someone else out there has had to run across this same problem before, right?

--------------- Added [DATE]1207850836[/DATE] at [TIME]1207850836[/TIME] ---------------

Xplorer4x4, are you still reading this? Can you help out?

keith1995 04-14-2008 07:51 PM

Does anyone know which file is used to handle the sending of the email notifications? I'd like to find the actual code that handles this function.

--------------- Added [DATE]1208281828[/DATE] at [TIME]1208281828[/TIME] ---------------

Am I really alone in this need?


All times are GMT. The time now is 08:45 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
  • Page Generation 0.01014 seconds
  • Memory Usage 1,725KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete