The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
I also find it strange that people can't stop necro'ing dead threads like this to make a pointless post.
|
#22
|
|||
|
|||
Patch for vBulletin 3.8.6
Code:
Index: includes/class_sigparser.php =================================================================== --- includes/class_sigparser.php (revision 4283) +++ includes/class_sigparser.php (working copy) @@ -132,6 +132,13 @@ if ($append_custom_tags) { $this->append_custom_tags(); + + // Disallow YouTube + $this->tag_list['no_option']['youtube']['callback'] = 'check_bbcode_youtube'; + unset($this->tag_list['no_option']['youtube']['html']); + + $this->tag_list['option']['youtube']['callback'] = 'check_bbcode_youtube'; + unset($this->tag_list['option']['youtube']['html']); } } @@ -155,6 +162,13 @@ return $this->do_parse($text, $dohtml, $dosmilies, $dobbcode, $dobbimagecode, false, false); } + + // Disallow YouTube + function check_bbcode_youtube($text) + { + $this->errors["$tag"] = 'tag_not_allowed'; + return $text; + } /** * BB code callback allowed check |
#23
|
|||
|
|||
I have a question about that excerpt. While it works correctly, it shows "BB Code is not allowed" but does not state which BB Code is not allowed. Is it possible to have it state which BB Code is not allowed?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|