![]() |
Google search in Navbar
At the request from a couple others I am posting this. This hack that lets you put a Google search bar in your navagation bar. It gives you the options of Google searching your site or the intire web.
To add your site you will have to replace "your-site.com" with your sites domain name in the code that you need to add below. Go to navagation / breadcrumb templates and go to navbar. Find: Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div> Code:
<!-- SiteSearch Google --> |
It's just on the main page, how to put it on every page?
|
Quote:
|
Hmmm. The site search goes to google. Is it supposed to search my forum just like the regular search does?
|
Quote:
|
I triple checked that. Every search opens a Google window though. In the code it says,
Code:
<form method="get" action="http://www.google.com/custom" target="google_window"> |
Quote:
Find the following code: Code:
<input type="radio" name="sitesearch" value="" checked="checked"></input> Code:
checked="checked" Code:
<input type="radio" name="sitesearch" value="your-site.com"></input> Code:
checked="checked" Code:
|
Nope, it just makes the radio button for my site default. Still jumps to Google though. Nothing on my site that Google would find other than if I searched for the name of my site.
|
Quote:
Work Place Like Home :: Work Place Like Home Forum Index, Work Place Like Home ... Search: Search at:. Work Place Like Home, Google. Advanced Forum Search ... www.workplacelikehome.com/board/ - Similar pages This is a search result for your web site. What this hack does is not search your web site. It searches Google for items that are from your web site (if you set the radio button to WPLH). If google has not been crawling and searching your web site then it will not bring anything up. So if your site is still fairly new it will take a while got google to build up a search data base. If you have the search spyders turned off that will keep google from searching your site also. |
Oooh. Well that's the prob. hehe No, I'm not listed on Google or have spyders. I have 4195 members, but its all from word of mouth. As a result, I have very little problem with spammers.
Okay, so I just need to get rid of the WPLH part. Thanks for the info! Craig |
All times are GMT. The time now is 08:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|