Jaxel Well-known member Dec 9, 2017 #1 Has anyone made any custom BbCode with PHP callback yet? I'm looking for some examples...
Jaxel Well-known member Dec 9, 2017 #2 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'; } }
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'; } }
Jaxel Well-known member Dec 9, 2017 #3 Hmm... how do I call the templater in my bbcode? Anyone got any ideas?