The thing is: I'm trying to retrieve content from threads/posts to custom pages, and use XenForo parser to parse content. I already know how to instantiate the parser, and use it, and I can parse content virtually everywhere. My problem is about how the parser renders the Html code of the tag.
In threads, if I choose to show as the full image, it shows without problem. When I try to reproduce this over a custom page, it shows only a link like "Attachment 999". I managed to solve this by creation pages using the whole MVC system, in a manner that the content is being parsed over the view of each page. But this is not what I would like to do, because i'm really interested in using custom pages by just creating them via the ACP, and parsing content via the callback feature. The typical approach, and what I have been trying, is to use this over the page callback:
$parser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', false)); $var = "[b]hello[/b]"; $parsed_var = $parser->render($var);
Sorry if i'm not being clear about my problem. I'm from Latin-America, and my english might be a little poor.