Adsense & Ads for phpBB

Extensions & Styles for phpBB 3.1.X
Maintained and supported by Stoker
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Sunday 00:08
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Re: Adsense & Ads for phpBB

Post by Stoker »

Potku wrote: 09 Aug 2016, 12:16 Awesome! I can verify it works like a charm. Thanks, Stoker!

To many of us who are running boards with no actual commercial supporters, this kind of EXT is golden. Ads are a must to cover the expenses. Also, if a board has donors, I think it's very important they have the option of switching off the ads. To our (very few, unfortunately...) donors that has been the most important aspect of being a donor despite several other benefits.
I agree. That was also the reason for creating and using this on my own boards :thumb:
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
casterdon Offline
BBCoder I
BBCoder I
Posts: 3
Joined: 22 Mar 2016, 20:14
Local time: Saturday 23:08
Last active: -

Re: Adsense & Ads for phpBB

Post by casterdon »

Thanks Stoker, excellent work.
User avatar
bb3st Offline
BBCoder I
BBCoder I
Posts: 2
Joined: 13 Aug 2016, 15:57
Local time: Sunday 01:08
Last active: -

Re: Adsense & Ads for phpBB

Post by bb3st »

Thank you Stoker for this extension!

Also I will add here to et translation. If someone are looking this extension.
et.zip
Estonian translation for warning text in ACP fields:

Code: Select all

Kasutad reklaamiblokeerijat!<br>Keela see, et vaadata teemasi ja <a href='' onclick='window.location.reload(true);'>Värskenda</a> lehekülge!<br>Samuti tea, et <a href='http://www.sinudomeen.ee'>Toetajad</a> ei näe reklaame ega ka seda sõnumit. 

GITHUB

Regards,
You do not have the required permissions to view the files attached to this post.
Last edited by bb3st on 27 Aug 2016, 07:36, edited 1 time in total.
User avatar
charterschoolforums Offline
BBCoder I
BBCoder I
Posts: 3
Joined: 17 Aug 2016, 03:42
Local time: Saturday 15:08
Last active: -

Re: Adsense & Ads for phpBB

Post by charterschoolforums »

Thank you so much for this extension!

Quick question...I enabled ads in my header but how do I remove it from appearing on my homepage? I want it in the header on all other pages just not the home page.
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Sunday 00:08
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Re: Adsense & Ads for phpBB

Post by Stoker »

charterschoolforums wrote: 17 Aug 2016, 03:45 Thank you so much for this extension!

Quick question...I enabled ads in my header but how do I remove it from appearing on my homepage? I want it in the header on all other pages just not the home page.
Its hard to say without knowing what kind of home page/portal you are using
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
charterschoolforums Offline
BBCoder I
BBCoder I
Posts: 3
Joined: 17 Aug 2016, 03:42
Local time: Saturday 15:08
Last active: -

Re: Adsense & Ads for phpBB

Post by charterschoolforums »

Sorry...fairly new to forum management. What do you mean by what kind of portal I'm using? I'm on 3.1.9. Not sure if I'm allowed to post a link to my site so you can see.
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Sunday 00:08
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Re: Adsense & Ads for phpBB

Post by Stoker »

You were referrring to the home page. What is that homepage?
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
charterschoolforums Offline
BBCoder I
BBCoder I
Posts: 3
Joined: 17 Aug 2016, 03:42
Local time: Saturday 15:08
Last active: -

Re: Adsense & Ads for phpBB

Post by charterschoolforums »

www.charterschoolforums.com is the home page.
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Sunday 00:08
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Re: Adsense & Ads for phpBB

Post by Stoker »

Okay, you want to remove it from forum index.

Open: stoker/adsenseads/styles/prosilver/template/event/overall_header_page_body_before.html Find This may be a partial find and not the whole line

Code: Select all

<!-- IF not S_IN_UCP -->
Replace with Replace the preceding lines with the following

Code: Select all

<!-- IF not (S_IN_UCP or SCRIPT_NAME == "index") -->
Purge cache
~ The greatest achievement in life is to inspire ~
Regards Stoker
No Avatar
Potku Offline
BBCoder II
BBCoder II
Posts: 25
Joined: 07 Jun 2010, 14:04
Local time: Sunday 00:08
Last active: -

Re: Adsense & Ads for phpBB

Post by Potku »

I reread this topic, but I couldn't find an answer to this.

The AdBlock Warning is activated, and page source says so, too. Still there is no warning when using AdBlock. Where did I go wrong? :)

Potku.net - Keskustelujen etusivu
http://potku.net/forum/index.php
You do not have the required permissions to view the files attached to this post.