If you are using PHPBB (PHP Bulletin Board) you likely want to make some money using Google Ads.  If you are using the latest branch of PHPBB 3.1.x youphp_bb_logo-sm likely have already figured out that you need to add your Google AdSense code to:


but now you can’t figure out how to center that advertisement.  The answer is to add a CENTER command around the AdSense text like:

<div align=”center”>
Insert your Google AdSense Code Here

In my case, the result looked like:

 <div align=”center”>
<script type=”text/javascript”><!–
google_ad_client = “pub-8112679970043366”;
/* 728×90, created 9/2/08 */
google_ad_slot = “1017690586”;
google_ad_width = 728;
google_ad_height = 90;
<script type=”text/javascript”

Make sure you to go to the ADMINISTRATOR CONTROL PANEL > GENERAL tab > PURGE CACHE button, to clear the old cache, otherwise you will not see your changes when you click refresh on your browser.

You can see my fine work on Commodore Computer PET, VIC, 64, 128 User Forum



Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *