Adsense & Ads for phpBB

Extensions & Styles for phpBB 3.1.X maintained and supported by Stoker
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Adsense & Ads for phpBB

Post 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
Board rules! No PM support
Nudels64
BBCoder II
BBCoder II
Posts: 8
Joined: 05 Dec 2016, 20:05

Re: Adsense & Ads for phpBB

Post by Nudels64 »

Too bad, now my antiadblocker is dead. Do you want to test this time? https://forum.peugeot-metropolis.de
Nudels64
BBCoder II
BBCoder II
Posts: 8
Joined: 05 Dec 2016, 20:05

Re: Adsense & Ads for phpBB

Post by Nudels64 »

It's all right. Only in the Opera Adblocker does not suggest the script. In Chrome, Firefox, Safari and IE, it goes.
Nudels64
BBCoder II
BBCoder II
Posts: 8
Joined: 05 Dec 2016, 20:05

Re: Adsense & Ads for phpBB

Post 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.
covvvva
BBCoder II
BBCoder II
Posts: 5
Joined: 10 Nov 2016, 07:20
BBCodes: 10
Location: Colombia

Re: Adsense & Ads for phpBB

Post 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
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Adsense & Ads for phpBB

Post 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?
Board rules! No PM support
Nudels64
BBCoder II
BBCoder II
Posts: 8
Joined: 05 Dec 2016, 20:05

Re: Adsense & Ads for phpBB

Post 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.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Adsense & Ads for phpBB

Post 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 ;)
Board rules! No PM support
Nudels64
BBCoder II
BBCoder II
Posts: 8
Joined: 05 Dec 2016, 20:05

Re: Adsense & Ads for phpBB

Post 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?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Adsense & Ads for phpBB

Post by Stoker »

Did you purge cache after edting the file?
Board rules! No PM support
Post Reply