Back to vBulletin 3.6 Template Modifications

Adsense in Blog Navigation
Mod Version: 1.00, by StarBuG

This modification is in the archives.
vB Version: 3.6.8 Rating: (3 votes - 5.00 average) Installs: 15
Released: 11 Oct 2007 Last Update: 11 Oct 2007 Downloads: 34
Not Supported Template Edits  

Hi

To continue my Adsense modification series I decided to make my blog placements public.

What this hack does:
This hack adds a small square 200x200px Adsense Banner into the Blog navigation on the left below blog options and above blog search

Install:

In Template blog_sidebar_user search for:

Code:
$blogrules
and add below:

Code:
<div class="tborder" style="margin-top:$stylevar[cellpadding]px">
<!-- 200x200 small square in blog navigation -->
<script type="text/javascript"><!--
google_ad_client = "YOUR PUB ID HERE";
google_alternate_color = "F5F5FF";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_ad_type = "text";
google_color_border = "354F81";
google_color_bg = "F5F5FF";
google_color_link = "22229c";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- 200x200 small square in blog navigation -->
</div>
In Template blog_sidebar_generic search for:

Code:
<a href="blog_usercp.php$session[sessionurl_q]">$vbphrase[blog_control_panel]</a>
            </div>
            </if>
        </div>
    </div>
and add below:

Code:
<div class="tborder" style="margin-top:$stylevar[cellpadding]px">
<!-- 200x200 small square in blog navigation -->
<script type="text/javascript"><!--
google_ad_client = "YOUR PUB ID HERE";
google_alternate_color = "F5F5FF";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_ad_type = "text";
google_color_border = "354F81";
google_color_bg = "F5F5FF";
google_color_link = "22229c";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- 200x200 small square in blog navigation -->
</div>
Now you just need to customize the adsense code marked with:

<!-- 200x200 small square in blog navigation -->

replace "YOUR PUB ID HERE" with your pub-ID
and change the colors to fit your forum colors

DEMO: http://www.patientenfragen.net/blog.php

Please click install and leave feedback, if you use this mod. THX

StarBuG

If you did not register for an Adsense account yet but you plan to, feel free to contact me. If you register via my referral I am willing to help you get the most out of your adsense placement by assisting you during the setup process and implementing the best adsense modifications. Just write me a Private message.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s install_adsense_in_blog_navigation.txt (2.8 KB, 34 downloads)

Screenshots

Click image for larger version
Name:	adsense_blog_navigation.jpg
Views:	247
Size:	27.6 KB
ID:	70874  


vblts.ru supports vBulletin®, 2022-2024