Hey D-Rock,
This is a great plugin and I love the idea… however, I am having some issues with the paging, inparticularly when I jump from the first page of results straight to the last… the number of total results seems to totally adjust and the paging its self gets out of sync.
This only started occuring when I used the Google CSE parameter.
Gary — I’ve noticed this behavior as well, and unfortunately it’s just how the API works. It seems that they don’t give an accurate result count until you fetch the final page of results.
I have done a bit more digging and I think I have fixed the problem… Google filters out some results (usually duplicates), so when you hit the last results page it would all of a sudden decide to reduce the number of results (filter) hence the change in “results found” and the paging messing up… I am now using the filter=0 parameter and it seems to be working fine…
I love the plugin. The only part that’s giving me trouble is when you hit the search button with the field empty, it seems to go to the results page but kicks out to an EE error message (one of the specialty templates).
Is there a way to keep the user on the results page with the {no_results} feedback instead?
This is almost working but having problems with the pagination…
Can anyone suggest what I need to do to get the paging to work properly. The links to subsequent pages append q and p paremeters to the query string but due to how I have the URL set up this gives me an ‘Invalid URI’ error. The resulting URL looks something like this:
Sorry for the delay here all, once again I did not get these notifications.
The only part that’s giving me trouble is when you hit the search button with the field empty, it seems to go to the results page but kicks out to an EE error message (one of the specialty templates). Is there a way to keep the user on the results page with the {no_results} feedback instead?
I hesitate to change this, as it’s not really that they’re getting “no results” ... they’re submitting an empty form, so no results aren’t even possible, hence the error screen. I’ll think about this though.
Can anyone suggest what I need to do to get the paging to work properly. The links to subsequent pages append q and p paremeters to the query string but due to how I have the URL set up this gives me an ‘Invalid URI’ error.
Notice: Undefined index: HTTP_REFERER in /homepages/23/d7268723468/htdocs/ee/system/plugins/pi.google_search_results.php on line 94
Secondly if I try to load, say, page 3 by changing the p variable in the querystring to 3, the amount of results gets recalculated to something much smaller. So instead of 64 results, I now only have 34 - weird and random!