bbCodeWrapper and attachments?

HDJuegos

Active member
I have a problem to render attachments in my Add-on. I have the next code in ViewPublic

PHP:
$bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
                    $bbCodeOptions = array(
                    'states' => array(
                        'viewAttachments' => true
                    )
                );
$this->_params['newcontent']['HTML'] = new XenForo_BbCode_TextWrapper($this->_params['newcontent']['content'], $bbCodeParser, $bbCodeOptions);


In the template all bbcode works fine, but attachments show that link:

"view attachment 667" . If you click, you go to JPG.

The problem is, how can i render it to make viewable as a post?.

Thanks in advance
 
Top Bottom