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.

Leave a Reply