I've set the results to appear within Drupal. When the results appear, below the search box and button in the results panel are tow radio buttons to filter the research - one has the label 'Web Search', one has the alpha part of my 'Search engine unique ID'.

For example say my GSE id is 325145769996886168704:ybhyyywvjls

one of the radio buttons is labelled 'ybhyyywvjls'. The alpha bit also appears as a label alongside search box.

Is there anything I can do about this? I've done a quick google on formatting the GCSE results page to no avail. Yet. Perhaps that's where I need to look?

CommentFileSizeAuthor
#3 google_cse_scripts_at_bottom.patch2.52 KBabhaga

Comments

abhaga’s picture

I had a similar problem. In my case the reason was that I had moved all the scripts to the bottom of the page as suggested for optimal performance. However, this meant that some of the variables required by the google_cse which are stored in Drupal.settings were not initialized in time. Hence the error.

When I move the scripts back up in the head section, everything is fine once again. I decided to modify the module a little to allow me to move back the scripts to the bottom. Let me know if you are interested in that and I will provide a patch.

Abhaya

Skirr’s picture

I'm sure interested in this patch, because have same problem with scripts at bottom. Would be very thankful.

abhaga’s picture

StatusFileSize
new2.52 KB

Patch is attached. Basically the patch removes the dependency on the Drupal.settings array. It also loads the show_afs_search.js in an asynchronous fashion.

rimu’s picture

Thanks adhaga!

It would be great if this patch was included in the next version of this module

dschneider’s picture

definitively +1

dschneider’s picture

Title: Alpha part of Search engine unique ID appears on google results page. » remove dependency on the Drupal.settings array
Category: support » feature
Status: Active » Needs review
malcomio’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Tidying up the issue queue, and marking issues as won't fix where the version is no longer supported.