Code: Select all
<?xml version="1.0"?>
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>PureBasic Forum (EN)</ShortName>
<Description>Search PureBasic Forum</Description>
<Tags>PureBasic</Tags>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">http://purebasic.com/favicon.ico</Image>
<Url type="application/x-suggestions+json" method="GET" template="http://suggestqueries.google.com/complete/search?q=site:purebasic.fr%2Fenglish%2F {searchTerms}"/>
<Url type="text/html" method="GET" template="http://google.com/search?sitesearch=purebasic.fr%2Fenglish%2F&q={searchTerms}"/>
</OpenSearchDescription>
Code: Select all
<link rel="search" type="application/opensearchdescription+xml" title="PureBasic Forum" href="http://purebasic.com/forumsearch.xml"/>
Code: Select all
<a onclick="window.external.AddSearchProvider('http://purebasic.com/forumsearch.xml')" href="javascript:void(0)">Install PureBasic Forum OpenSearch</a>
<a href="#" onclick="window.external.AddSearchProvider('http://purebasic.com/forumsearch.xml')">Install PureBasic Forum OpenSearch</a>
And say you search for info on rc4 this is what the result will look like:
http://www.google.com/search?hl=en&site ... rfai=&src=
The search should be pretty up to date, Google is popping by pretty much daily all the time here o the forum so...
This is a quick nice way to add proper search. The best way would be the custom site search by Google, but that requires a account and more elaborate setup,
so this little trick is way faster to implement with almost the same result, ad in any case better than the forum's built in search.
For those who can't wait to use this the search plugin is also available at https://addons.mozilla.org/en-US/firefox/addon/155820
Firefox, IE7+ and Chrome support this, just click to install it. (opera users, please kick Opera in the rear

It's currently in the sandbox an under review, no idea how long that takes, so until it's fully public you may have to log in at mozilla (at worst you'll have to make an account if you do not have one) it's part of their security standard to make sure nothing nasty is snuck into your browser.