PDA

View Full Version : Google search for 4.2.3


dknelson
10-29-2014, 12:35 PM
I have a template mod on my VBulletin 3.8.7 site and it is very popular. Due to PHP updates and etc, I am finally updating to 4.2.3.

Here is the code that I found somewhere hear years ago that is in my 3.8.7 Navbar. Does anybody have something similar for VBulletin 4?

<!-- Start Search Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<tr>
<td class="thead">Google Search</td>
</tr>
<tr><td class="vbmenu_option" title="nohilite">
<input type="hidden" name="domains" value="www.example.org"></input>
<input type="text" name="q" size="31" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Google Search"></input>

<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.example.org"></input>
<font size="-1" color="#000000">www.example.org
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-1134398399274804"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="6437042346"></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="cof" value="GALT:#006699;GL:1;DIV:#6C82B5;VLC:32527A;AH:center ;BGC:E6E6E6;LBGC:003366;ALC:0066CC;LC:0066CC;T:000 000;GFNT:66B5FF;GIMP:66B5FF;LH:50;LW:51;L:http://www.mkpitstop.com/images/directory.gif;S:http://www.mkpitstop.co.uk;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr>
</form>
<!-- END Search Google -->

mokujin
10-29-2014, 12:43 PM
Try this: https://vborg.vbsupport.ru/showpost.php?p=2516235&postcount=30

dknelson
10-29-2014, 12:53 PM
Thanks. Will look at it tonight. I assume it allows you to Google Search only the site as the other one did?

dknelson
11-04-2014, 07:38 PM
OK, I installed this and got my ID from Google. I don't fully understand how it works though. There no Google box. Do I need to create that?

Never mind. I understand. Just didn't read it very well. going to try it now.

Mark.B
11-04-2014, 08:07 PM
The original code you posted should pretty much work on vB4, it'll probably just need a few styling tweaks.

dknelson
11-04-2014, 08:14 PM
I'll look at it again. This one works but I don't like the way it opens a new window and then the forum again if you select something.

I tried mine quickly and it returned no results. Haven't given up though.