Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense Link Unit in Navbar Details »»
Adsense Link Unit in Navbar
Version: 1.01, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.5 Rating:
Released: 05-05-2007 Last Update: 07-21-2007 Installs: 53
Template Edits
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 10-26-2007, 01:22 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm confused about something maybe someone can help me out, we are allowed 3 ads per page right ? well when this is added by the way great codes, now this will go to every pages when members are browsing and i got more adds there so when this follows it will bring it to 4 but in the main forum I'm 3 as it should be.. any advice to how to avoid the TOS

Same with the inside posts, when does the count starts ? so we got one on the nav one below nav and on my forum one on the footer which no matter where u go those will go with u.. Footer / Nav so do these 2 count for pages or since they are solid they dont count ??????

you see in the forum we have so many pages, but same headers and same footer and this is what makes the 3 ads per page confusing...
Reply With Quote
  #23  
Old 10-27-2007, 02:21 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are allowed to have:
3 banner ads
3 link units
and unlimited referrals per page
Reply With Quote
  #24  
Old 11-03-2007, 11:31 PM
hipgirl hipgirl is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot. Marked installed.

I do have a question. Please see attached screen shot. There is a blue line between navbar menu and google ads (where the arrow points). Could you help me remove it?

I used the 4 ads unit instead of 5 because the font size are the same as menu. I have to change the google ad width from 728 to 770 so the 4 ad unit will spread evenly (1 under 'new post' and 1 under 'quick links'.

Thanks again.

Michelle
www.hipgirlclips.com/forums
Reply With Quote
  #25  
Old 11-04-2007, 09:39 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't change the google ad width, that is not allowed!
They have a fixed width
Reply With Quote
  #26  
Old 11-05-2007, 03:44 AM
hipgirl hipgirl is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. I changed the width back.

In your snap shot, there is no line between nav bar menu and the adsend link unit. But I have a blue line. I'm not sure how to remove it. Could you help?

Thanks a lot.

Michelle
Reply With Quote
  #27  
Old 11-06-2007, 04:05 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that this is defined by the border color you set in your style.
I have the exact same code implemented into my forum.

StarBuG
Reply With Quote
  #28  
Old 11-12-2007, 12:51 PM
csavern csavern is offline
 
Join Date: Feb 2007
Location: Texas
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When i put this code in for some reason it centers the everything on the forum
i cant have everything centered is there away to change this
Reply With Quote
  #29  
Old 11-12-2007, 01:47 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You probably forgot to close my table.
Check the code again you entered.

Or you removed a </div>

If everything fails, restore the template to its original and try it again.
Reply With Quote
  #30  
Old 12-15-2007, 08:47 AM
AmbitiousOne AmbitiousOne is offline
 
Join Date: May 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is where I put mine.

http://2kfreak.com/forums/index.php

I dont' see why I would need to contact google of TOS. This is clearly a "read" issue. If the use his/her eyes, no reason to get punished for wrongful clicking.
Reply With Quote
  #31  
Old 03-22-2008, 08:19 PM
ivanstanchev ivanstanchev is offline
 
Join Date: Mar 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this safe ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13134 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete