plugin:googlesearch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:googlesearch [2008-07-14 09:44] – 123.51.5.125 | plugin:googlesearch [2011-11-29 15:53] (current) – [Comments] C_hammer | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Google Search ====== | ||
+ | |||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : andi@splitbrain.org | ||
+ | type : action | ||
+ | lastupdate : 2006-07-17 | ||
+ | compatible : | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : search, google, embed, !obsolete | ||
+ | |||
+ | downloadurl: | ||
+ | ---- | ||
+ | |||
+ | :!: Google no longer issues new API keys, because their SOAP API is no longer supported by them. Users without an API key do not need to download this plugin. Holders of an older API key should be aware that this plugin might cease to work when Google finally disables the SOAP API. | ||
+ | |||
+ | ===== Install ===== | ||
+ | |||
+ | Download and install the latest package | ||
+ | |||
+ | * {{plugin: | ||
+ | |||
+ | Add the search field to your template using the following syntax: | ||
+ | |||
+ | <code php> | ||
+ | <?php action_plugin_googlesearch:: | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | Either use the config manager or edit your local.php manually. The following config options are supported. | ||
+ | |||
+ | * '' | ||
+ | * Your [[http:// | ||
+ | * '' | ||
+ | * Maximum number of results per page | ||
+ | * Google allows a maximum of 10 | ||
+ | |||
+ | |||
+ | ===== Comments ===== | ||
+ | |||
+ | Could we please supply plugins with a .zip extension? That way we can use the plugin manager to install these plugins regardless of what platform we are installing on. I use DokuWiki as an information repository on my Windows PC, which doesn' | ||
+ | |||
+ | > The plugin manager should be able to extract both, ZIP and TGZ files, regardless of your platform. If it doesn' | ||
+ | |||
+ | For manual installation, | ||
+ | Line 40 should be changed to | ||
+ | ' | ||
+ | where the letters between the quotes represent the API key that Google sends to you. //Dan Feldman, 10/16/06// | ||
+ | |||
+ | |||
+ | Failed to work on DokuWiki-rc2006-10-08. nusoap complains redeclare soapclient on line 7240. //Terence, 10/17/06// | ||
+ | |||
+ | > nusoap might not be required in PHP5 which AFAIK comes with it's own soapclient. Removing the nusoap require line may work (untested). --- // | ||
+ | |||
+ | Looks great. | ||
+ | |||
+ | > It should work with recent versions, though I haven' | ||
+ | |||
+ | Hi there - sorry if I'm being thick, but where should I enter this code? Specifically, | ||
+ | |||
+ | > hi folks, i need some help with this ... | ||
+ | > i will write down my steps, so you can see where i have gone wrong | ||
+ | > got myself a Google APIwent to the following link because i could not find what i was supposed to find on the "get Your Google API" in the above instructions. [[http:// | ||
+ | > did not know which of 3 choices to choose, | ||
+ | > so i chose the middle one and put in the URL of my DokuWiki. | ||
+ | > | ||
+ | > uploaded the plugin into my plugin folder. | ||
+ | > went to manage plugins. | ||
+ | > google search is ticked .... great | ||
+ | > | ||
+ | > | ||
+ | <?php action_plugin_googlesearch:: | ||
+ | > | ||
+ | > i add either line to my local.php | ||
+ | $conf[' | ||
+ | |||
+ | $conf[' | ||
+ | |||
+ | > error message when i add either above line to my local.php | ||
+ | > | ||
+ | > Parse error: syntax error, unexpected | ||
+ | > | ||
+ | > so i reuploaded the unmodified local.php | ||
+ | > no more error message. | ||
+ | > edited my googleAPI ie changed line 40 with the following | ||
+ | |||
+ | ' | ||
+ | |||
+ | > still nothing | ||
+ | > replace the above letters in between the parenthesis with my own key | ||
+ | > still nothing | ||
+ | > i add either line to my local.php | ||
+ | $conf[' | ||
+ | > | ||
+ | > I GET that same error message when I add line to my local.php | ||
+ | > so I undo that line from my local.php | ||
+ | > | ||
+ | > QUESTION | ||
+ | > do you have any clues for me? | ||
+ | > thank you for your time, alto | ||
+ | |||
+ | Add it to your header.php and add this to your local.php | ||
+ | $conf[' | ||
+ | |||
+ | $conf[' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||