PDA

View Full Version : vBulletin Blog - Adsense in Blog Navigation


StarBuG
10-10-2007, 10:00 PM
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:


$blogrules
and add below:


<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:


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


<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

[B]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.

StarBuG
10-11-2007, 07:56 AM
*Reserved*

PoetJA-1975
10-11-2007, 09:26 AM
hmmmmm

PoetJA-1975
10-12-2007, 06:22 AM
ok - yet another way to optimize for adsense clicks ;)
Thanx for the sharing = **INSTALLED**

Jacquii.

induslady
10-30-2007, 03:15 AM
Hello StarBug,

Thank you for this hack to display Google ads in Blog Navigation column in the left.

I have installed this in my forum. It looks great, except for one minor issue.

The text 'Google Ads' displayed at the bottom of the ads table is getting shrunk. I am attaching the screen shot here.

Please could you help me fix this.

Many Thanks!

StarBuG
10-30-2007, 03:12 PM
That is a google problem or a problem of your browser, not one of my mod.

Try CRTL + Shift + R for a complete reload of the page

induslady
10-31-2007, 05:58 PM
Hello StarBug,

I tried reloading the page several times, but in vain.

Please could you visit - http://www.indusladies.com/forums/blog.php

See the Google ad in the blog navigation column in the left, the word 'Ads by Google' isn't getting displayed properly. Not sure if it is got to do with reloading.

Thanks in advance for your suggestions.

StarBuG
10-31-2007, 06:52 PM
Looks good for me