PDA

View Full Version : Google Search Code


jenniferj
02-07-2011, 06:41 PM
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

<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 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