Skip to main content

Create Search Plugin for your Blog

Many of us must be using Mozilla Firefox, So I’ve created a search engine extension which works on Mozilla Firefox and searches with in Chill Geeks. You could also create a similar extension for your blog. Creating Search engine plug-in for Firefox web browser is very easy. Some of the prerequisites to make your search addon,is that, you should have a little idea about working with XML. You can start making your own blog Search Engine using the template below-
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>engineName</ShortName>
<Description>engineDescription</Description>
<InputEncoding>inputEncoding</InputEncoding>
<Image width="16" height="16" type="image/x-icon">data:image/x-icon;base64,imageData</Image>
<Url type="text/html" method="method" template="searchURL">
  <Param name="paramName1" value="paramValue1"/>
  ...
  <Param name="paramNameN" value="paramValueN"/>
</Url>
<Url type="application/x-suggestions+json" template="suggestionURL"/>
<moz:SearchForm>searchFormURL</moz:SearchForm>
</OpenSearchDescription>



I’ve got this template from Mozilla Developer Center. Various terms used in above template are described at Mozilla Developer’s Center
I’ll explain how I created search engine plug-in for Chill Geeks.WithoutImage
  • Open C:Program FilesMozilla Firefoxsearchplugins
  • There you’ll see all search engine plug-in’s xml files, open up any file using Notepad++ or any text Editor and you will get an idea about the working of various search engine addons
  • Now create a new file over there, name it as yoursite.xml
  • Use the template above and make the required changes.
See the example below, which I’ve made for Chill Geeks
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Chill Geeks</ShortName>
<Description>Chill Geeks Google Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image height="16" width="16" type="image/x-icon">
http://i724.photobucket.com/albums/ww248/chillgeeks/flex.gif</Image>
<Url type="application/x-suggestions+json" method="GET" template="
http://suggestqueries.google.com/complete/search?output=firefox&amp;client=firefox&amp;hl={moz:locale}&amp;q={searchTerms}"/>
<Url type="text/html" method="GET" template="
http://www.chillgeeks.com/search">
  <Param name="q" value="{searchTerms}"/>
</Url>
</SearchPlugin>

Details-Suggest
  • Searchplugin is used to define starting of plugin xml
  • Shortname is used to display name in search bar
  • InputEncoding, keep it UTF-8
  • Image, specifies the path of favicon of your site.
  • Url type JSON, fetches Suggestion quiries from Google.
  • Url type html, specifies site to search within.
  • Param (Parameters), vairable seach term.
If you want to get above xml file, please click here.Now you can easily create your blog’s plugin just by modifying this file and changing www.chillgeeks.com to yourblogname.blogspot.com or www.yourcustomdomain.com
You could also specify Image that will appear in search bar by replacing http://i724.photobucket.com/albums/ww248/chillgeeks/flex.gif with your own favicon image URL.
You can also submit your extension to Mozilla Add-ons, which will increase the popularity of your website. Please let me know by comments, if you get any difficulty in making your search engine extension.

Comments

  1. nice..thanks man

    ReplyDelete
  2. thnx alot, it is a useful post, u r a Professional .

    ReplyDelete
  3. Hello there, I do think your blog could be having browser
    compatibility problems. Whenever I look at your site in Safari, it looks fine however, if opening in IE, it has some
    overlapping issues. I just wanted to give you
    a quick heads up! Apart from that, fantastic website! https://qwertty.net/

    ReplyDelete
  4. Hello there, I do think your blog could be having browser compatibility problems.

    Whenever I look at your site in Safari, it looks fine however, if opening in IE, it has some overlapping issues.
    I just wanted to give you a quick heads up!

    Apart from that, fantastic website! https://qwertty.net/

    ReplyDelete

Post a Comment

Popular posts from this blog

5 things to remember before buying a new smartphone

When you need a new smartphone, it isn’t easy deciding which phone to pick and if you are not careful, you might end up paying extra for features you do not need. That is why it is advisable to compare mobile features and make an informed decision. The top runners in the list of good smartphones are the Samsung Galaxy S5, Apple iPhone 5s, Motorola Moto X, HTC One (M8), LG G2, Nokia Lumia 1520, Samsung Galaxy Note 3, Google Nexus 5 a nd Motorola Moto G. Keep in mind the design, display, performance, camera and battery while comparing these phones. Design You need to decide whether you want a small phone that fits easily in your pocket or you would rather prefer a big screen phone. The iPhone 5s is relatively small in size compared to the massive Lumia 1520. Getting a small size phone doesn’t guarantee it being lightweight, most often it is the opposite. The smaller phone, most often is the heaviest. The Nexus 5 however, is small in size and lightweight. Phones often come in plastic or ...

Fulfilling The Urge of Shopping is Now Easy

Shopaholics on the alert! Get set, and go! Yes, it has indeed turned into a race – a race of online shopping. It may be an occasion embraced shopping carnival or a clearance sale or simply just a season ending mega sale. On its way is another such colossal online shopping fest knownas the Great Online Shopping Festival or simply GOSF which is to take place from the 10th to the 12th of December 2014.   What does GOSF do? The GOSF is an initiative by Google and was launched on the 12th of December, 2012. Ever since then, it has been a favorite among its users. The GOSF offers are not only limited to those particular days of December but numerous trifle coupons, reminders as well as updates are also sent to your registered email ids all through the year. Along with these, there are funny little games on the GOSF site that provide you with innumerable opportunities to win yourself free gift coupons or free shopping facilities just by scoring points in the game.   Worried about the products...

Create Windows 7 bootable USB

Many of us are so lazy these days that we do n’t want to use optical media for any purpose. Now, even Mini laptops do n’t include DVD +RW drive in them. My friend having a similar problem came to me, he was not having any optical media drive in hp Mini laptop. So, he asked me about how could he be able to load Windows 7 or Vista into it, and the answer is by creating a bootable usb pen drive. It is very simple to create a bootable USB drive for Windows 7. Here is the whole guide to create Windows 7 USB installation Preparing the USB drive Get a 4GB or more capacity of USB pen drive, SD/MMC card might also work (not tested by me). Format the pen drive in NTFS file system and copy all the data of Windows Installation DVD into USB drive. Click on start and click Run… Type cmd and press enter. Run cmd as administartor. Now open the USB drive, for example J: drive is my USB drive, I’ll type J: and press enter. Type- cd boot bootsect /nt60 J: /force This will make your pen drive...