attroll
06-29-2005, 10:00 PM
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:
<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>
</if>
</td>
After that add:
<!-- SiteSearch Google -->
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<form method="get" action="http://www.google.com/custom" target="google_window">
<table border="2" cellspacing="0" cellpadding="0" style="border-collapse: collapse" height="1" width="100%" bgcolor="#F0F0F0" bordercolor="#336600">
<td bgcolor="#D6D6D6"><center>
<input type="hidden" name="domains" value="your-site.com"></input>
<input type="text" name="q" size="40" maxlength="255" value=""></input>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
<input type="radio" name="sitesearch" value="your-site.com"></input>
<font size="-1" color="#000000">your-site.com</font>
<input type="submit" name="sa" value="Google"></input>
<input type="hidden" name="client" value="pub-2871740088182458"></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="safe" value="active"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center ;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000 000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</center>
</td>
</TABLE>
</form>
</div>
</td>
<!-- SiteSearch Google -->
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:
<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>
</if>
</td>
After that add:
<!-- SiteSearch Google -->
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<form method="get" action="http://www.google.com/custom" target="google_window">
<table border="2" cellspacing="0" cellpadding="0" style="border-collapse: collapse" height="1" width="100%" bgcolor="#F0F0F0" bordercolor="#336600">
<td bgcolor="#D6D6D6"><center>
<input type="hidden" name="domains" value="your-site.com"></input>
<input type="text" name="q" size="40" maxlength="255" value=""></input>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
<input type="radio" name="sitesearch" value="your-site.com"></input>
<font size="-1" color="#000000">your-site.com</font>
<input type="submit" name="sa" value="Google"></input>
<input type="hidden" name="client" value="pub-2871740088182458"></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="safe" value="active"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center ;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000 000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</center>
</td>
</TABLE>
</form>
</div>
</td>
<!-- SiteSearch Google -->