This entry was posted on Thursday, May 29th, 2008 at 8:37 am and is filed under How to put Google Adsense in PHPbb3. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Site Search:
May 29, 2008
You’ll get better results if you put Adsense in every first post
posted on your phpBB3 forum. Here’s a simple guide on just how
to do that.
1. Go to Administration Control Panel. Click on STYLES, then
on Themes and then click on Edit, near the prosilver template.
At the bottom paste:
a body {
max-width: 1024px;
margin: 0px auto;
}
ul.forums1 {
background-color: #cddeee;
}
li.row1 {
border-top: 1px solid #FFFFFF;
}
dd.mali span {
display: block;
padding-left: 10px;
}
dd.veliki span {
display: block;
padding-left: 10px;
}
2. Go to Administration Control Panel. Click on STYLES, then
on Templates, and then click on Edit, near the prosilver
template
3. Choose viewtopic_body.html Template file.
4. In template editor find
<div class=”content”>{postrow.MESSAGE}</div>
4.1. Before <div class=”content”>{postrow.MESSAGE}</div> insert
code:
<!– IF postrow.S_FIRST_ROW –>
<script type=”text/javascript”><!–
google_ad_client = “pub-XXX”;
google_alternate_ad_url =
“http://vin5.com/forum/google_adsense_script.html”;
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = “728×15_0ads_al_s”;
google_ad_channel = “”;
google_color_border = “e1ebf2″;
google_color_bg = “e1ebf2″;
google_color_link = “10508b”;
google_color_text = “4a5d73″;
google_color_url = “ac0000″;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
<br><br>
<!– ENDIF –>
4.2. After <div class=”content”>{postrow.MESSAGE}</div> insert
code:
<!– IF postrow.S_FIRST_ROW –>
<br><br>
<script type=”text/javascript”><!–
google_ad_client = “pub-XXX”;
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = “336×280_as”;
google_ad_type = “text_image”;
google_ad_channel = “”;
google_color_border = “e1ebf2″;
google_color_bg = “e1ebf2″;
google_color_link = “10508b”;
google_color_text = “4a5d73″;
google_color_url = “ac0000″;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
<!– ENDIF –>
REMEMBER TO CHANGE THE GOOGLE ADSENSE ID
(google_ad_client) TO YOUR OWN ID!!
read comments (0)
Related Posts
Leave a Reply
You must be logged in to post a comment.


