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.


15 Responses to “phpBB – Create a Vertical Cell or Pane on the Left Side of the Forum for Google AdSense”

  1. MeequeWaf
    November 17th, 2008 23:30
    15

    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

  2. maxpiut
    November 9th, 2008 06:43
    14

    Hi guys,

    just want to introduce myself on http://www.mydigitallife.info, hope this is the right category for that purpose.

    Greez,
    Max

  3. sharpbobby
    October 6th, 2008 04:22
    13

    Did you see it ? :) It’s simply beautyfull thing [u]http://adventures.110mb.com[/u]

  4. aljaska
    June 9th, 2008 17:13
    12

    дорогие родители!!
    хочу предложить вам свои услуги в качестве инструктора по динамической гимнастике с детьми от 0 до 1года;по плаванью и нырянию в любом возрасте.обучу вас работе с детьми.индивидуальная разработка спортивных комплексов и тренажеров.консультации по слингам и закаливанию.Сертификат РАЕН с правом на работу инструктором по динамической гимнастике и плаванию с новорожденными.Плавание с новорожденными, обучение плаванию младенцев, грудничковое плавание, наныривание, обучение плаванью детей, малыши плавают.
    egorchenko(собака)inbox.ru
    тел 8 926 186 15 74
    ICQ 236491607
    Елена

  5. ooooo
    March 26th, 2008 00:33
    11

    [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

  6. Jesse
    March 12th, 2008 02:48
    10

    Thanks, the code worked!

  7. hollywoodheidi
    October 20th, 2007 06:58
    9

    Hi! I just found this forum and it looks really cool.

    Now, I gotta run off and read some posts. :)

  8. Jamesbismo
    October 15th, 2007 10:04
    8

    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?

  9. Ryan Mullin
    September 11th, 2007 04:39
    7

    Thank you for this post it was very helpful. I could not have implemented adsense the way I wanted with out this.

  10. xiphoneguyx
    September 10th, 2007 20:37
    6

    Hi just coming to forum for first time.
    Having a look and finding many good posts.

    Thank you.
    xiphoneguyx

  11. hyteresaw
    April 19th, 2007 00:58
    5

    One old american man win in lotto 250 000 000$.
    I want win money too!!!!!!!!!!a-a-a-a
    Give me money!

  12. Mikey Spike
    April 9th, 2007 03:20
    4

    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

  13. Mikey Spike
    April 6th, 2007 06:05
    3

    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.

  14. hillbilly
    January 7th, 2007 16:34
    2

    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.

  15. DarlersPT
    November 24th, 2006 23:47
    1

    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.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

phpbb3 vertical ad - phpbb3 avatar on left side - how to add vertical widget in phpbb3? - insert my ads phpbb - insert table in phpbb - vertical border in android layout - phpbb adsense right side - how to add advertisements on the sides of phpbb3 subsilver - phpbb how to vertical add box - активация windows 7 ошибка 0x80070422 - putting adwords on phpbb3 - phpbb3 ads on left side - phpbb3 ads left side - phpBB2 add new page - phpbb3 avatars on the left side - searchbox phpbb insert - searchbox phpbb - Skyscraper ad on phpbb3 - phpbb3 adsense left side - skyscraper ad phpbb - skyscraper ad in phpbb - Сертификат РАЕН с правом на работу инструктором по динамической гимнастике и плаванию с новорожденными - adding kontera phpbb - phpbb3 site with google ad - adsense left side forums - phpbb3 adwords - creating adsense section in phpbb3 - code 3 vertical ads side by side -