I just made two bits, both in PHP:
<?php
header("Content-type: application/opensearchdescription+xml");
require_once "include/siteconfig.php";
$searchURL="" . siteURL . "/searchresults.php?domains=www." . siteshortname
. "&q={searchTerms}&sa=Search&sitesearch=www." . siteshortname .
"&client=pub-9831670053989117&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23000000%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3AF38609%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A0%3BLW%3A0%3BL%3Ahttp%3A%2F%2Fwww."
. siteshortname .
"%2Fstyles%2Fimages%2Fgeneral%2Fanilogo.gif%3BS%3Ahttp%3A%2F%2Fwww." .
siteshortname . "%2F%3BFORID%3A11&hl=en";
echo
"<?xml version=\"1.0\"?>
<OpenSearchDescription
xmlns=\"http://a9.com/-/spec/opensearch/1.1/\<http://a9.com/-/spec/opensearch/1.1//>
">
<ShortName>UK Free TV</ShortName>
<Description>UK Free TV</Description>
<Image height=\"16\" width=\"16\" type=\"image/x-icon\">" . siteURL .
"/faviconukfree_v2.ico</Image>
<Url type=\"text/html\" method=\"get\" template=\"$searchURL\"/>
<Url type=\"application/x-suggestions+json\" method=\"GET\"
template=\"$searchURL\"/>
</OpenSearchDescription>";
?>
the searchresults.php file has...
<script type=\"text/javascript\">
var googleSearchIframeName = 'googleSearchUnitIframe';
var googleSearchFrameWidth = 400;
var googleSearchFrameHeight = 1300;
var googleSearchFrameborder = 0 ;
</script>
<script type=\"text/javascript\"
src=\"http://www.google.com/afsonline/show_afs_search.js\<http://www.google.com/afsonline/show_afs_search.js/>
">
</script>";
and then just dropped this into my site's <head> sections...
<link rel="search" type="application/opensearchdescription+xml" href="
opensearch.php" title="UK Free TV">
It works with IE and Firefox, Windows and Macs
On 29/06/07, Dave Cross <[EMAIL PROTECTED]> wrote:
Matthew Cashmore wrote:
> Martin - how did you make that?
Something along these lines I suspect:
http://developer.mozilla.org/en/docs/Creating_OpenSearch_plugins_for_Firefox
Dave...
-
Sent via the backstage.bbc.co.uk discussion group. To unsubscribe, please
visit http://backstage.bbc.co.uk/archives/2005/01/mailing_list.html. Unofficial
list archive: http://www.mail-archive.com/[email protected]/
--
Please email me back if you need any more help.
Brian Butterworth
www.ukfree.tv