
->

This is a tutorial on how to add a blog into a browser search engine by taking advantage of the Opensearch technology. For the time being, this feature is only available in Mozilla Firefox and Internet Explorer 7.
1. First you need to create an XML file. Copy the following code into a notepad and save it as myopensearch.xml
<?xml version="1.0"?>
<OpenSearchDescription
xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>YOUR_BLOG_NAME</ShortName>
<Description>YOUR_BLOG_DESCRIPTION</Description>
<Url type="text/html"
template="http://YOUR_BLOG_PATH/index.php?s={searchTerms}"/>
<LongName>YOUR_BLOG_LONG_NAME</LongName>
</OpenSearchDescription>
2. Before you "save as" the myopensearch.xml file, you need to modify few parameters accordingly.
- YOUR_BLOG_NAME - change to your blog name (i.e. Eches Blog)
- YOUR_BLOG_DESCRIPTION - brief description of your blog
- YOUR_BLOG_PATH - Your blog path (i.e http://blog.eches.net or http://eches.net/blog/)
- YOUR_BLOG_LONG_NAME - your blog name
3. Once the modifications are done, upload the file to the root directory of your blog.
4. Go to the theme editor under the presentation (via admin screen) and open header.php. Find the following code.
<link rel="pingback"
href="<?php bloginfo('pingback_url'); ?>" />
5. Insert the following code right below the above code. Change the YOUR_BLOG_NAME and YOUR_BLOG_PATH to your blog name and your blog path accordingly.
<link rel="search" title="YOUR_BLOG_NAME"
href="http://YOUR_BLOG_PATH/myopensearch.xml"
type="application/opensearchdescription+xml" />
Save the header.php and get ready to see it in action.

Note: I owe credit to LiewCF: How to Create an Autodiscovery Blog Search for Web Browser
Technorati Tags: wordpress, tips, blog, web development













