phpBB – Create a Vertical Cell or Pane on the Left Side of the Forum for Google AdSense
This step by step guide will add a vertical cell / pane on the left hand side of the phpBB board, which can be used to accomodate a Google AdSense Skyscraper or Wide Skyscraper ads.
Due to Google AdSense’s terms and conditions, the AdSense ads shouldn’t appear on every page. The pages that shouldn’t have any Google AdSense ads includes, but not limited to, such as log-in page, member-lists and search-results pages. Apart from violating Google AdSense’s terms and conditions, you may found that the ads won’t get good results in these pages because there is insufficient content to deliver meaningful ads.
So, the best place to put the Google AdSense ads is on the index page, the forum page, and the topic page.
The layout of these pages is controlled by the following (.tpl) template files:
index_body.tpl – For the index page.
viewforum_body.tpl – For the forum page.
viewtopic_body.tpl – For the topic page.
So for each of these files, a left side vertical cell needs to be added in order to add the Google AdSense code.
These files can be found at the forum web server in this directory:
templates/subSilver
These files are text files. Open the files in any text editor, make the changes, then save them. If you downloaded them to edit them, you will need to upload the modified versions to the same templates/subSilver directory.
Basically, the following changes will add a table with two cells to each page. The left cell will contain the Google AdSense ads. The right cell will contain the forum information.
index_body.tpl
Open index_body.tpl in any text editor.
Locate these lines in the file (roughly lines 12, 13, 14):
<a href=”{U_SEARCH_UNANSWERED}” mce_href=”{U_SEARCH_UNANSWERED}” class=”gensmall”>{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
BELOW these lines, insert this code:
<table width=”100%” border=”0″><tr><td valign=”top”>
Google AdSense Code
</td>
<td width=”100%” valign=”top”>
This section of code should now looks like this:
<a href=”{U_SEARCH_UNANSWERED}” mce_href=”{U_SEARCH_UNANSWERED}” class=”gensmall”>{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
<table width=”100%” border=”0″><tr><td valign=”top”>
Google AdSense Code
</td>
<td width=”100%” valign=”top”>
Replace the words Google AdSense Code with your actual Google AdSense code.
Locate these lines (near the bottom):
<table cellspacing=”3″ border=”0″ align=”center” cellpadding=”0″>
<tr>
<td width=”20″ align=”center”><img src=”templates/subSilver/images/folder_new_big.gif” mce_src=”templates/subSilver/images/folder_new_big.gif” alt=”{L_NEW_POSTS}”/></td>
ABOVE these lines, insert this code:
</td>
</tr></table>
This section of code should now looks like this:
</td>
</tr></table>
<table cellspacing=”3″ border=”0″ align=”center” cellpadding=”0″>
<tr>
<td width=”20″ align=”center”><img src=”templates/subSilver/images/folder_new_big.gif” mce_src=”templates/subSilver/images/folder_new_big.gif” alt=”{L_NEW_POSTS}”/></td>
viewforum_body.tpl
Open viewforum_body.tpl in any text editor.
Locate this line in the file (roughly line 15):
<table border=”0″ cellpadding=”4″ cellspacing=”1″ width=”100%” class=”forumline”>
ABOVE this line, include this code:
<table width=”100%” border=”0″><tr><td valign=”top”>
Google AdSense Code
</td>
<td width=”100%” valign=”top”>
This section of code should now looks like this:
<table width=”100%” border=”0″><tr><td valign=”top”>
Google AdSense Code
</td>
<td width=”100%” valign=”top”>
<table border=”0″ cellpadding=”4″ cellspacing=”1″ width=”100%” class=”forumline”>
As above, replace the words Google AdSense Code with actual Google AdSense Code.
Locate this line (last line):
</table>
BELOW this line, include this code:
</td>
</tr></table>
This section of code should now look like this:
</table>
</td>
</tr></table>
viewtopic_body.tpl
Open viewtopic_body in any text editor.
Locate this line in the file (possibly line 1):
<table class=”forumline” width=”100%” cellspacing=”1″ cellpadding=”3″ border=”0″>
ABOVE this line, include this code:
<table width=”100%” border=”0″><tr><td valign=”top”>
Google AdSense Code
</td>
<td width=”100%” valign=”top”>
This section of code should now looks like this:
<table width=”100%” border=”0″><tr><td valign=”top”>
Google AdSense Code
</td>
<td width=”100%” valign=”top”>
<table class=”forumline” width=”100%” cellspacing=”1″ cellpadding=”3″ border=”0″>
As above, remember to replace the words Google AdSense Code with the actual Google AdSense code.
Locate this line (last line in the file):
</table>
BELOW this line, include this code:
</td>
</tr></table>
This section of code should now look like this:
</table>
</td>
</tr></table>
Google AdSense Colour Code for Standard Colours of phpBB subSilver Forum
006699 darkish blue-green – for ad border and links.
000000 black – for text.
EFEFEF light grey – for ad background.
The only other issue is in the topic page at resolution 800×600 where the page is a little too wide for the screen. There’s a lot of competition for space there! There’s the Google ads, avatars and poster info, plus the post itself, all going across the page.
The modification with Wide Skycraper Google AdSense ads looks perfect in screen resolution of 1024×768. To accomodate lower screen resolution, it’s better to use narrower Skycraper instead of Wide Skycraper.
Related Articles
- Monitor Google AdSense Account With Shock AdSense
- Add and Put AdSense Ads Code and JavaScript to Google Page Creator Website
- AdSense Login to Update to Google Account
- How to Reset AdSense Password Not Associated with Google Account
- google_ad_host Host ID in Google AdSense Ad Unit Code and Revenue Sharing
- Fix Call to Undefined Function read_global() Error in Google AdSense Mobile Content PHP Ad Code
- How to Remove or Delete (Unlink) Google AdSense and Analytics Integration
- Set Allowed Sites for Google AdSense Publisher Account
- Change to ads about Feature in Google Adsense Ads










































November 17th, 2008 23:30
Hi guys,
My problemm: my pc worked slowly, fast reeboot and some others.
Please, help me to fix it – I need some sites, that consist info, how can I do it.
With best regards,
MeequeWaf
November 9th, 2008 06:43
Hi guys,
just want to introduce myself on http://www.mydigitallife.info, hope this is the right category for that purpose.
Greez,
Max
October 6th, 2008 04:22
Did you see it ?
It’s simply beautyfull thing [u]http://adventures.110mb.com[/u]
June 9th, 2008 17:13
дорогие родители!!
хочу предложить вам свои услуги в качестве инструктора по динамической гимнастике с детьми от 0 до 1года;по плаванью и нырянию в любом возрасте.обучу вас работе с детьми.индивидуальная разработка спортивных комплексов и тренажеров.консультации по слингам и закаливанию.Сертификат РАЕН с правом на работу инструктором по динамической гимнастике и плаванию с новорожденными.Плавание с новорожденными, обучение плаванию младенцев, грудничковое плавание, наныривание, обучение плаванью детей, малыши плавают.
egorchenko(собака)inbox.ru
тел 8 926 186 15 74
ICQ 236491607
Елена
March 26th, 2008 00:33
[SIZE="4"]Предлагаю раскрутку вашего сайта методом массовой рассылки сообщений по форумам[/SIZE]
[SIZE="2"][I][COLOR="Blue"]
Основные преимущества перед обычной СПАМ-рассылкой[/I][/SIZE][/COLOR]
[COLOR="DeepSkyBlue"]*В отличие от e-mail СПАМ’а данный метод продвижения сайта [B]не преследуется УК.РФ [/B]
*Поднятие ТиЦ более чем на 70ед.
*Быстрая индексация сайта поисковиками
[/COLOR]
[COLOR="Blue"][SIZE="2"][I]Особенности.[/I][/SIZE][/COLOR]
[COLOR="Lime"]*Рассылка ведётся с помощью специализированного программного комплекса,
который позволяет обойти практически все типы защиты от автоматической регистрации такие как: [/COLOR]
[SIZE="1"][I] – Защита при помощи пиктокода (тикетов) типа “Введите число, которое видите”
- Защита при помощи активации по e-mail.
- Защита при помощи некоторых Java-скриптов.[/I][/SIZE]
[COLOR="Lime"]
*Рассылка ведётся по [I]тематическим[/I] форумам, что позволяет получить максимально качественный траффик
*Скорость рассылки ~4тыс. сообщений в час
[/COLOR]
Цены: 15тыс. форумов-120$
Просьба связываться со мной только через ICQ.
ICQ 432-992
March 12th, 2008 02:48
Thanks, the code worked!
October 20th, 2007 06:58
Hi! I just found this forum and it looks really cool.
Now, I gotta run off and read some posts.
October 15th, 2007 10:04
Those bastards owe me money, they refuse to pay. Good job Shoemoney [img]http://funnycrud.net/thumbs.gif[/img]
Bah, anyway, anyone else have probs with these douches?
September 11th, 2007 04:39
Thank you for this post it was very helpful. I could not have implemented adsense the way I wanted with out this.
September 10th, 2007 20:37
Hi just coming to forum for first time.
Having a look and finding many good posts.
Thank you.
xiphoneguyx
April 19th, 2007 00:58
One old american man win in lotto 250 000 000$.
I want win money too!!!!!!!!!!a-a-a-a
Give me money!
April 9th, 2007 03:20
One thing to watch out for though. Make sure that you watch out for the formatting on the parentheses marks. You will end up with a funky looking table around the adsense and forum tables if you are not careful See this page for more details
http://www.phpbb.com/community/viewtopic.php?f=1&t=530828&start=0&st=0&sk=t&sd=a
April 6th, 2007 06:05
Thanks for this!!! Worked like a charm. I wish you had more adsense “fixes” like this for PHPBB. I am SHITE at editing the tpl and php files. I woul love to see how you add a link across the yop, and a search box. Adding Kontera would be nice too. Glad somebody out there understands this stuff.
Cheers, M.
January 7th, 2007 16:34
Hi.
Nice site design. Okay, I need your help.
So, I wanna make my little sister’s site, and I am looking for site template.
Can you suggest some online store or other resource where I can find many site templates?
It would be better if it will be free:)
I think many of us have personal sites, do you design it yourself?
Thx, Bill.
November 24th, 2006 23:47
I’m looking for any information of XRUMER program.
Can you help me? Or give me a link to the official site with this program.