Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

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
  #2  
Old 03-09-2006, 11:46 AM
duplu duplu is offline
 
Join Date: Jan 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks pretty cool, I'll give this a go as no-one uses my other google search
Reply With Quote
  #3  
Old 03-09-2006, 12:35 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand your instructions.

You mention "text in bold" and there is not text in bold.

Do I replace the first block of text you said to search for with the 3rd block you provided?

You said to put the search code in this zone.

</div>
<!-- / header quick search form -->

What does that mean?
Reply With Quote
  #4  
Old 03-09-2006, 12:35 PM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seemd nice thing...hope going to install it..
Reply With Quote
  #5  
Old 03-09-2006, 12:45 PM
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Sep 2004
Location: Madrid (Spain)
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bitg
I don't understand your instructions.

You mention "text in bold" and there is not text in bold.

Do I replace the first block of text you said to search for with the 3rd block you provided?

You said to put the search code in this zone.

</div>
<!-- / header quick search form -->

What does that mean?
Put the google code provided in the first post between this codes

Search this text is original in navbar template"<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>"

-->Here the Google code

</div>
<!-- / header quick search form -->


Now replace the text in bold and GREEN color by your data, for example, your domain, your google adsense cliente number, etc.

excuse my broken English, but i hope that the instructions are clear.


<!-- 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"></img></a>

<input type="hidden" name="domains" value="Bmwfaq.com "></input>
<input type="text" name="q" size="9" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Ir"></input>
<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">bmwfaq.com</label>
</div>

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

<!-- Search Google -->
Reply With Quote
  #6  
Old 03-10-2006, 01:41 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would advise NOT giving others your google code... if someone puts this somewhere that is against the adsense TOU, you may find yourself banned from the program.
Reply With Quote
  #7  
Old 03-10-2006, 07:01 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 kall
I would advise NOT giving others your google code... if someone puts this somewhere that is against the adsense TOU, you may find yourself banned from the program.
Thanks for the advise, i replace my adsense code by a unexisting one.
Reply With Quote
  #8  
Old 03-10-2006, 02:56 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I add the code in the place you tell me to and replace the the places with my own info. Now when I load up the main page of my site, I get the following error:

Warning: Unexpected character in input: '' (ASCII=7) state=2 in /home2/webbhelp/hidingplace-www/vbb350/index.php(487) : eval()'d code on line 1
Reply With Quote
  #9  
Old 03-10-2006, 03:04 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

D'Oh! It was me and my big fat fingers.

I guess the problem WAS the nut behind the wheel!
Reply With Quote
  #10  
Old 03-10-2006, 07:13 PM
Lazarous Lazarous is offline
 
Join Date: Jul 2005
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You know what would be awesome, changing the target to "_self" and having vBulletin do the search -BUT- display the output with vBulletin 3.5x headers and footers.

Does anyone know of an exisiting hack that maybe incorporated to display a non-vb page in this way? I seem to rember something on 2.x but can't find anything that resembles it.
Reply With Quote
Reply

Thread Tools

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 06: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.04578 seconds
  • Memory Usage 2,306KB
  • 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
  • (6)bbcode_html
  • (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
  • (1)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