Hello,
I tried multiple times to make it works but no success yet.
If I invoke directly the page
http://www.mysite.com/forums/gtsearch.php
and then fill the searchform there, everything's fine. I get a good search result page with my adsense Google ads wher I decided to put in (on the right side actually)
The results are filtered ok by the parameters I choosed on Google CSE pages.
But one thing refuses to work : it is the dam...d searchform in the navbar. It only makes this result : It opens the normal vB searchresult page with:
"Please specify some words or valid user names to search on. There were no matches for those that you specified."
Why is it so ?
Search box code:
<form action="http://www.rmysite.com/forums/gtsearch.php" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-xxxxxxxxxxxxxxxxxxxxx" />
<input type="hidden" name="cof" value="FORID:9" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Rechercher" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=fr"></script>
Searchresults code
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 600;
var googleSearchDomain = "www.google.fr";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
What is wrong ?
Thank you