Quote by: samstone
You already have the answer to the question as you read the previous posts. In fact, Google Adsense site has clear instruction for doing that.
Hi Sam,
As I mentioned a few posts up, I did this, and it doesn't appear to work for me site.
First I tried doing it with Google Co-op, using the exact code that they recommended. Then I tried modifying the form header code slightly to be the way you posted. Then I tried doing a regular Google search bar, as k74 posted, with your header, and still nothing.
In all cases (as I mentioned), instead of trying to go to the static page I requested, e.g.
http://www.ai-tools.org/staticpages/index.php?page=20061114141536601, it would try to go to a url like
http://www.ai-tools.org/staticpages/index.php?cx=013555921050100862112 ....
Since that page doesn't exit, I would get the message "Access to this page is denied. Either the page has been moved/removed or you do not have sufficient permissions."
Here's the code I used to try and get Google Co-op to work:
Text Formatted Code
<!-- Google CSE Search Box Begins -->
<form id="searchbox_013555921050100862112:8qjpccdkcia" action="http://www.ai-tools.org/staticpages/index.php?page=20061114141536601"> // adding method="get" and target="_top" to this makes no difference
<input type="hidden" name="cx" value="013555921050100862112:8qjpccdkcia" />
<input name="q" type="text" size="40" />
<input type="submit" name="sa" value="Search" />
<input type="hidden" name="cof" value="FORID:9" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_013555921050100862112%3A8qjpccdkcia"></script>
<!-- Google CSE Search Box Ends -->
With this on the results page
Text Formatted Code
<!-- Google Search Result Snippet Begins -->
<div id="results_013555921050100862112:8qjpccdkcia"></div>
<script type="text/javascript">
var googleSearchIframeName = "results_013555921050100862112:8qjpccdkcia";
var googleSearchFormName = "searchbox_013555921050100862112:8qjpccdkcia";
var googleSearchFrameWidth = 600;
var googleSearchFrameborder = 0;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
<!-- Google Search Result Snippet Ends -->
Since that didn't work, I tried Ironmax's's code, with your header:
Text Formatted Code
<CENTER><!-- Search Google -->
<CENTER>
<form method="get" action="http://www.ai-tools.org/staticpages/index.php?page=20061114141536601" target="_top">
<div align="center">
<center>
<TABLE bgColor=#ffffff>
<TBODY>
<TR>
<TD>
<p align="center"><A href="http://www.google.com/"><IMG align=absMiddle border=0
src="http://www.google.com/logos/Logo_40wht.gif" <ALT="Google" width="128" height="53"></A>
<INPUT maxLength=255 name=q size=31> <INPUT name=btnG type=submit value="Google Search">
</p>
</TD></TR></TBODY></TABLE></center>
</div>
</FORM></CENTER><!-- Search Google -->
Again, nothing.
If you have figured out a way to actually get the results to show up on your Geeklog site, I'd love to see how you did it. So far, I haven't seen this happen.
Thank you,
Sam