XF 2.0 Custom BbCode with PHP Callback?

Jaxel

Well-known member
Licensed customer
Has anyone made any custom BbCode with PHP callback yet?

I'm looking for some examples...
 
Figured it out...

Code:
namespace EWR\Rio\BbCode;

use XF\BbCode\Renderer\AbstractRenderer;

class Stream
{
    public static function bbcode($tagChildren, $tagOption, $tag, array $options, $renderer)
    {
        return 'my html';
    }
}
 
Hmm... how do I call the templater in my bbcode? Anyone got any ideas?
 
Back
Top Bottom