Page 15 of 21

Re: Adsense & Ads for phpBB

Posted: 05 Dec 2016, 20:32
by Stoker
Nudels64 wrote: 05 Dec 2016, 20:09 Hello, If the page ssl is encrypted, the adblocker does not hit. Is there a solution for this?
Unfortunately not.
I dont have Access to ssl so I wont be able to find one

Re: Adsense & Ads for phpBB

Posted: 05 Dec 2016, 20:47
by Nudels64
Too bad, now my antiadblocker is dead. Do you want to test this time? https://forum.peugeot-metropolis.de

Re: Adsense & Ads for phpBB

Posted: 05 Dec 2016, 21:42
by Nudels64
It's all right. Only in the Opera Adblocker does not suggest the script. In Chrome, Firefox, Safari and IE, it goes.

Re: Adsense & Ads for phpBB

Posted: 18 Dec 2016, 17:28
by Nudels64
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.

Re: Adsense & Ads for phpBB

Posted: 26 Dec 2016, 01:28
by covvvva
Mr Stoker hi i am covvvva from Colombìa i installed stoker ads extention but google adsense no appear please help check syte zona-experta2017.com thanks for you help

Re: Adsense & Ads for phpBB

Posted: 26 Dec 2016, 11:03
by Stoker
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.
No, if a user has permission to disable ads and do disable them, they are allowed to use adblocker without getting the warning.
covvvva wrote: 26 Dec 2016, 01:28 zona-experta2017.com
I cant see ads on your forum. Has Google validated your adsense account?

Re: Adsense & Ads for phpBB

Posted: 27 Dec 2016, 15:20
by Nudels64
Can you program that? I want to warn my members anyway, if an ad blocker is active. We could then advertise in the portal and my members can turn off advertising in the forum.

Re: Adsense & Ads for phpBB

Posted: 27 Dec 2016, 15:37
by Stoker
Nudels64 wrote: 27 Dec 2016, 15:20 Can you program that? I want to warn my members anyway, if an ad blocker is active. We could then advertise in the portal and my members can turn off advertising in the forum.
Sure, open: \ext\stoker\adsenseads\styles\prosilver\template\event\overall_footer_after.html
Delete the content of it and use this instead:

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 -->
overall_header_navbar_before.html:

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 -->
Havent testet it ;)

Re: Adsense & Ads for phpBB

Posted: 27 Dec 2016, 16:13
by Nudels64
Thank you for the fast answer. Unfortunately nothing has changed. The ad blocker warner does not report anything when the member has selected advertising.

The werberblocker warner does not report anything when the member is login. If the member logs off, the warning is correct.

Can you look again?

Re: Adsense & Ads for phpBB

Posted: 27 Dec 2016, 16:23
by Stoker
Did you purge cache after edting the file?