Ich versuche die BBCodes verfügbar zu machen, will aber nicht.
Fehler kommt keiner, deshalb komme ich nicht dahinter
PHP
/**
* @see \wcf\page\IPage::assignVariables()
*/
public function assignVariables(){
parent::assignVariables();
DashboardHandler::getInstance()->loadBoxes('com.dokreativmedia.page.customPage', $this);
WCF::getTPL()->assign(array('sidebarCollapsed' => UserCollapsibleContentHandler::getInstance()->isCollapsed('com.woltlab.wcf.collapsibleSidebar', 'com.dokreativmedia.page.customPage'),
'sidebarName' => 'com.dokreativmedia.page.customPage',
'dkm_custompage_message_top' => MessageParser::getInstance()->parse(DKM_CUSTOMPAGE_MESSAGE_TOP_ALLOW_BBCODES),
'dkm_custompage_message_bottom' => MessageParser::getInstance()->parse(DKM_CUSTOMPAGE_MESSAGE_BOTTOM_ALLOW_BBCODES),
'dkm_custompage_message_dashboardbox_top' => MessageParser::getInstance()->parse(DKM_CUSTOMPAGE_MESSAGE_DASHBOARDBOX_TOP_ALLOW_BBCODES),
'dkm_custompage_message_dashboardbox_bottom' => MessageParser::getInstance()->parse(DKM_CUSTOMPAGE_MESSAGE_DASHBOARDBOX_BOTTOM_ALLOW_BBCODES)));
}
}
Alles anzeigen
XML
<option name="dkm_custompage_message_bottom_allow_bbcodes">
<categoryname>custompage.general</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
</option>
Code
{if DKM_CUSTOMPAGE_MESSAGE_BOTTOM && $__wcf->session->getPermission('user.dkm_custompage_message_bottom.canSee')}
<div class='dkmboxbottom'>
{if DKM_CUSTOMPAGE_MESSAGE_BOTTOM_ALLOW_HTML}
{@DKM_CUSTOMPAGE_MESSAGE_BOTTOM|language}
{else}
<p>{DKM_CUSTOMPAGE_MESSAGE_BOTTOM|language|newlineToBreak}</p>
{event name='additionalContents'}
{/if}
</div>
{/if}
Alles anzeigen