Hi all,
I have used Google custom search on my site in the past without a hitch. I’ve recently updated to CI 2 and the search has stopped working properly.
The search results are supposed to be displayed on the following page:
http://www.tvcw.org/index.php/main/search
However, every time I launch a search, I land on the main page (http://www.tvcw.org/index.php/main).
I know the results are generated and sent by Google because if I insert Google’s search results code on the main page, the results are displayed just fine. I just can’t get the search results to appear on the right page (the “search” page).
Here is the URL generated by the Google custom search (“test” being the search word):
http://tvcw.org/index.php/main/search/?cx=009193659681247254929:gvqvfabvrgw&cof=FORID:10&ie=UTF-8&q=test&sa=Rechercher&siteurl=www.tvcw.org/index.php
Here is the code for the search box:
<form action="http://tvcw.org/index.php/main/search/" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="009193659681247254929:gvqvfabvrgw" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Rechercher" />
</div>
</form>
[removed][removed]Here is the search results code: (inserted in the search page at http://www.tvcw.org/index.php/main/search)
<div id="cse-search-results"></div>
[removed]
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 600;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
[removed]
[removed][removed]Thanks for the help!