Adding AdSense to a phpBB3 Forum

by Jeremy on November 23, 2009

phpbb3-adsense

Usually when you add AdSense to the pages of your website or blog, you might just add the code to your header, ensuring that it will show up on every page.  There’s a catch, though.  It’s actually against Google’s Terms of Service to have your advertising show up on all pages.  You’re supposed to exclude registration pages, and things of that sort.  This may have changed, but I know at one time it was the case.

There’s an easy workaround, though.  You just have to add your ad code to some specific sections of the forum.

In the Admin Panel, go to Styles – Templates – (your template name).

The first one is “index_body.html“.

The second file is “viewforum_body.html

The third all the way near the bottom, and is called “viewtopic_body.html

That’s it!  A quick and easy way to keep yourself from getting into accidental trouble!

Related posts:

  1. SEO for Page Titles in phpBB3
  2. PhpBB3 Forum RSS Feeds
  3. Anti Bot Question Mod for phpBB3
  4. PhpBB3 Update Turns Off Active Topics

Leave a Comment

Previous post:

Next post: