• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

ParseHTML - Permission-enabled HTML BBCode

Status
Not open for further replies.
Thanks very much for updating this :) Do you know if there's a way to get this to display properly on Jaxel's Xenporta? It just displays the raw html.

Thanks,
Renada :)

In library/EWRporta/ViewPublic/Custom.php replace

Code:
                $bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
                $bbCodeOptions = array('states' => array('viewAttachments' => true));
                XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($params[$block['block_id']], $bbCodeParser, $bbCodeOptions);

with

Code:
                $formatter = XenForo_BbCode_Formatter_Base::create('Dark_ParseHTML_BbCode_Formatter_Ritsu', array('view' => $this));
                $bbCodeParser = new Dark_ParseHTML_BbCode_Parser($formatter);               
                $bbCodeOptions = array('states' => array('viewAttachments' => true));
                Dark_ParseHTML_ViewPublic_Helper_Message::bbCodeWrapMessages($params[$block['block_id']], $bbCodeParser, $bbCodeOptions);
 
In library/EWRporta/ViewPublic/Custom.php replace

Code:
                $bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
                $bbCodeOptions = array('states' => array('viewAttachments' => true));
                XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($params[$block['block_id']], $bbCodeParser, $bbCodeOptions);

with

Code:
                $formatter = XenForo_BbCode_Formatter_Base::create('Dark_ParseHTML_BbCode_Formatter_Ritsu', array('view' => $this));
                $bbCodeParser = new Dark_ParseHTML_BbCode_Parser($formatter);             
                $bbCodeOptions = array('states' => array('viewAttachments' => true));
                Dark_ParseHTML_ViewPublic_Helper_Message::bbCodeWrapMessages($params[$block['block_id']], $bbCodeParser, $bbCodeOptions);

Fantastic, thank you :)

Renada
 
In library/EWRporta/ViewPublic/Custom.php replace

Code:
                $bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
                $bbCodeOptions = array('states' => array('viewAttachments' => true));
                XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($params[$block['block_id']], $bbCodeParser, $bbCodeOptions);

with

Code:
                $formatter = XenForo_BbCode_Formatter_Base::create('Dark_ParseHTML_BbCode_Formatter_Ritsu', array('view' => $this));
                $bbCodeParser = new Dark_ParseHTML_BbCode_Parser($formatter);             
                $bbCodeOptions = array('states' => array('viewAttachments' => true));
                Dark_ParseHTML_ViewPublic_Helper_Message::bbCodeWrapMessages($params[$block['block_id']], $bbCodeParser, $bbCodeOptions);


Ooops sorry Dark I spoke too soon. Whilst this *does* fix the html displaying on the portal it breaks other bbcodes like the XenMedio files which now display the bbcode tags instead.

Is there a fix for this?

Thanks,
Renada :)
 
Ooops sorry Dark I spoke too soon. Whilst this *does* fix the html displaying on the portal it breaks other bbcodes like the XenMedio files which now display the bbcode tags instead.

Is there a fix for this?

Thanks,
Renada :)

Quite a complex fix it seems, I'll look into it for a later release
 
Status
Not open for further replies.
Top Bottom