PDA

View Full Version : Google Free Search Box...giving me Youtube videos?




Sdashiki
Sep 17, 2008, 01:35 PM
I have this google search box, the free kind:

<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<br />
<TABLE>
<tr>
<td>
<INPUT TYPE=text name=q size=20 maxlength=100 value="Search">
<INPUT type=submit name=btnG VALUE="Go">
<input type=hidden name=domains value="MYSITE">
<input type=hidden name=site search value="MYSITE">
</td>
</tr></TABLE>
</FORM>
<!-- SiteSearch Google -->

And for the past few days, generic searches are now giving YouTube results that are in no way on the site, linked to the site, or have anything to do with the site at all.

WTF is going on?



angelwatt
Sep 17, 2008, 02:06 PM
Try placing quotes around the attributes, example:
<input type="hidden" name="site search" value="MYSITE">
What you had before wasn't valid HTML so may have caused parsing issues.

Sdashiki
Sep 17, 2008, 02:16 PM
Never had this issue before.

No matter, I have found Custom Google Search, which allows me to force its search to specific domain(s) and block others.

Problem solved.

angelwatt
Sep 17, 2008, 02:21 PM
Never had this issue before.

No matter, I have found Custom Google Search, which allows me to force its search to specific domain(s) and block others.

Problem solved.

I use the same thing on my site and was about to recommend it. The only part I dislike is that I have to have their iframe on my site which screws with my design a little bit and hurts the accessibility.

Sdashiki
Sep 18, 2008, 08:34 AM
I just use their results page and use our logo with the search box. Works well enough. And you can tailor the results colors, though not the font or weight.

Sucks it has to be connected to a google accnt though.