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 »

benjo wrote: 01 May 2017, 17:43 hello, i installed it on my forum and add some ads from adsense
link to topic page with problem


and for some reason i can only see this lines "(adsbygoogle = window.adsbygoogle || []).push({});
" in the places were the ad suppose to be

please advice how to fix this ?

i installed it on different style like prosilver but its name is jprosilver style, i don't know if its the problem, i did add the files to this template
Well, the ad that is placed in the topic is showing up fine. So I guess your code is oncorrect?
Board rules! No PM support
benjo
BBCoder I
BBCoder I
Posts: 4
Joined: 01 May 2017, 09:29
BBCodes: 1

Re: Adsense & Ads for phpBB

Post by benjo »

benjo wrote: 01 May 2017, 17:43 hello, i installed it on my forum and add some ads from adsense
link to topic page with problem


and for some reason i can only see this lines "(adsbygoogle = window.adsbygoogle || []).push({});
" in the places were the ad suppose to be

please advice how to fix this ?

i installed it on different style like prosilver but its name is jprosilver style, i don't know if its the problem, i did add the files to this template
ok problem solved
joomla firewall striped code from script tag making it <s-cript>
MrO
BBCoder I
BBCoder I
Posts: 1
Joined: 07 May 2017, 11:48

Re: Adsense & Ads for phpBB

Post by MrO »

Stoker wrote: 12 Apr 2017, 08:07
anthology wrote: 11 Apr 2017, 17:25
Stoker wrote: 11 Apr 2017, 16:36

Its a missing lang correction. Should be can disable ads
Thanks you. I see it in the ucp but it's greyed out where I can't select it. I've played with numerous permission but can't get it to where I can make a selection.
Some changes where made to the EXT and now the permission thing in incorrect. You need to set it to No.
No gives users option to disable ads i UCP
Morning Stoker, I'm confused with this. phpbb3.2. I've tried different settings on "Can See Ads" and I can't make it allow the UCP switch to stop being greyed out.

I see it works over here. Does it matter if the user is a member of multiple groups?

Cheers
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 »

MrO wrote: 07 May 2017, 11:52
Stoker wrote: 12 Apr 2017, 08:07
anthology wrote: 11 Apr 2017, 17:25

Thanks you. I see it in the ucp but it's greyed out where I can't select it. I've played with numerous permission but can't get it to where I can make a selection.
Some changes where made to the EXT and now the permission thing in incorrect. You need to set it to No.
No gives users option to disable ads i UCP
Morning Stoker, I'm confused with this. phpbb3.2. I've tried different settings on "Can See Ads" and I can't make it allow the UCP switch to stop being greyed out.

I see it works over here. Does it matter if the user is a member of multiple groups?

Cheers
Set permission to NEVER.
Board rules! No PM support
simplejiro
BBCoder I
BBCoder I
Posts: 1
Joined: 13 May 2017, 13:51
BBCodes: 0

Re: Adsense & Ads for phpBB

Post by simplejiro »

Hi, i follow the installation exactly but can't see this extension under Extension Management. Please help.
delv
BBCoder I
BBCoder I
Posts: 2
Joined: 18 May 2017, 11:10
BBCodes: 9

Re: Adsense & Ads for phpBB

Post by delv »

I installed this extension on my 3.1.10 forum and after testing more than a week all seems to work perfect :D
But there is one great problem. In Chroome and on mobile everything works perfect, but when using Firefox 52 the ads won't show on my forum and i only see blank blocks :(
My resposive code for the blocks looks like:

Code: Select all

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!—- Blok3 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
     data-ad-slot="xxxxxxxxx"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Very strange because when i visit this forum i can see the ads perfect with Firefox 52.
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 »

delv wrote: 18 May 2017, 11:24 I installed this extension on my 3.1.10 forum and after testing more than a week all seems to work perfect :D
But there is one great problem. In Chroome and on mobile everything works perfect, but when using Firefox 52 the ads won't show on my forum and i only see blank blocks :(
My resposive code for the blocks looks like:

Code: Select all

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!—- Blok3 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
     data-ad-slot="xxxxxxxxx"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Very strange because when i visit this forum i can see the ads perfect with Firefox 52.
Thats weird. I use the same code here as you do

Code: Select all

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- BBCodes Responsive Banner -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-xxx"
     data-ad-slot="xxx"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Do you have a link to your board?
Board rules! No PM support
delv
BBCoder I
BBCoder I
Posts: 2
Joined: 18 May 2017, 11:10
BBCodes: 9

Re: Adsense & Ads for phpBB

Post by delv »

I'll PM you the url and a testaccount because the extension is set "Only testing for admins" :)
Lighthope
BBCoder I
BBCoder I
Posts: 1
Joined: 01 Jun 2017, 23:10
BBCodes: 1

Re: Adsense & Ads for phpBB

Post by Lighthope »

Where do you set it so certain groups (like donors) can turn off ads? I do see the option in the UCP, but it is greyed out and I can't find where to turn it on for them in the Admin section.
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 »

Lighthope wrote: 01 Jun 2017, 23:13 Where do you set it so certain groups (like donors) can turn off ads? I do see the option in the UCP, but it is greyed out and I can't find where to turn it on for them in the Admin section.
Read a couple of the previous posts ;)
Board rules! No PM support
Post Reply