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)
-   -   Forum Home Enhancements - Adsense Link Unit in Navbar (https://vborg.vbsupport.ru/showthread.php?t=146581)

StarBuG 05-05-2007 10:00 PM

Adsense Link Unit in Navbar
 
I made this template mod for my medical Forum and I decided to share this with you.
This is a very efficient placement for an adsense link unit, maybe the most efficient one for a vBulletin forum

What this hack does:
This modification displays the adsense Link Unit below the forum navigation so that it looks like a second row of navigation options.

See screenshots

I have this code running for nearly a year now on my forum and google said it was ok. But to make sure you should contact google and ask them if it complies with their ToS
NO WARRANTIES ;)

How to install:

In template navbar search:
Code:

<!-- / nav buttons bar -->
and add ABOVE:
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
  <td class="vbmenu_control">
    <!-- Adsense Link Unit Code 725x15 - 5 Ads -->
    <script type="text/javascript"><!--
    google_ad_client = "YOUR PUB ID HERE";
    google_ad_width = 728;
    google_ad_height = 15;
    google_ad_format = "728x15_0ads_al_s";
    google_color_border = "738FBF";
    google_color_bg = "738FBF";
    google_color_link = "ffffff";
    google_color_text = "000000";
    google_color_url = "000000";
    //-->
    </script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <!-- Adsense Link Unit Code 725x15 - 5 Ads -->
  </td>
  </tr>
    </table>

You now just need to customize the adsense code marked with:
<!-- Adsense Link Unit Code 725x15 - 5 Ads -->

replace "YOUR PUB ID HERE" with your pub-ID
and fit the colors of adsense to your color scheme

Demo: www.elternfragen.net

I hope you like it.

For another good adsense placement check out my mod:

Adsense as second post. 2 Sizes - Big for guests, small for members

Please click install if you use this mod.


I also would like some feedback about how it is working out for you ;)


Changelog:
v1.00 - 2007/07/22: NO CHANGES, just removed my Pub-ID from the hack!


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.

croportal 05-07-2007 06:41 PM

is this against google tos ?

StarBuG 05-07-2007 07:05 PM

People who can read clearly have an advantage ;)

Quote:

I have this code running for nearly a year now on my forum and google said it was ok. But to make sure you should contact google and ask them if it complies with their ToS
NO WARRANTIES ;)

StarBuG 05-08-2007 05:40 PM

Let me know if it works out for you.

The money part and googles response ;)

seangworld 05-21-2007 07:06 AM

this doesnt work. uninstalled.

StarBuG 05-21-2007 02:29 PM

What does not work?
The code does work, if it didn't on your site then you did something wrong ;)

Big_J 05-22-2007 03:41 PM

Nice mod, works well on my board.

Thanks

bongwater 06-03-2007 03:47 PM

excellent, this code has many different uses and can be inserted almost anywhere where you want in the forums

StarBuG 07-06-2007 02:47 PM

Quote:

Originally Posted by bongwater (Post 1260399)
excellent, this code has many different uses and can be inserted almost anywhere where you want in the forums

That is the basic of html templates and adsense.

However other placements won't be that effective as this one ;)

iamspookysdaddy 07-15-2007 06:19 PM

Nice Mod

Is there a way to help the adsense better reflect the content of the site.
One of my sites the eyesbehind.com is about conspiracies and that kind of content but the adsense is showing content for eye products and things like that.

Thanks :erm:

Nevermind I was impatient, I am now reflecting Aliens and all that good stuff.
Thanx:rolleyes:


All times are GMT. The time now is 10:12 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.01349 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete