Adsense & Ads for phpBB

Extensions & Styles for phpBB 3.1.X maintained and supported by Stoker
vgeoffs
BBCoder II
BBCoder II
Posts: 5
Joined: 15 Nov 2016, 22:27
BBCodes: 3

Re: Adsense & Ads for phpBB

Post by vgeoffs »

I have tried several scripts all have failed to write. Which files are we updating?

<script async src="http://pagead2.googlesyndication.com/pa ... "></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-9985926644863798",
enable_page_level_ads: true
});
</script>
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
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 »

vgeoffs wrote: 16 Nov 2016, 21:21 I have tried several scripts all have failed to write. Which files are we updating?

<script async src="http://pagead2.googlesyndication.com/pa ... "></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-9985926644863798",
enable_page_level_ads: true
});
</script>
That specific one is only for page level ads
Board rules! No PM support
vgeoffs
BBCoder II
BBCoder II
Posts: 5
Joined: 15 Nov 2016, 22:27
BBCodes: 3

Re: Adsense & Ads for phpBB

Post by vgeoffs »

I put in your sample code for, Ad Block detector ad code and it still gives me a 403 forbidden. There is something preventing java script code from being inserted in. It fails when i just put in:

script type="text/javascript"
</script>

url on error page.
http://www.palmerstoncellars.com/phpbb/ ... e=settings

What files are you writing to?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
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 »

Files? Its stored n the database
Board rules! No PM support
vgeoffs
BBCoder II
BBCoder II
Posts: 5
Joined: 15 Nov 2016, 22:27
BBCodes: 3

Re: Adsense & Ads for phpBB

Post by vgeoffs »

I have deleted and re-installed and still have the same problem of 403, plain text works but when I put in java script something somewhere is preventing from being installed. I know I am using cpanel with apache web server.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
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 »

vgeoffs wrote: 26 Nov 2016, 03:00 I have deleted and re-installed and still have the same problem of 403, plain text works but when I put in java script something somewhere is preventing from being installed. I know I am using cpanel with apache web server.
What happens if you insert the AdSense directly in your template?
Board rules! No PM support
vgeoffs
BBCoder II
BBCoder II
Posts: 5
Joined: 15 Nov 2016, 22:27
BBCodes: 3

Re: Adsense & Ads for phpBB

Post by vgeoffs »

Which files should I insert in?
Steve2
BBCoder II
BBCoder II
Posts: 8
Joined: 17 Nov 2016, 22:59
BBCodes: 33

Re: Adsense & Ads for phpBB

Post by Steve2 »

Adds every where!! We must have money for a holiday in Denmark stoker!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
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 »

vgeoffs wrote: 26 Nov 2016, 22:58 Which files should I insert in?
You could try: styles/prosilver/template/overall_header.html
Right after this line:

Code: Select all

<!-- EVENT overall_header_page_body_before -->
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 »

Hello, If the page ssl is encrypted, the adblocker does not hit. Is there a solution for this?
Post Reply