Firefox Search Plugin for Sitepoint

By | | PHP

6

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;

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

Written By:

Harry Fuecks

Harry has been working in corporate IT since 1994, with everything from start-ups to Fortune 100 companies. Outside of office hours he runs phpPatterns: a site dedicated to software design with PHP that aims to raise standards of PHP development. He also maintains Dynamically Typed: SitePoint's PHP blog.

 

{ 6 comments }

jfriesen April 3, 2005 at 3:51 pm

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 ;)

HarryF June 5, 2004 at 3:39 pm

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.

khlo June 5, 2004 at 7:50 am

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!

HarryF June 5, 2004 at 4:26 am

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 ;)

HarryF June 4, 2004 at 5:40 pm

*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?

SR June 4, 2004 at 4:46 pm

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

Comments on this entry are closed.