cclaerhout
Well-known member
All the buttons work but none of them are rendered correctly upon page save. I skimmed through the add-on code but failed to understand how the bbcode is supposed to be used, help?
When you say the "buttons work", you mean that they wrapped the selected text between tags OR create a new text wrapped into tags, aren't you ?
If yes, then the addon works but the Bb Codes (from the Bbcm - bbcode xml must be imported) must be parsed. Are you using the XenForo parser on the text of the page ?
Something like this:
PHP:
$bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base'));
$output = $bbCodeParser->render($output);
That's why my first question was: are the Bb Codes are working in those pages?