Re: Adsense & Ads for phpBB
Posted: 05 Dec 2016, 20:32
Database and Demo for phpBB3 BBCodes, Mods and Smilies
https://phpbb3bbcodes.com/
No, if a user has permission to disable ads and do disable them, they are allowed to use adblocker without getting the warning.Nudels64 wrote: ↑18 Dec 2016, 17:28 Hello Stoker, I still have a problem with us. If a user deactivated the display of the advertising banners and still activated an adsblocker, the warner does not hit and other advertising banners for example in the portal are blocked.
The same happens when I change the permissions of a group. The group can not deactivate the banner ad, the warner reports. If the group has the authority, the warner does not register.
Can you change so the warner always reports?
hope you understand me.
I cant see ads on your forum. Has Google validated your adsense account?
Sure, open: \ext\stoker\adsenseads\styles\prosilver\template\event\overall_footer_after.html
Code: Select all
<!-- IF (ENABLE_ADBLOCK_WARN or S_ADSENSEADS) and not (ENABLE_TOTAL_TOPIC_BLOCK and S_VIEWTOPIC) -->
<!-- IF (ENABLE_ADSENSE_TESTMODE and U_ACP) or not ENABLE_ADSENSE_TESTMODE -->
<script>
$(document).ready(function() {
if($("#gandalfads").outerHeight() === 0)
$("#displaywise").html("<div class='panel noscriptcss noscriptcssresponsive'><p class='warntext'><!-- IF S_USER_LOGGED_IN --><strong>{S_USERNAME}</strong>, <!-- ENDIF -->{ADBLOCK_WARN_TEXT}</p></div>").show();
});
</script>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF (ENABLE_TOTAL_TOPIC_BLOCK and S_VIEWTOPIC) -->
<!-- IF (ENABLE_ADSENSE_TESTMODE and U_ACP) or not ENABLE_ADSENSE_TESTMODE -->
<script>
$(document).ready(function() {
if($("#gandalfads").outerHeight() === 0)
$("#crapblock").css("display","none");
});
</script>
<script>
$(document).ready(function() {
if($("#gandalfads").outerHeight() === 0)
$("#topicwise").html("<div class='panel noscriptcss noscriptcssresponsive'><p class='warntext'><!-- IF S_USER_LOGGED_IN --><strong>{S_USERNAME}</strong>, <!-- ENDIF -->{TOTAL_TOPIC_BLOCK_TEXT}</p></div>").show();
});
</script>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_ADSENSEADS and ENABLE_ADSENSE_PAGE_LEVEL -->
{ADSENSE_PAGE_LEVEL_TEXT}
<!-- ENDIF -->
Code: Select all
<!-- IF ENABLE_ADBLOCK_WARN and not (ENABLE_TOTAL_TOPIC_BLOCK and S_VIEWTOPIC) -->
<!-- IF (ENABLE_ADSENSE_TESTMODE and U_ACP) or not ENABLE_ADSENSE_TESTMODE -->
<div id="displaywise"></div>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF ENABLE_NOSCRIPT_WARN and not (ENABLE_TOTAL_TOPIC_BLOCK and S_VIEWTOPIC) -->
<!-- IF (ENABLE_ADSENSE_TESTMODE and U_ACP) or not ENABLE_ADSENSE_TESTMODE -->
<noscript>
<div class="panel noscriptcss noscriptcssresponsive"><p class="warntext"><!-- IF S_USER_LOGGED_IN --><strong>{S_USERNAME}</strong>, <!-- ENDIF -->{NOSCRIPT_WARN_TEXT}</p></div>
</noscript>
<!-- ENDIF -->
<!-- ENDIF -->