Page 14 of 21

Re: Adsense & Ads for phpBB

Posted: 16 Nov 2016, 21:21
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>

Re: Adsense & Ads for phpBB

Posted: 16 Nov 2016, 22:50
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

Re: Adsense & Ads for phpBB

Posted: 17 Nov 2016, 01:21
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?

Re: Adsense & Ads for phpBB

Posted: 17 Nov 2016, 07:11
by Stoker
Files? Its stored n the database

Re: Adsense & Ads for phpBB

Posted: 26 Nov 2016, 03:00
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.

Re: Adsense & Ads for phpBB

Posted: 26 Nov 2016, 08:08
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?

Re: Adsense & Ads for phpBB

Posted: 26 Nov 2016, 22:58
by vgeoffs
Which files should I insert in?

Re: Adsense & Ads for phpBB

Posted: 26 Nov 2016, 23:46
by Steve2
Adds every where!! We must have money for a holiday in Denmark stoker!

Re: Adsense & Ads for phpBB

Posted: 27 Nov 2016, 11:19
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 -->

Re: Adsense & Ads for phpBB

Posted: 05 Dec 2016, 20:09
by Nudels64
Hello, If the page ssl is encrypted, the adblocker does not hit. Is there a solution for this?