Hi - I am adding London openguides to the search toolbar in my Firefox installation . The idea is you can search openguides even if you haven't got a page open. I thought I would share my experiences so far - if anyone would like to try this out let me know how you get on
You need to put the attached file in the appropriate place which will be something like
/usr/lib/Mozilla/searchplugins C:/Program Files/Mozilla Firefox/searchplugins/
I havent figured out what this bit does. It might allow you to put the search into a sidebar but I havent understood that. <interpret resultListStart="<ol" resultListEnd="</ol>" resultItemStart="<li>" resultItemEnd="</li>"
Next stage is to add an icon and allow it to get installed from a server
The documentation is in http://mycroft.mozdev.org/deepdocs.html cid:part1.01030506.01070608@black1.org.uk
# Search Plugin for Open Guides # By Andrew Black
<search version="7.1" name="London Openguides" description="London Openguides" action="http://london.openguides.org/supersearch.cgi" searchForm="http://london.openguides.org/supersearch.cgi" method="GET" >
<input name="sourceid" value="Mozilla-search"> <input name="search" user>
<interpret resultListStart="<ol" resultListEnd="</ol>" resultItemStart="<li>" resultItemEnd="</li>"
</search>
Andrew Black wrote:
Hi - I am adding London openguides to the search toolbar in my Firefox installation . The idea is you can search openguides even if you haven't got a page open. I thought I would share my experiences so far - if anyone would like to try this out let me know how you get on
I totally forgot, but I made one ages ago. The files attached are the plugin and the icon; put them both in your Firefox program folder, which on Windows tends to be under Program Files somewhere.
I did submit it to Mycroft but never heard anything back from them.
Dave
# Mycroft Search Plugin for Mozilla, Firebird, Netscape 6+, Beonix browsers # Mycroft Homepage: http://mycroft.mozdev.org # # SearchSite: Open Guide to London # # CreationDate: 03 Oct 2004 # Author: Dave Arquati (darqknight47 at yahoo.co.uk)
<SEARCH version = "7.1" name="Open Guide to London" description="Open Guide to London, freely editable city guide" method="GET" action="http://london.openguides.org/supersearch.cgi" queryCharset="ISO-8859-1" searchForm="http://london.openguides.org/" routeType="internet"
<input name="search" user> <input name="Go" value="Go"> <input name="sourceid" value="mozilla-search"> <inputnext name="offset" factor="20"> <inputprev name="offset" factor="20">
<interpret browserResultType="result" charset="ISO-8859-1" resultListStart="<ol" resultListEnd="</ol>" resultItemStart="<li>" resultItemEnd="</li>"
</search>
<browser update="http://mycroft.mozdev.org/plugins/oglondon.src" updateIcon="http://mycroft.mozdev.org/plugins/oglondon.png" updateCheckDays="3"
On Sun, 3 Apr 2005, Dave Arquati wrote:
Andrew Black wrote:
Hi - I am adding London openguides to the search toolbar in my Firefox installation .
I totally forgot, but I made one ages ago.
In a fit of AOLage, me too.
Something like this should be fairly easy to generate automagically, apart from the icon (and you can always supply a default one). Would it be a nice thing to build on install, or offer a quick script to build one? Not sure how standard the search that OGL has is though...
billy
Dave Arquati wrote:
I did submit it to Mycroft but never heard anything back from them.
My feeling is that it would be better (or at least more achievable) to host it on the Openguides site, or on a site that one of us can easily update things on. The idea would be that there is an icon on OG page that when clicked on adds OG to your Firefox search icon. What would the OG people think about that.
Any suggestions on what the bits below do. Dave has done much the same as me but I can't work out what it does <interpret resultListStart="<ol" resultListEnd="</ol>" etc etc
On Tue, 5 Apr 2005, Andrew Black wrote:
Any suggestions on what the bits below do. Dave has done much the same as me but I can't work out what it does <interpret resultListStart="<ol" resultListEnd="</ol>" etc etc
I hadn;t seen these bits before and had a bit of a dig in the searchplugin docs - http://mycroft.mozdev.org/deepdocs/interprettag.html
It tells mozilla (rather than firefox) how to pull search results out of the page to stick them in the sidebar, as well as going to the search results page itself. It's quite nifty.
Although at the moment it also pulls out "Recent Changes" as a result, even when it isn't, and doesn't seem to like "'"s in links when it's extracting them.
billy
Billy Abbott wrote:
I hadn;t seen these bits before and had a bit of a dig in the searchplugin docs - http://mycroft.mozdev.org/deepdocs/interprettag.html
It tells mozilla (rather than firefox) how to pull search results out of the page to stick them in the sidebar, as well as going to the search results page itself. It's quite nifty.
Are you saying this will only work with Mozilla?
Although at the moment it also pulls out "Recent Changes" as a result, even when it isn't, and
Google puts comments <!--a--> .... <!--z--> around the search results. Maybe if we asked nicely OG could do similarly.
doesn't seem to like "'"s in links when it's extracting them.
Sorry - Don't follow that one
On Tue, 5 Apr 2005, Andrew Black wrote:
Billy Abbott wrote:
doesn't seem to like "'"s in links when it's extracting them.
Sorry - Don't follow that one
do a search on OGL for "hay's galleria" - the link on the search results page will link to http://london.openguides.org/index.cgi?Hay%27s_Galleria but the link in the sidebar only gets as far as the ' - http://london.openguides.org/index.cgi?Hay
That'll be a parser using ' or " to end the href string, rather than matching it to what's at the front of the string i would guess. Is ' a valid/good thing to have in a URL?
billy
Andrew Black wrote:
Dave Arquati wrote:
I did submit it to Mycroft but never heard anything back from them.
My feeling is that it would be better (or at least more achievable) to host it on the Openguides site, or on a site that one of us can easily update things on. The idea would be that there is an icon on OG page that when clicked on adds OG to your Firefox search icon. What would the OG people think about that.
I've done a bit of digging and uncovered how to put a link on the Openguides site which users can click on to add the OG London search tool to Firefox/Mozilla: http://mycroft.mozdev.org/no_wrap/deepdocs/installing.html
So... the following code should work: <script type="text/javascript"> <!--
function addEngine(name,ext,cat) { if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) { window.sidebar.addSearchEngine( "http://openguides.org/london/%22+name+%22.src", "http://openguides.org/london/%22+name+%22.%22+ext, name, cat ); } else { alert("Netscape 6 or Mozilla is needed to install a search plugin"); } } //--> </script>
<a href="javascript:addEngine('oglondon','png','Travel')">Add us to your Firefox search box</a>
I can't seem to get it to work locally though (replacing the URL with my own one). I wonder if anyone else might have any luck.
Dave
On Fri, 8 Apr 2005, Dave Arquati wrote:
I've done a bit of digging and uncovered how to put a link on the Openguides site which users can click on to add the OG London search tool to Firefox/Mozilla: http://mycroft.mozdev.org/no_wrap/deepdocs/installing.html
So... the following code should work:
<snip>
I can't seem to get it to work locally though (replacing the URL with my own one). I wonder if anyone else might have any luck.
I've got one of these up at http://www.cowfish.org.uk/random/addoglsearch.html which works - code is pretty much the same as yours, only really differing on paths and the A tag (i use onclick, you have javascript:).
I can't get http://openguides.org/london/oglondon.src or http://openguides.org/london/oglondon.png though, which your javascript is trying to grab, which would break it.
billy
Billy Abbott wrote:
On Fri, 8 Apr 2005, Dave Arquati wrote:
I've done a bit of digging and uncovered how to put a link on the Openguides site which users can click on to add the OG London search tool to Firefox/Mozilla: http://mycroft.mozdev.org/no_wrap/deepdocs/installing.html
So... the following code should work:
<snip>
I can't seem to get it to work locally though (replacing the URL with my own one). I wonder if anyone else might have any luck.
I've got one of these up at http://www.cowfish.org.uk/random/addoglsearch.html which works - code is pretty much the same as yours, only really differing on paths and the A tag (i use onclick, you have javascript:).
I can't get http://openguides.org/london/oglondon.src or http://openguides.org/london/oglondon.png though, which your javascript is trying to grab, which would break it.
billy
That was meant to be an example... I don't think anyone at OGL has put up the files yet! I was trying to grab it from a local directory (the same one as my test page), but the Javascript console kept telling me there weren't enough arguments (although that error was coming from Firefox's JS sidebar code, so my code must have reached the innards of the browser).
Dave
openguides-london@lists.openguides.org