Add a custom Google search engine

This HowTo describes step by step how to add a customised Google search engine to a wikidot webpage. This is also a simple example of the use of the [[embed]] function.

The Result


This customised search engine currently searches 5 sites:

How to do it

This gadget uses the [[embed]] function described Embedding help page. However, it is difficult to find it in the Google Gadgets library at http://www.google.com/ig/directory?synd=open

1. Go to http://www.google.com/coop to create your customised Google search engine

2. Follow Google's instructions (It's so easy !)

3. Go back to http://www.google.com/coop/cse/overview and look for My search engines
step1.jpg

4. Click on homepage
step2.jpg

5. And then on Add this search engine to your blog or webpage
step3.jpg

6. Click on the Get the code button

7. Paste it on your wikidot page as follows

[[embed]]
<script src="http://gmodules.com/ig/ifr?url=http://www.google.com/coop/api/007000168596185870345/cse/daaaga1ewj4/gadget&amp;synd=open&amp;w=265&amp;h=65&amp;title=Wikidot&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>
[[/embed]]

8. And the result is


Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +5+x

Authors

gerdamigerdami. Please visit his/her userPage.


Comments

Pictures
gerdamigerdami 1178628708|%e %b %Y, %H:%M %Z|agohover

Could not upload pictures due to page restrictions. So I linked to another wikidot location.

unfold Pictures by gerdamigerdami, 1178628708|%e %b %Y, %H:%M %Z|agohover
Re: Pictures
hartnellhartnell 1191469561|%e %b %Y, %H:%M %Z|agohover

Er, gerdami, you are an admin, right? —hartnell

unfold Re: Pictures by hartnellhartnell, 1191469561|%e %b %Y, %H:%M %Z|agohover
Get an error when adding
devvikidevviki 1191444186|%e %b %Y, %H:%M %Z|agohover

Get an ajax error when putting this embed statement into a page…
"The ajax request failed. Please check your internet connection or report a bug if the error repeats during your work". Keeps repeating…

unfold Get an error when adding by devvikidevviki, 1191444186|%e %b %Y, %H:%M %Z|agohover
Re: Get an error when adding
hartnellhartnell 1191469630|%e %b %Y, %H:%M %Z|agohover

Do you have your own google search coop code to embed? —hartnell

unfold Re: Get an error when adding by hartnellhartnell, 1191469630|%e %b %Y, %H:%M %Z|agohover
Add a new comment
page_revision: 19, last_edited: 1209122537|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.