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 search in forum search box Details »»
Google search in forum search box
Version: 1.00, by dbembibre dbembibre is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-08-2006 Last Update: Never Installs: 22
Template Edits
 
No support by the author.

This litle hack inserte a google search in the forum search box, with the posibility of search in web and in your site.

Edit you NavBar template and search for the following:
HTML Code:
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
	</tr>
</table>
Put the google search code in this zone.

HTML Code:
</div>
<!-- / header quick search form -->
THE CODE BELOW CONTAINS A GOOGLE ACCOUNT WHICH AUTHOR WILL BE AWARDED:
HTML Code:
<!-- Search Google by Danny-->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table bgcolor="#f7f7f7">
<tbody>
      <tr>
        <td align="left" height="32" nowrap="nowrap" valign="top">
	<a href="http://www.google.com/">
	<img src="http://www.google.com/logos/Logo_25wht.gif" align="middle"   border="0" alt="Google" /></a>	
	<input type="hidden" name="domains" value="bmwfaq.com" />
	<input type="text" name="q" size="9" maxlength="255" value="" />
	<input type="submit" name="sa" value="Ir" />
	<br />

	<div style="padding:3px">
	<label><input type="radio" name="sitesearch" value="" checked="checked" />Web</label>
	<label ><input type="radio" name="sitesearch" value="bmwfaq.com" /></label>
	</div>

	<input type="hidden" name="client" value="pub-000000000" />
	<input type="hidden" name="forid" value="1" />
	<input type="hidden" name="ie" value="ISO-8859-1" />
	<input type="hidden" name="oe" value="ISO-8859-1" />
	<input type="hidden" name="cof" value="GALT:#9A2C06;GL:1;DIV:#33FFFF;VLC:D03500;AH:center;BGC:99CCFF;LBGC:CCE5F9;ALC:440066;LC:440066;T:336699;GFNT:223472;GIMP:223472;FORID:1;" />
	<input type="hidden" name="hl" value="es" />
      </td>
      </tr>
</table>
</form>

<!-- Search Google -->
IF YOU HAVE YOUR OWN GOOGLE ACCOUNT YOU MAY REPLACE THE FOLLOWING LINES WITH YOUR INFO:
HTML Code:
<input type="hidden" name="domains" value="bmwfaq.com" />
HTML Code:
<input type="radio" name="sitesearch" value="bmwfaq.com" />
HTML Code:
<input type="hidden" name="client" value="pub-000000000" />

Show Your Support

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

Comments
  #12  
Old 03-17-2006, 05:39 AM
Lazarous Lazarous is offline
 
Join Date: Jul 2005
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

< Bump >

Does anyone have any suggestions with how to achieve the above? ^^^

Many thanks.
Reply With Quote
  #13  
Old 03-17-2006, 08:58 AM
dan35's Avatar
dan35 dan35 is offline
 
Join Date: Jul 2004
Location: California
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love how Erwin puts the Google Search box on his forumhome page.

http://www.christianforums.com/
Reply With Quote
  #14  
Old 05-11-2006, 06:47 PM
Bro_Joey_Gowdy's Avatar
Bro_Joey_Gowdy Bro_Joey_Gowdy is offline
 
Join Date: May 2002
Location: Hickory Flat MS 38633
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dan35
I love how Erwin puts the Google Search box on his forumhome page.http://www.christianforums.com/

I agree, wish he would share it with us.

Btw, am I the only one who noticed that the code is wrong ?

This :
Code:
<input type="hidden" name="client" value="pub-000000000" />
should actually be this:
Code:
<input type="hidden" name="client" value="partner-pub-000000000" />
other it would count as adsense content instead of adsense search.

So yeah Erwin rocks !

:banana:
Reply With Quote
  #15  
Old 05-11-2006, 07:58 PM
stinger2's Avatar
stinger2 stinger2 is offline
 
Join Date: Jul 2005
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
<input type="hidden" name="client" value="pub-000000000" />
what do you mean??..this is the correct sentence...or am i missingsomething?
Reply With Quote
  #16  
Old 05-11-2006, 08:30 PM
Darat Darat is offline
 
Join Date: Aug 2004
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dan35
I love how Erwin puts the Google Search box on his forumhome page.

http://www.christianforums.com/
I think I've added something similar to the search page on my forum see: http://forums.randi.org/search.php

Would that be of use to you?

Oops - forgot that wont be accessible for guests, it looks like the attached screenshot.
Reply With Quote
  #17  
Old 06-23-2006, 06:43 AM
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Sep 2004
Location: Madrid (Spain)
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darat
I think I've added something similar to the search page on my forum see: http://forums.randi.org/search.php

Would that be of use to you?

Oops - forgot that wont be accessible for guests, it looks like the attached screenshot.
Another wonderfull way to add google to search
Reply With Quote
  #18  
Old 04-04-2007, 08:59 PM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesnt seem to work with 3.6.5? Ive done redone it a million times
Reply With Quote
  #19  
Old 04-14-2007, 04:09 PM
amkge amkge is offline
 
Join Date: Jan 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I do a search it comes up with the Google results but they are all foreign.


http://www.google.com/custom?domains...D%3A1%3B&hl=es

Could somebody please take a quick peek and tell me what i need to change to get my google results in english/american.

Thanks guys
Reply With Quote
  #20  
Old 04-17-2007, 01:33 PM
jackstraw01 jackstraw01 is offline
 
Join Date: Mar 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darat View Post
I think I've added something similar to the search page on my forum see: http://forums.randi.org/search.php

Would that be of use to you?

Oops - forgot that wont be accessible for guests, it looks like the attached screenshot.
I would like to do the same, how did you do this?
Reply With Quote
  #21  
Old 04-17-2007, 02:05 PM
Darat Darat is offline
 
Join Date: Aug 2004
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jackstraw01 View Post
I would like to do the same, how did you do this?
Long time since I added it - as far as I remember it's really just the code from Goggle that allows you to have your google search results shown with your forum's logo (I think that's called "Google Custom Search") added to vBulletin search page:


In the template "search_forums", find

$header
$navbar


and then add this underneath it

PHP Code:

<!-- Search Google -->
    <
div class="tcat" style="padding:6px">
        <
a style="float:right" href="#top" onclick="return toggle_collapse('search_google')"><img id="collapseimg_search_google" src="http://www.randi.org/forumlive/images/buttons/collapse_thead.gif" alt="" border="0" /></a>
        
Google Search Forum
</div>        
<
div id="collapseobj_search_google" style="">


<
FORM method=GET action=http://www.google.com/custom>

<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">

<
tr>
    <
td class="panelsurround" align="center">
        
    <
table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]border="0" width="100%">
<
tr valign=center><td align=left >
<
A HREF=http://www.google.com/search>
<IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle></A>
</td>
<
td align=left>
<
INPUT TYPE=text name=q size=31 maxlength=255 value="">
<
INPUT type=submit name=sa VALUE="Google Search">
<
INPUT type=hidden name=cof VALUE="S:http://forums.randi.org;AH:center;LH:75;L:http://forums.randi.org/images/misc/searchlogo.gif;LW:849;AWFID:31746880203d5407;">
<
input type=hidden name=domains value="forums.randi.org">

<
input type=radio name=sitesearch value="forums.randi.org" checkedSearch forums.randi.org
<input type=radio name=sitesearch value=""Search WWW 

</td></tr></TABLE>
</
FORM>

</
table>
</
table>
</
div>
</
br>

<!-- 
Search Google --> 
You'll need to use your own url for where my forum's url is used.
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:15 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.04685 seconds
  • Memory Usage 2,354KB
  • Queries Executed 27 (?)
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
  • (6)bbcode_html
  • (1)bbcode_php
  • (6)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
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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