Page 1 of 6

Adsense for phpBB 3.1.X

Posted: 15 Nov 2014, 08:08
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 2242 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

Re: Adsense for phpBB 3.1.X

Posted: 15 Nov 2014, 22:59
by dmzx
and 3 in wiewtopic must be viewtopic

Re: Adsense for phpBB 3.1.X

Posted: 15 Nov 2014, 23:00
by Stoker
Its the exact same as I use here. So use this site as demo :)

Re: Adsense for phpBB 3.1.X

Posted: 17 Nov 2014, 20:37
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.

Re: Adsense for phpBB 3.1.X

Posted: 17 Nov 2014, 21:14
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.

Re: Adsense for phpBB 3.1.X

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

Re: Adsense for phpBB 3.1.X

Posted: 17 Nov 2014, 21:50
by martin123456
:lol: :lol: :lol: Get him Rich.

Oh wait i'l hold him and you kick him ;)

Re: Adsense for phpBB 3.1.X

Posted: 17 Nov 2014, 22:46
by Stoker
So many funny guys around here tonight :D

Re: Adsense for phpBB 3.1.X

Posted: 12 Dec 2014, 08:56
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.

Re: Adsense for phpBB 3.1.X

Posted: 12 Dec 2014, 13:27
by Stoker
That never caused me any problems an the adsense team have checked the site.