How to put Adsense in first post of PHPbb3

phpbb logo How to put Adsense in first post of PHPbb3 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 = “728x15_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 = “336x280_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!!

Related posts:

  1. How to put Adsense in viewtopic section of PHPbb3
  2. How to put Adsense in viewforum section of PHPbb3
  3. How to put Adsense in Index section of PHPbb3
  4. Rapidshare Reply for my complain

One response to “How to put Adsense in first post of PHPbb3”

  1. Murali

    These posts are very useful for me ….. Thank you very much for the help.

Leave a Reply

* Copy this password:

* Type or paste password here: