Adsense in PhpBB3

Discussion in 'Web Design and Development' started by patmort02, Jan 31, 2009.

  1. patmort02 macrumors member

    Mar 2, 2006
    Can anyone provide/know of a good tutorial for implementing Google Adsense into a PhpBB3 forum? I have searched for it in google, but without much luck.

    Any help would be much appreciated!
  2. SrWebDeveloper macrumors 68000


    Dec 7, 2007
    Alexandria, VA, USA
    Copy/paste the Adsense code Google provides into either the index_body, viewforum_body and viewtopic_body.html PHPBB3 template file for each skin where you want the ad to display. Use the Admin Control Panel to edit your template files. Meaning, it's up to you to decide where to put it, it's just a simple matter of editing a template file to add the code. BTW, don't forget to refresh the theme/template/imageset after you edit/save templates so that the changes take effect.

    index_body.html is the main forum listing (forum home)
    viewforum_body.html is the forum page listing all the topics
    viewtopic_body.html is the specific topic being viewed

    Of course you can put it in any other template you wish, the above are the most common and most visible to users, that's all.

  3. patmort02 thread starter macrumors member

    Mar 2, 2006

Share This Page