vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Google Search Code (https://vborg.vbsupport.ru/showthread.php?t=258507)

jenniferj 02-07-2011 06:41 PM

Google Search Code
 
I would like to add a Google Search box to my site. How do I do this?

wraggster 02-07-2011 08:13 PM

are you using the cms?

if so i can tell i can tell you

go to admin cp

go to vbulletin CMS

go to widgets

click on create new widget

click on widget type - scroll down to static html

give it a name

click save

then go back into widgets

click on configure

imput your google search box code

heres mine to test it on yours

Code:

<form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
  <div>
    <input type="hidden" name="cx" value="partner-pub-8038068168054371:cetq3s-a66t" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="Search" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en"></script

click save then add the widget into your CMS by clicking on layout manager.

If its for getting on your forum i cant help with that, newcomer to VB4 myself.

jenniferj 02-08-2011 03:23 AM

Thank you so much but yes it is to get it on my forum.

whitey10tc 02-11-2011 02:46 AM

Are you looking to do content search or an external search page? What VB 4.x.x version are you running, and how do you want it to appear? As an external page or vb page?
I can help you either way.
Take a look at my site
Code:

www.cdmagurus.com
for an example, the external google search page is linked in the nav bar tabs "search the web" with a vb page, while the site search page redirects to an generic page that I will be updating this weekend.
But I can give you the quick and easy way for 4.1.1


All times are GMT. The time now is 04:59 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.03302 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete