The previous name caused adblockers to go wild and hide the checkbox required to toggle the ad system.
<acpmenuitem name="wcf.acp.menu.link.ad">
<parent>wcf.acp.menu.link.display</parent>
- <options>module_ad</options>
+ <!-- do NOT use 'module_ad', the ACP checkbox is incorrectly recognized by adblockers -->
+ <options>module_wcf_ad</options>
<showorder>6</showorder>
</acpmenuitem>
<acpmenuitem name="wcf.acp.menu.link.ad.list">
<defaultvalue>1</defaultvalue>
</option>
- <option name="module_ad">
+ <option name="module_wcf_ad">
<categoryname>module.display</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
{if $skipBreadcrumbs|empty}{include file='breadcrumbs' __microdata=false}{/if}
- {if MODULE_AD}
+ {if MODULE_WCF_AD}
{hascontent}
<div class="marginTop">
{content}
{event name='copyright'}
</div>
- {if MODULE_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.footer.bottom')}{/if}
+ {if MODULE_WCF_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.footer.bottom')}{/if}
</div>
</footer>
{event name='headerLogo'}
</a>
- {if MODULE_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.logo')}{/if}
+ {if MODULE_WCF_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.logo')}{/if}
</div>
{event name='headerContents'}
{if $sidebar|isset}
<aside class="sidebar"{if $sidebarOrientation|isset && $sidebarOrientation == 'right'} data-is-open="{if $sidebarCollapsed}false{else}true{/if}" data-sidebar-name="{$sidebarName}"{/if}>
<div>
- {if MODULE_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.top')}{/if}
+ {if MODULE_WCF_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.top')}{/if}
{event name='sidebarBoxesTop'}
{event name='sidebarBoxesBottom'}
- {if MODULE_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.bottom')}{/if}
+ {if MODULE_WCF_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.bottom')}{/if}
</div>
</aside>
{/if}
<section id="content" class="content">
- {if MODULE_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.header.content')}{/if}
+ {if MODULE_WCF_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.header.content')}{/if}
{event name='contents'}
/**
* @see wcf\page\AbstractPage::$neededModules
*/
- public $neededModules = array('MODULE_AD');
+ public $neededModules = array('MODULE_WCF_AD');
/**
* html code of the ad
/**
* @see wcf\page\AbstractPage::$neededModules
*/
- public $neededModules = array('MODULE_AD');
+ public $neededModules = array('MODULE_WCF_AD');
/**
* @see \wcf\page\MultipleLinkPage::$objectListClassName
</ul>]]></item>
<item name="wcf.acp.option.url_to_lowercase"><![CDATA[Durchgehende Kleinschreibung in Links aktivieren]]></item>
<item name="wcf.acp.option.url_to_lowercase.description"><![CDATA[Links verwenden keine Großbuchstaben mehr, aus „Thread/1-Dies-ist-ein-Test/“ wird „thread/1-dies-ist-ein-test/“.]]></item>
- <item name="wcf.acp.option.module_ad"><![CDATA[Werbung]]></item>
+ <item name="wcf.acp.option.module_wcf_ad"><![CDATA[Werbung]]></item>
<item name="wcf.acp.option.captcha_type"><![CDATA[Captcha-Art]]></item>
<item name="wcf.acp.option.register_use_captcha"><![CDATA[Captcha in Registrierung aktivieren]]></item>
<item name="wcf.acp.option.lost_password_use_captcha"><![CDATA[Captcha in „Kennwort vergessen“ aktivieren]]></item>
</ul>]]></item>
<item name="wcf.acp.option.url_to_lowercase"><![CDATA[Force lower-case links]]></item>
<item name="wcf.acp.option.url_to_lowercase.description"><![CDATA[Links will no longer contain uppercase letters turning links like “Thread/1-Hello-I-am-John-Doe/” into “thread/1-hello-i-am-john-doe/”.]]></item>
- <item name="wcf.acp.option.module_ad"><![CDATA[Ads]]></item>
+ <item name="wcf.acp.option.module_wcf_ad"><![CDATA[Ads]]></item>
<item name="wcf.acp.option.captcha_type"><![CDATA[Captcha Type]]></item>
<item name="wcf.acp.option.register_use_captcha"><![CDATA[Enable Captcha protection during registration]]></item>
<item name="wcf.acp.option.lost_password_use_captcha"><![CDATA[Enable Captcha protection for “Lost Password”]]></item>