vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   vBulletin Blog - Adsense in Blog Navigation (https://vborg.vbsupport.ru/showthread.php?t=159987)

StarBuG 10-10-2007 10:00 PM

Adsense in Blog Navigation
 
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.

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


All times are GMT. The time now is 04:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01432 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete