![]() |
Close BB Codes
I post here because Jake Bunce advise me to do.
http://www.vbulletin.com/forum/showt...834#post718834 I know in a post a bb code is automaticaly closed but I want to do in a non-vbpage. Quote:
Someone have a solution ? |
Code:
$bbcode = preg_replace("/(?is)\[(\/w)\](.*)(^\[\/\\1\])$/", "[\\1]\\2[/\\1]", $bbcode); Pretty much it searches for [anything] without matching [/anything] and addes the latter on on to the post. Hopefully... haven't tested it yet. |
Thanks Modin I'll try it tomorrow because I'm too tired now !
|
All times are GMT. The time now is 10:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|