The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 ? |
#2
|
|||
|
|||
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. |
#3
|
||||
|
||||
Thanks Modin I'll try it tomorrow because I'm too tired now !
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|