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
Add Google adsense search to your navbar dropdown Details »»
Add Google adsense search to your navbar dropdown
Version: 1.00, by ericgtr ericgtr is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-17-2005 Last Update: Never Installs: 91
Template Edits
 
No support by the author.

For any of you running adsense, using the adsense search on your site will generate more revenue. If you don't already have it setup, log into your adsense account and click on the "AdSense for Search" link then customize it to your liking. More so to make it fit better in the dropdown box. You may also add your site to the search, it will generate more clicks.

Now add it do your Search dropdown, in the navbar template find:
Code:
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
		</tr>
Add this underneath:
Code:
		<tr>
			<td class="thead">Search Google</td>
		</tr>
<!-- SiteSearch Google -->
replace this text with your adsense search code
<!-- SiteSearch Google -->

Show Your Support

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

Comments
  #2  
Old 12-18-2005, 07:53 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What an awsome idea! Thanks for sharing this!
Reply With Quote
  #3  
Old 12-18-2005, 08:06 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure It's a boring Sunday and it's snowing out so I decided to share some of my template mods with the group.
Reply With Quote
  #4  
Old 12-18-2005, 10:27 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Since I added this in the other modification (same thing as this) I figure I will add it here too.

This attachment explains how to give the google search its own dropmenu which gives it more attention and more revenue for you.

This is the other thread that does the same thing as this one:

https://vborg.vbsupport.ru/showthrea...ghlight=google
Reply With Quote
  #5  
Old 12-18-2005, 10:34 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this. The reason I decided to add this to the existing search is because that's the one I think most people will use, that's just me though Additionally, I was thinking about adding this to the search dropdown in the forum and thread views as well.
Reply With Quote
  #6  
Old 12-18-2005, 11:22 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed and works great, thank you

[high]* The Chief clicks install[/high]
Reply With Quote
  #7  
Old 12-20-2005, 08:50 AM
prawn prawn is offline
 
Join Date: Mar 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey there!
thanks for that great idea.

i wanted to add that to my boards but i came across some more requirements i also worked out. i added the function to minimize the google form and stuff like that. you can take a look at what i mean by taking a quick visit on my forums here.

here's the code if you like it:
Code:
 <tr>
<td class="thead"><a style="float:right" href="#top" onclick="return toggle_collapse('navbar_google')"><img id="collapseimg_navbar_google" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_navbar_google].gif" alt="" border="0" /></a>Google Suche</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" id="collapseobj_navbar_google" style="$vbcollapse[collapseobj_navbar_google]">
<div align="center">
<!-- SiteSearch Google -->
<!-- GOOGLE ADSENSE CODE HERE -->
<!-- SiteSearch Google -->
</div>
</td>
</tr>
Reply With Quote
  #8  
Old 12-20-2005, 12:04 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by prawn
hey there!
thanks for that great idea.

i wanted to add that to my boards but i came across some more requirements i also worked out. i added the function to minimize the google form and stuff like that. you can take a look at what i mean by taking a quick visit on my forums here.

here's the code if you like it:
Code:
 <tr>
<td class="thead"><a style="float:right" href="#top" onclick="return toggle_collapse('navbar_google')"><img id="collapseimg_navbar_google" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_navbar_google].gif" alt="" border="0" /></a>Google Suche</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" id="collapseobj_navbar_google" style="$vbcollapse[collapseobj_navbar_google]">
<div align="center">
<!-- SiteSearch Google -->
<!-- GOOGLE ADSENSE CODE HERE -->
<!-- SiteSearch Google -->
</div>
</td>
</tr>
Nice addition, thanks!
Reply With Quote
  #9  
Old 12-21-2005, 07:46 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mini2
Is it possible (using CSS) to get the google search button to look like the other buttons on your website (mine are "flat" using CSS)?
Could be but it may be against their TOS to edit anything that isn't provided from their builder page. They are very touchy about how their ads are displayed and every day I keep reading new horror stories about people's accounts getting yanked so I try not to touch anything like that lol.
Reply With Quote
  #10  
Old 12-21-2005, 07:54 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh Gotcha, not sure how that would be done myself.
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 03:10 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.04743 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (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