Page 1 of 1

Firefox search engine

Posted: 10 Aug 2011, 17:40
by dansan
Hi :)
Not sure if it's the right place, because this is not "major". Feel free to move it to subforum where you think it belongs - thanx :)


Announcing a search plugin for Firefox to search directly on SpringFiles.com (using the input top right, where you probably have google).
Get it here: http://mycroft.mozdev.org/search-engine ... gfiles.com

Re: Firefox search engine

Posted: 10 Aug 2011, 18:05
by knorke
copied thread to General Discussion so it is possible to reply. (replies are locked in news forum)

just clicking the link adds springfiles to that searchbox thing where you by default have wikipedia, dict leo, google and some others.
neat, will use.

Re: Firefox search engine

Posted: 10 Aug 2011, 19:08
by Forboding Angel
Post it on Springinfo

Re: Firefox search engine

Posted: 10 Aug 2011, 21:15
by jj
That's awesome.
And thanks for the favicon :-)
Not sure if it is a old one or if you made it.

Re: Firefox search engine

Posted: 10 Aug 2011, 21:33
by dansan
Forboding Angel wrote:Post it on Springinfo
Oops - didn't know that site :D
I made a post, it's pending approval.
jj wrote:And thanks for the favicon
Not sure if it is a old one or if you made it.
Oh yes... I made it... Is it OK? The catapult would be cooler ;)

Re: Firefox search engine

Posted: 10 Aug 2011, 21:50
by jj
I already put it on SF. Cookies for you!

Re: Firefox search engine

Posted: 31 Aug 2011, 17:08
by knorke
it seems websites can somehow "propose" themself to that search field.
ie youtube does it:
Image
I do not have youtube added as search engine but when visiting youtube.com that arrow symbol changes a bit and you can easily add yt search.
Without having to go to http://mycroft.mozdev.org etc

Re: Firefox search engine

Posted: 31 Aug 2011, 20:52
by dansan
I noticed this on some sites, but was never interested how they do it... well it's easy :)

jj: you can install the appended file "opensearch" (rename...) and add a line to sf.com's header (inside <head>):

Code: Select all

<link rel="search" type="application/opensearchdescription+xml" href="http://springfiles.com/opensearch" title="SpringFiles Search">
I didn't test it, but it should work...

Re: Firefox search engine

Posted: 31 Aug 2011, 21:14
by jj
Thanks a lot!
I added it to the site and it is almost working.

However, i have no idea what to put in the href field.
It seems it needs the link to the actual script file, but how do i get it?

Re: Firefox search engine

Posted: 31 Aug 2011, 22:14
by dansan
The attached "opensearch.zip" is really a text-file. In my <link> example you have to put it at /var/www/...../htdocs/opensearch, so that it is downloadable as http://springfiles.com/opensearch

I couldn't upload it without extension, because the forum has restricted uploads to some file extensions. I didn't want to use ".xml", because on some servers it has special meaning. So I renamed it to ".zip".

Anyway: the file has to be downloadable somewhere, and that URL should go into href. If all paths are php-interpreted or apache-mod-rewritten -> maybe you have something like "/static/"?

Re: Firefox search engine

Posted: 01 Sep 2011, 08:10
by Neddie
Pretty awesome.

Re: Firefox search engine

Posted: 01 Sep 2011, 15:51
by jj
it works 8)