The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
strip_bbcode
I have written a small plugin in the showthread_complete hook.
It works, except for the filtering of BBCODE. PHP Code:
--------------- Added [DATE]1256912691[/DATE] at [TIME]1256912691[/TIME] --------------- I found the solution on another site. This works: PHP Code:
I need to remove the whole bbcode including the content between the brackets. How do I do that? |
#2
|
|||
|
|||
for the $pattern, I would use:
Code:
\[\w*\].*?\[\/\w*\] Of just replace what you did with the second line: Code:
$pattern = '|[[\/\!]*?[^\[\]]*?]|si'; $pattern = '|[[\/\!].*?[^\[\]]*?]|si'; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|