Log in

View Full Version : Google search of your site in navbar


Spinball
04-09-2005, 10:00 PM
Just a quickie to add a Google site search in your navbar search drop-down menu.
*Should* work in all versions of vB3
Edit the navbar template.
Find:

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

Above this, add:

<tr>
<td class="thead">Google Site Search</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<FORM method=GET action="http://www.google.co.uk/search" target="_blank"><input type=hidden name=ie value=UTF-8><input type=hidden name=oe value=UTF-8>
<input type="text" class="bginput" name="q" size="20" />$gobutton<input type=hidden name=sitesearch value="YOUR DOMAIN"><input type=hidden name=domains value="YOUR DOMAIN"><br />
</form>
</td>
</tr>


...replacing YOUR DOMAIN with the domain of your site e.g. www.avforums.com in our case.
I wanted to have the Google search open in a new window so I added the target="_blank"
and you should remove it if you want the Google search results to open in the same window.
More details of the Google search and an explanation of the 'UTF-8' items at
http://www.google.co.uk/searchcode.html
And please press Install.

Spinball
07-03-2005, 06:41 AM
Screen grab attached.

Beermonster
07-03-2005, 07:59 AM
I wonder where (https://vborg.vbsupport.ru/showthread.php?t=91438) you got that idea from?

Spinball
07-03-2005, 08:14 AM
I wonder where (https://vborg.vbsupport.ru/showthread.php?t=91438) you got that idea from?
My apologies if you feel I 'stole' that idea. Didn't mean to offend anyone.
I was prompted to write the hack by this thread on my forums posted On April 4th:
http://www.avforums.com/forums/showthread.php?t=202093
after which I wrote the hack, shared it with the vB community on April 10th here and posted details on the AV Forums on April 12th here:
http://www.avforums.com/forums/showthread.php?t=203557
Bearing in mind the date of your 3.5 hack is July, I'm wondering who copied who?
Or more likely, it's just a case of great minds thinking alike.

atxhorn
08-12-2005, 05:07 PM
if one of these hacks..would work...

atxhorn
08-12-2005, 05:08 PM
hehe...j/k....

TRANCEBUDHA
08-18-2005, 08:00 PM
great mod but instead of adding just a google search, i added a adsense google search, not a bad idea. :rolleyes:

joseduddy
12-28-2005, 03:05 AM
Installed your mod for Google in search menu and is wirking wonderful, running Vb 3.5.2

take a look
http://www.dollchatter.com

Thanks for a nice ad on!!!! Jose Duddy
http://www.joseduddy.com