![]() |
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? |
for the $pattern, I would use:
Code:
\[\w*\].*?\[\/\w*\] Of just replace what you did with the second line: Code:
$pattern = '|[[\/\!]*?[^\[\]]*?]|si'; |
All times are GMT. The time now is 10:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|