Adsense & Ads for phpBB

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

Re: Adsense & Ads for phpBB

Post by Stoker » 01 May 2017, 21:25

benjo wrote:
01 May 2017, 15: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
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear


benjo
BBCoder I
BBCoder I
Posts: 3
Joined: 01 May 2017, 07:29
BBCodes: 1

Re: Adsense & Ads for phpBB

Post by benjo » 02 May 2017, 08:31

benjo wrote:
01 May 2017, 15: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, 09:48

Re: Adsense & Ads for phpBB

Post by MrO » 07 May 2017, 09:52

Stoker wrote:
12 Apr 2017, 06:07
anthology wrote:
11 Apr 2017, 15:25
Stoker wrote:
11 Apr 2017, 14: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: 3511
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Re: Adsense & Ads for phpBB

Post by Stoker » 08 May 2017, 12:04

MrO wrote:
07 May 2017, 09:52
Stoker wrote:
12 Apr 2017, 06:07
anthology wrote:
11 Apr 2017, 15: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
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear

simplejiro
BBCoder I
BBCoder I
Posts: 1
Joined: 13 May 2017, 11:51
BBCodes: 0

Re: Adsense & Ads for phpBB

Post by simplejiro » 13 May 2017, 11:58

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, 09:10
BBCodes: 9

Re: Adsense & Ads for phpBB

Post by delv » 18 May 2017, 09: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.

User avatar
Stoker
Site Admin
Site Admin
Posts: 3511
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Re: Adsense & Ads for phpBB

Post by Stoker » 18 May 2017, 09:59

delv wrote:
18 May 2017, 09: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
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear

delv
BBCoder I
BBCoder I
Posts: 2
Joined: 18 May 2017, 09:10
BBCodes: 9

Re: Adsense & Ads for phpBB

Post by delv » 18 May 2017, 10:53

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, 21:10
BBCodes: 1

Re: Adsense & Ads for phpBB

Post by Lighthope » 01 Jun 2017, 21: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.

User avatar
Stoker
Site Admin
Site Admin
Posts: 3511
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Re: Adsense & Ads for phpBB

Post by Stoker » 02 Jun 2017, 14:03

Lighthope wrote:
01 Jun 2017, 21: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
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear