Adding Google Adsense to phpBB3
[nodeinfo|56|body|0.81268400 1199307226][inline_autoadd][image=1]Recently, I have had several readers ask me how to add Google ads to phpBB3 forums. This is actually quite simple:
To add adsense to the header (above the forum topics):
Find the following in overall_header.html
- <tr>
- <td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
- <td class="gensmall" align="right">{CURRENT_TIME}<br /></td>
- </tr>
- </table>
- </div>
And change it to the following:
- <tr>
- <td class="gensmall"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
- <td class="gensmall" align="right">{CURRENT_TIME}<br /><div align="center">{your google code}</div></td>
- </tr>
- </table>
- </div>
To add adsense to the bottom of your forums, find the following in overall_footer.html:
- <div class="copyright">Powered by <a href="http://www.phpbb.com/">phpBB</a> {PHPBB_VERSION} © 2002-2006 phpBB Group
- </div>
And change it to the following:
- <div class="copyright">Powered by <a href="http://www.phpbb.com/">phpBB</a> {PHPBB_VERSION} © 2002-2006 phpBB Group
- <div class="copyright">
- <br>{YOUR GOOGLE CODE}<br/>
- <!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
- <!-- IF DEBUG_OUTPUT --><br />{DEBUG_OUTPUT}<!-- ENDIF -->
- <!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
- </div>
- </div>
- </div>
Please note that in both examples, you need to replace {YOUR GOOGLE CODE} with the Google generated code from the Adsense website.
Posted December 28th, 2007 by Michael

dCtzHrnsuf
, tramadol hcl-acetaminophen, what does xanax look like, buy ultram, xanax online, phentermine without a prescription, generic cialis,
zxiMlICskAgmpxblEev
affordable health insurance 90444 free slots online =DD affordable car insurance 2404 car insurence =(((