Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

patmort02

macrumors member
Original poster
Mar 2, 2006
75
0
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!
 
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.

-jim
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.