Adsense for phpBB 3.1.X

Extensions & Styles for phpBB 3.1.X maintained and supported by 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:

Adsense for phpBB 3.1.X

Post by Stoker »

You probably want to use this version instead! Adsense & Ads for phpBB
That is the current version used here.

Extension Name: Adsense for phpBB 3.1.X
Author: Stoker

Description:
Easy way to display adsense on your forum. It will display one in the header, 3 on forum index and 3 in viewtopic.
On my site I use a link unit in the header

Please make a Donation

Requirements: You need to be able to do the html edits yourself.

Version: 1.0.0
100%
Download:
adsense_3.1.X.zip
(15.55 KiB) Downloaded 2241 times
Installation:
  1. Open the 3 files in ext/stoker/ads/styles/all/template/event insert your own adsense code, edit the files as you like. In viewtopic a warning will be displayed if the visitor is using an adblocker, you might want to edit this as well. Note that this part doesnt work if you use responsive ad units. If so, you need to remove that part of the code
  2. Copy the entire contents of the repository to ext/stoker/ads/ and images to images
  3. Navigate in the ACP to Customise -> Extension Management -> Extensions.
  4. Click Enable.
  5. Remeber to purge cache each time you edit the templates after the installation
Board rules! No PM support
User avatar
dmzx
BBCoder II
BBCoder II
Posts: 23
Joined: 02 Mar 2014, 14:30
BBCodes: 0
Contact:

Re: Adsense for phpBB 3.1.X

Post by dmzx »

and 3 in wiewtopic must be viewtopic
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 for phpBB 3.1.X

Post by Stoker »

Its the exact same as I use here. So use this site as demo :)
Board rules! No PM support
User avatar
RMcGirr83
BBCoder III
BBCoder III
Posts: 104
Joined: 08 Mar 2010, 13:17
Favourite MOD: mChat
Contact:

Re: Adsense for phpBB 3.1.X

Post by RMcGirr83 »

Stoker wrote: Open the 3 files in ext/stoker/ads/styles/all/template/event insert your own adsense code, edit the files as you like.
Should be in the ACP instead of requiring files to be altered.
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 for phpBB 3.1.X

Post by Stoker »

RMcGirr83 wrote:
Stoker wrote: Open the 3 files in ext/stoker/ads/styles/all/template/event insert your own adsense code, edit the files as you like.
Should be in the ACP instead of requiring files to be altered.
No, this is created for my own use. I only need to edit those files once. ACP and database is is overkill for something like this.
Board rules! No PM support
User avatar
RMcGirr83
BBCoder III
BBCoder III
Posts: 104
Joined: 08 Mar 2010, 13:17
Favourite MOD: mChat
Contact:

Re: Adsense for phpBB 3.1.X

Post by RMcGirr83 »

Someone told me once that ACP entries should be used for my stopforum spam mod which required less edits than this does.

So what is overkill again?

PS Make a github account you nub! :P
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Re: Adsense for phpBB 3.1.X

Post by martin123456 »

:lol: :lol: :lol: Get him Rich.

Oh wait i'l hold him and you kick him ;)
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 for phpBB 3.1.X

Post by Stoker »

So many funny guys around here tonight :D
Board rules! No PM support
Oyabun1
BBCoder II
BBCoder II
Posts: 10
Joined: 05 Mar 2010, 23:49

Re: Adsense for phpBB 3.1.X

Post by Oyabun1 »

Ads shouldn't be placed in the header because that shows on non content pages, which is against the Google Adsense rules:
Ads on thank you, exit, log in, or error pages wrote:Publishers are not permitted to place ads on any non-content based pages like thank you, error, log in, or exit pages. These are pages that visitors see on a site before potentially leaving the domain or after performing a specific action on the site such as a purchase or download.
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 for phpBB 3.1.X

Post by Stoker »

That never caused me any problems an the adsense team have checked the site.
Board rules! No PM support
Post Reply