Articles Comments

Computer Tips and Tricks | WordPress Technology Hints » PHPBB Tips » PHPBB Forum – How to add AdSense sky scraper banner ads to either side of your forum

PHPBB Forum – How to add AdSense sky scraper banner ads to either side of your forum

This is very easy to apply in 7 easy steps and works perfect with the standard ProSilverĀ  template ranges.

To see an example see – http://www.catforumchat.com

Step:1

open:
styles/yourstyle/theme/content.css
add at bottom of page
add
—————————————————————————————————————-

Code: Select all
Select all
.page-sidebarr {
float:right;
margin-top:0px;
width: 10%;
}
.page-sidebarl {
float:left;
margin-top:0px;
width: 10%;
}

—————————————————————————————–

Step:2

You would have to edit the width variable for tweeking to fit your forum

open:
style/yourstyle/theme/common.css
find

—————————————————————————————————————-

Code: Select all
Select all
#wrap {

—————————————————————————————————————-
change to as follows:-
change

—————————————————————————————————————-
Select all
#wrap {
padding: 0 10px;
margin: 0 auto;
width: 75%;
min-width: 65%;
}

—————————————————————————————————————-

Step:3

open:
styles/your style/template/overall_header.html
add right at the bottom of page
add

<table width="100%" cellpadding="0" border="0">
<tr>
<td width="160" valign="top">
<div><!-- INCLUDE sidebarl.html --></div>
</td>
<td valign="top">

—————————————————————————————————————-

Step:4

open:
styles/your style/template/overall_footer.html
add right at the top of page
add

—————————————————————————————————————-


</div>
</td>
<td width="160" valign="top">
<div><!-- INCLUDE sidebarr.html --></div>
</td>
</tr>
</table>

—————————————————————————————————————-

Step:5

now create to standard html files as below and past your add code into the files.
sidebarl.html ( left side )
sidebarr.html (right side)

Step:6

Now save files into /styles/your style/template

Step:7

Now clear your forum cache.

Written by

Filed under: PHPBB Tips · Tags: , ,

5 Responses to "PHPBB Forum – How to add AdSense sky scraper banner ads to either side of your forum"

  1. Martin says:

    Worked a treat for my forum, thanks craig

  2. Bara says:

    I think this would have worked perfectly, had I not already mod-ed my forum with a fixed width banner -and so it’s looking a bit weird! Do you happen to know a fix for this problem? Thanks!

  3. Martin says:

    Hi Bara,
    This is not one I’ve head of – what is your forum page that has the problem so I can take a look and what it’s doing?

  4. Hi
    I am stuck at step 1 cos i could not find styles/yourstyle/theme/content.css.
    i am using phpbb 3.
    THANKS!

  5. martinglover says:

    It just means you need to find the content.css file in your theme. Where it says “yourstyle” replace that with the name of your theme.

Leave a Reply

*


*

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