Google search v1.0.1

Release Notes

- Removed creation of menu item since it is useless.


  • Hi Gerard, Thanks for your plugin! It looks great on your website. I was just wondering if the generated google code is supposed to be comprised of the Search Engine ID with number and letter combinations, or is it the HTML code generated? I've put in the Search Engine ID, but all results come up empty. If i try to put in the html code, i get the following error: "You don't have permission to access /elgg/action/plugins/settings/save on this server."

    I have attempted to modify the permisions of the settings/save file to 7 5 5 but still unable to save.

    Do you have any points on what i should try to do to fix it?


  • This probably has nothing to do with the google search plugin, but as you guessed with the rights on your system.

    I am not sure if it is a typo, but the actual file that is used in the engine to save settings is actions/plugins/settings/save.php

    Try setting 755 as the rights of the whole system and check that your apache user is at least group owner.

    If this doesn't help check, if you can change settings of other plugins.


  • What you actually have to enter in settings is below: (the actual value in var cx is provided to you by google CSE)

    (function() {
        var cx = 'code-provided-by-google-cse-for-your-site';
        var gcse = document.createElement('script');
        gcse.type = 'text/javascript';
        gcse.async = true;
        gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
            '//' + cx;
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(gcse, s);

  • I wonder is there an easy way to say use the regular search but to put this search page on the bottom or top of the regular search results page letting users know that they can try this instead?  Or maybe just to put the Google custom search right above or below the regular search.  It might look a little strange strange but it would provide maximum search capabilities to the user and allow them to choose. :)

  • @GTS fan9. Currently it uses both search engines. Elgg for tags, google for the rest.

    It is possible to provide users both searches in different search boxes, you only need to define another search box in the header. The query URL for google is /google?q= and for elgg is /search?q=

    To be honest, I don't think users like two search boxes, since it is confusing.

  • now its back and looks ok i will stick with this plugin as it is useful will remove if it crashes server again, if i do not reply the plugin is working good on : ) thank you

  • i can confirm this plugin works fine just refresh a few times flush caches upgrade a few times if necessery

  • when you install some plugins it gives you a server error etc like header and fotter plugins etc dont worry about it as long as the plugin works after you refresh etc you will be nice

  • @UK, I do not understand your comments here. This plugin does not need refresh or upgrades of the site.


  • Category: Third Party integrations
  • License: GNU General Public License (GPL) version 2
  • Updated: 2020-12-31
  • Downloads: 1945
  • Recommendations: 9

Other Projects

View Gerard's plugins