Quote:
Originally Posted by Analogpoint
Is it possible to use PHP in a custom BB code? I'm making a BB code, but I need to parse/manipulate the contents of {param} instead of just wrapping it in HTML or something like that. Is this currently possible? If not, what would you suggest I do to work around this limitation?
|
You can do it through the plugin system, or you can edit in class_bbcode.php directly. I tend to do the latter, so I can specifically control when the custom tags are parsed. Put it in the do_parse method, and use preg_match. It wont use the stack based parsing of bbcode proper, but it should be fine.