For Integration with darkimortal's HTML BBCode (permission protected) addon ( http://www.xenforo.com/community/threads/html-bbcode-permission-protected-paid.31824/), you will need to make the follow direct file edit.
NOTE: This only works for Beta 4 on up. It will not work with Beta 3 or below.
edit the file /library/NFLJ/Showcase/ViewPublic/Item/View.php
Replace:
With:
NOTE: This only works for Beta 4 on up. It will not work with Beta 3 or below.
edit the file /library/NFLJ/Showcase/ViewPublic/Item/View.php
Replace:
PHP:
$bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
$bbCodeOptions = array(
'states' => array(
'viewAttachments' => $this->_params['item']['canViewAttachments']
)
);
$this->_params['item']['message'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['item'], $bbCodeParser, $bbCodeOptions);
$this->_params['t2']['message'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['t2'], $bbCodeParser, $bbCodeOptions);
$this->_params['t3']['message'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['t3'], $bbCodeParser, $bbCodeOptions);
$this->_params['t4']['message'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['t4'], $bbCodeParser, $bbCodeOptions);
$this->_params['t5']['message'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['t5'], $bbCodeParser, $bbCodeOptions);
With:
PHP:
$formatter = Dark_ParseHTML_BbCode_Formatter_Ritsu::create('Dark_ParseHTML_BbCode_Formatter_Ritsu', array('view' => $this));
$bbCodeParser = new Dark_ParseHTML_BbCode_Parser($formatter);
$bbCodeOptions = array(
'states' => array(
'viewAttachments' => $this->_params['item']['canViewAttachments']
)
);
$this->_params['item']['message'] = Dark_ParseHTML_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['item'], $bbCodeParser, $bbCodeOptions);
$this->_params['t2']['message'] = Dark_ParseHTML_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['t2'], $bbCodeParser, $bbCodeOptions);
$this->_params['t3']['message'] = Dark_ParseHTML_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['t3'], $bbCodeParser, $bbCodeOptions);
$this->_params['t4']['message'] = Dark_ParseHTML_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['t4'], $bbCodeParser, $bbCodeOptions);
$this->_params['t5']['message'] = Dark_ParseHTML_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['t5'], $bbCodeParser, $bbCodeOptions);
Last edited: