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)
-   -   Remove Extra Quotes From PMs (https://vborg.vbsupport.ru/showthread.php?t=41074)

Boofo 07-15-2002 10:06 AM

You really ought to try the disable codes sometime. That has got to be my favorite hacks of all time. Chen has it working here. :) It sure saves a lot of headaches and parsing problems.

Quote:

Originally posted by Raz
Nah its fine, I've fixed the original post.

Just used a \\\\[ to get a \[ :rolleyes:


Raz 07-15-2002 10:06 AM

Quote:

Originally posted by Logician
nice hack Raz.. it is small but useful :)
Yup, its one of those hacks that should have been included with VB in the first place.

Raz 07-16-2002 11:27 AM

Quote:

Originally posted by Boofo
You really ought to try the disable codes sometime. That has got to be my favorite hacks of all time. Chen has it working here. :) It sure saves a lot of headaches and parsing problems.


It has nothing to do with BBCode, but the way it handles slashes (\)

Boofo 07-16-2002 11:30 AM

Yes, but it worked fine for Chen and I when we used it. :)

Quote:

Originally posted by Raz
It has nothing to do with BBCode, but the way it handles slashes (\)

Raz 07-16-2002 11:33 AM

Chen used the [code]tag[/code]. The problem with slashes seems to be when using the [php]tag[/php]. :)

Admin 07-16-2002 11:37 AM

Quote:

Originally posted by Raz
Chen used the [code]tag[/code]. The problem with slashes seems to be when using the [php]tag[/php]. :)
Yup, I noticed that as well and trying to fix that bug.

Raz 07-16-2002 11:51 AM

The problem may actually lay with the highlight_string() function.

Possibly doing a highlight_string(str_replace('\\', '\\\\', $data)) might fix it.

Boofo 07-16-2002 11:53 AM

You're right. I didn't try that. Strange that it would work fine for the code tags and not PHP. :)

Quote:

Originally posted by Raz
Chen used the [code]tag[/code]. The problem with slashes seems to be when using the [php]tag[/php]. :)

Raz 07-16-2002 11:55 AM

The only difference between those two 'quotes' is that the [php] tag makes use of the highlight_string().

Presumely its strips out any slashes it sees.

Admin 07-16-2002 12:09 PM

Let's see if I managed to fix this...

PHP Code:

$message[message] = trim(preg_replace("~\[quote\](.*)\[/quote\]~si"""$message[message])); 



All times are GMT. The time now is 06:21 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.01194 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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