Blogger Hacks, Categories, Tips & Tricks

Saturday, May 20, 2006
Integrated Search Results
Over at The Last Word, Aditya has come up with a great blog-search hack that displays the search results in your template. As regular readers know, one of the things that adds value to a hack & makes it worth implementing is the nature of the output. Are you taken offsite / to a 3rd party to see search results, category lists &c, or can you pull those goodies back into your sidebar (or a fake post) for maximum integration and slick-looking professionalism?

So... This hack takes Google Blog Search results, converts them to a JSON feed and lets you format them any way that you please on your blog. Cool. The code is alll available at The Last Word. Once again, there's instructions on wrapping the inserts in rarely-used tags so that the special parts of the template are easily seen by the script. The hack is also working wonderfully over there in the sidebar, so you can test it before you install it!!

Filed in:
Posted at 11:10 AM by John.
5 Comments:
<    >
Blogger Aditya said...
"Once again, there's instructions on wrapping the inserts in rarely-used tags so that the special parts of the template are easily seen by the script."

Did I say that? :P They can go in <div>'s. What makes a difference here is the id value of the element which gets written to!

Thanks for the link John!

<    >
Blogger John said...
Agreed... I misunderstood this part:

"Notice, that I have used the container tag named text to show the results. You can change it to anything for your usability comfort."

<    >
Blogger Avatar said...
The name is don´t has enough impact... maybe if it were Native Blogger Search : integreated search results?

;P

<    >
Blogger Mark K. Sprengel said...
Dang that is slick. I may have to add another goodie to my sidebar.

<    >
Blogger Greg said...
Indeed - a great hack in that it avoids dragging users off to Google's blogsearch page. Do you have any ideas for spin-off searches ie inbounds, citations etc?

Oh, and I take back what I said about using Yahoo's web service search: its indexing is just a little too sloppy for this purpose.

Links to this post:

Create a Link


eXTReMe Tracker