hello is it possible to put the google adsense code in a separate file 'adsense.php' and then i put this command in 'index.php' : include ('adsense.php') if this is possible.. how can i do it plz ?
This site should be handy http://www.phpbb.com/kb/article.php?article_id=153 I've been looking into it recently, and although not very specific, it gives a decent idea of what should be done.
This guy at this site showed me how to put the adsense on phpBB. Just an FYI: http://letstalkcoding.com/ WhyNotMe http://letstalkcoding.com/
I did mine like this: OPEN - includes/page_header.php FIND define('HEADER_INC', TRUE); AFTER ADD if ( $userdata['session_logged_in'] && ($googlead=="1") ){ $google_ad = ''; } else if ($googlead=="1") { $google_ad = '<table class="forumline" width="95%" cellspacing="1" cellpadding="3" border="0"> <tr> <td class="row1" height="100%" valign="top"> <div align="center"> ADSENSE CODE HERE </div> </td> </tr> </table>'; } OPEN - templates/yourtemplate/overall_header.tpl ADD THIS WHEREEVER YOU WANT {GOOGLE_AD} Code (markup): Now you can add this at the top of the php files (before define('IN_PHPBB', true) where you want the ad to show (index.php, viewtopic.php, viewforum.php and so on) $googlead="1"; Code (markup): I use it on my aibo forum if you want to check it out.
There's a great step-by-step guide to adding adverts after every first post at: http://www.askdavetaylor.com/phpbb_trick_for_including_google_adsense_between_articles.html No mods needed, and very simple to follow! You can see the results at: http://www.moonrobot.org/phpbb/ Cheers, doorbeck
Here is great tutorial about adding Google AdSense Ads to phpBB3 forum. Looks great and completely Google AdSense Program Policies friendly. http://save.link.ba/index.html
I started a forum today but finding it really difficult to customize and add external links. I would really appreciate if you could tell me how to add favicon, logo and adsense link ad on top (I'll be adding it once I start to get some traffic, not now) to my phpbb forum.