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

Reply
 
Thread Tools
Google Adsense In Navbar Details »»
Google Adsense In Navbar
Version: 1.00, by dieselpowered dieselpowered is offline
Developer Last Online: Aug 2014 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-09-2005 Last Update: 12-09-2005 Installs: 94
Template Edits
 
No support by the author.

This is a really quick template change, just an additional location for those of you looking to add google adsense to your board.

In your navbar template find (there are multiple instances of this code, use the first instance):
Code:
<if condition="$show['member']">
Above this add:
Code:
<!-- start adsense code -->
<td class="alt2">
Your adsense code
</td>
<!-- /end adsense code -->
Thats it, your all done

Hope this helps someone out, I am far from a coder, however, wanted to atleast attempt to give back to the community If you happen to use, please CLICK INSTALL

Show Your Support

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

Comments
  #42  
Old 08-09-2006, 01:07 AM
Darwa Darwa is offline
 
Join Date: Jul 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found that by inserting the code before the second mention of <if condition="$show['member']"> and not the first, would make something appear, but not where this threads screenshot show it.

I'll leave it 'as is' for now at www.hairyjedi.com in the hope that someone can come to my aid and explain what's going wrong.

Thanks.
Reply With Quote
  #43  
Old 12-24-2006, 02:56 AM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works perfect in 3.6.4 in case anyone wanted to know.
Reply With Quote
  #44  
Old 02-21-2007, 12:46 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does not look right in firefix with the guest message added.... Either a conditional should be used to only let logged in members see it or maybe a conditional to stop firefox from seeing it....
Reply With Quote
  #45  
Old 02-21-2007, 08:30 AM
seangworld's Avatar
seangworld seangworld is offline
 
Join Date: Sep 2002
Location: Chesapeake, VA
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in the instructions, you stated to use the first instance, i (and prolly others) actually needed to use the SECOND instance. just in case someone gets stuck.

it might be cuz i have the double navbar.

*clicks install*
Reply With Quote
  #46  
Old 02-24-2007, 12:41 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works perfectly when members are logged in but when a guest views unfortunatly the ads throw off my welcome template... I think it kind of defeats the purpose for me to use a conditional so only members can see it...

Has anyone else had this problem?? Go to your site while not being logged in and see what the ads look like or go to my site www.talkandmore.net .. I have taken the ads out but you will see my guest message and know what I mean..

Any correction for this?

Thanks
Reply With Quote
  #47  
Old 02-26-2007, 03:35 AM
efil's Avatar
efil efil is offline
 
Join Date: Nov 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
the Google AdSense in forumhome appear at the left. i need it at center.

How can i do it?
Reply With Quote
  #48  
Old 05-23-2007, 08:43 PM
sinistergaming's Avatar
sinistergaming sinistergaming is offline
 
Join Date: Jan 2007
Location: WorldWide
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the FORUMHOME template find this code: $navbar
Or Add It to The Very End Of Your NAVBAR Template



Add this below it:


<!-- custom block start -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('custom_block')">
<img id="collapseimg_custom_block" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_custom_block].gif" alt="" border="0" /></a>
<!-- title start -->
Title goes here
<!-- title end -->
</td>
</tr>
</tbody>
<tbody id="collapseobj_custom_block" style="$vbcollapse[collapseobj_custom_block]">
<tr>
<td class="alt2">
<!-- code start -->
Add your code here
<!-- code end -->
</td>
</tr>
</tbody>
</table>
<br />
<!-- custom block end -->


This also XHTML and CSS valid and will keep your homepage validated OK.

change this in the code: to "1" or "2" for colour you prefer for block background colour.

<td class="alt2">


If you don't want the block to be collasible, use this instead:



<!-- custom block start -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat">
<!-- title start -->
Title goes here
<!-- title end -->
</td>
</tr>
<tr>
<td class="alt2">
<!-- code start -->
Add your code here
<!-- code end -->
</td>
</tr>
</tbody>
</table>
<br />
<!-- custom block end -->
Reply With Quote
  #49  
Old 03-02-2008, 09:38 PM
Realbigsource's Avatar
Realbigsource Realbigsource is offline
 
Join Date: Feb 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where do I find the Nave Bar?
Reply With Quote
  #50  
Old 03-22-2008, 07:58 PM
Serkan Yılmaz Serkan Yılmaz is offline
 
Join Date: Aug 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Teşekkurler arkadaşlar(Thank you)
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 10:38 AM.


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.04275 seconds
  • Memory Usage 2,297KB
  • Queries Executed 24 (?)
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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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