Firefox Search Plugin for Sitepoint

As it’s Friday, a nice gimmick for Firefox users, inspired by Planet PHP’s Search Plugin (itself inspired by the PEAR search plugin).

First you need a little XML like;


name="Sitepoint"
description="Sitepoint Search"
method="GET"
action="http://www.sitepoint.com/search/search.php"
>


browserResultType="result"
resultListStart=""
resultListEnd=""
>

Filename: sitepoint.src (put in somewhere like http://localhost/sitepoint.src)

Next a touch of HTML;






Install Sitepoint Search Plugin

Put that somewhere one your local server as well, view with Firefox and install, then you should be able to select Sitepoint from the search drop down (top right in default Firefox theme) and enter searches directly.

Judging from this part of the configuration file;


method="GET"

Looks like POST is supported as well – should be possible to add searches for specific forums as well, but haven’t tried.

Further documentation can be found here: http://mycroft.mozdev.org/deepdocs.html

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

  • SR

    Maybe you could put the nessary code on sitepoint.com, so all we would have to do is click the link.

  • http://www.phppatterns.com HarryF

    *Sigh* What happens when you’re hacking late on Friday afternoon? You “release” something that doesn’t work.

    Spent the day working with Perl so in the HTML page, replace the # comments with //

    …but be warned – it doesn’t work accept for adding a Sitepoint logo to your Firefox search (which does nothing but look pretty). Too dumb right now to work out the problem. Any takers?

  • http://www.phppatterns.com HarryF

    Maybe you could put the nessary code on sitepoint.com, so all we would have to do is click the link.

    Don’t have to rights to do so but perhaps will see how I can con …err.. vince to do it ;)

  • khlo

    AFAIK it looks for .gif, .jpg, and .png of the same name in that folder. I can’t remember the exact order it looks for them in. So http://localhost/sitepoint.png will be used for the search icon if it exists.

    I probably misread what you wanted anyway, it’s typical of me!

  • http://www.phppatterns.com HarryF

    AFAIK it looks for .gif, .jpg, and .png of the same name in that folder. I can’t remember the exact order it looks for them in. So http://localhost/sitepoint.png will be used for the search icon if it exists.

    That probably explains part of the problem. Thanks. Think I may have done so unwittingly in the first attempt – should have checked what I was posting.

  • jfriesen

    You can find SitePoint.com search plugin here:
    http://www.stevensmedia.com/downloads/sitepointplugin.htm

    There’s also a SitePoint Forums search plugin, here:
    http://www.stevensmedia.com/downloads/sitepointforumsplugin.htm

    JF ;)