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. |
Can this only be used to go from BBCode --> HTML? Or can it also go from HTML --> BBCode?
|
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 |
Kirby,
Thanks. I've noticed that convert_ can handle < and > properly, but leaves " as " - not " . Any ideas? |
How can I do this in vB 3.0.7?
|
Could this be used to fix the /me problem in quotes for 3.5 RC 1?
|
Search is my friend.
Thanks for posting this, was looking for a hint and this saved me lots of time. |
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] |
How do you do this if it's like forum.yoursite.com? And that directory has a password?
|
Quote:
thanks kirby! |
All times are GMT. The time now is 06:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|