The Arcive of vBulletin Modifications Site. |
|
|
Parse BBCode (in 3.5)
If you want to parse BBCodes somewhere in your hacks/scripts (assuming that global.php is already required): PHP Code:
All parameters except $text can be omitted and will use the defaults then. |
|
#2
|
|||
|
|||
|
Can this only be used to go from BBCode --> HTML? Or can it also go from HTML --> BBCode?
|
|
#3
|
||||
|
||||
|
Yes, Class vB_CodeParser can only be userd for BBCode -> HTML.
For limited HTML -> BBCode use convert_wysiwyg_html_to_bbcode() in functions_wysiwyg.php |
|
#4
|
|||
|
|||
|
Kirby,
Thanks. I've noticed that convert_ can handle < and > properly, but leaves " as " - not " . Any ideas? |
|
#5
|
||||
|
||||
|
How can I do this in vB 3.0.7?
|
|
#6
|
||||
|
||||
|
Could this be used to fix the /me problem in quotes for 3.5 RC 1?
|
|
#7
|
||||
|
||||
|
Search is my friend.
Thanks for posting this, was looking for a hint and this saved me lots of time. |
|
#8
|
|||
|
|||
|
help for a noob please
if i have the following...PHP Code:
parsed text = My Review! but i just get HTML Code:
[url=http://www.mysite.com/reviews.php?id=4661][b]My Review![/b][/url] |
|
#9
|
||||
|
||||
|
How do you do this if it's like forum.yoursite.com? And that directory has a password?
|
|
#10
|
|||
|
|||
|
Quote:
thanks kirby! |
![]() |
|
|