The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Currently putting bbcode inside the [code] bbcode it is still parsed as bbcode. This shouldn't happen and I was wondering if someone would be able to help me fix this.
Code:
this text shouldn't be bold or underlined Code:
function handle_bbcode_code($code) { global $vbulletin, $vbphrase, $stylevar, $show; // remove unnecessary line breaks and escaped quotes $code = str_replace(array('<br>', '<br />'), array('', ''), $code); $code = $this->strip_front_back_whitespace($code, 1); if ($this->printable) { $code = $this->emulate_pre_tag($code); $template = 'bbcode_code_printable'; } else { $blockheight = $this->fetch_block_height($code); $template = 'bbcode_code'; } eval('$html = "' . fetch_template($template) . '";'); return $html; } |
#2
|
|||
|
|||
![]()
If you want it to work that way you can create a new plugin using hook location bbcode_fetch_tags, and this code:
Code:
if (($vbulletin->options['allowedbbcodes'] & ALLOW_BBCODE_CODE) OR $force_all) { $tag_list['no_option']['code']['stop_parse'] = true; } However, I'm not sure if I'd say that "fixes" the CODE bbcode. I've seen a lot of people post some code and highlight part of it by making it red or something, and that isn't possible if you disable bbcode within CODE. |
#3
|
|||
|
|||
![]()
Thanks
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|