If you didn't already know, Google has a new tool: Google Blog Search. This makes it really handy to search through those old posts of yours. It's based off of your RSS feed, which for us on Blogger is your url plus a "/atom.xml". So for me that's http://lancefisher.blogspot.com/atom.xml. You can click it, and your browser will figure out a way to render it. The downside is that blogger doens't include the comments in the RSS feeds. I've written them emails in the past requesting this along with other comment related feature requests.

So the next question may be, "how can I use this to search lance's blog?" Well, you can type "site:lancefisher.blogspot.com borsch" and get only the posts on my blog that contain the word "borsch".

I just replaced the Pico search box I had with one that uses Google's blog search. I like this better, because I don't have to worry about reindexing the search like I had to with Pico. Here's how you can add a Google blog search box to your blog:

Put the following code into your template (right before your links is a good spot):
<!-- Begin Google Search Box -->
<form method="get" action="http://blogsearch.google.com/blogsearch" id="blogsearchform">
<input type="hidden" name="bl_url" value="lancefisher.blogspot.com" />
<input id="SearchInputText" type="text" name="as_q" />
<input id="SearchInputButton" type="submit" value="search" />
</form>
<!-- End Google Search Box -->

Now, just change lancefisher.blogspot.com to your blog's url minus the http:// part. If you want to get a little fancier and add some style to it to make it look nicer, you can add this to your template:

/* Google Search Styles
----------------------------------------------- */
#SearchInputText {
  border: 2px solid #778866;
  font:x-small Verdana,Sans-serif;
}

#SearchInputButton {
  border: 2px solid #778866;
  font:x-small Verdana,Sans-serif;
  background-color: #556655;
  color: #778866;
  font-weight: bold;
}

Just look for the </style> and put this code right before it. The #77886 and #556655 are colors that look good on my blog. So unless you are Katie, they probably won't look good on yours. Just find your colors somewhere else in your template, and use those.

2 comments:

** said...

hey lance.

havn't decided yet, as to put up a search engine on my blog yet.. but thank you for putting the code up. you're so great at all that. i couldn't code to save my life.

i can just see it now. we all get heaven, and peter announces that we'll have a coding contest to get into heaven. just hope im not in the same heat as you and Steve Wozniak. i guess i'd be needing alot of red paint after that!

but on that note, good job on the drawings in your flickr account. sometimes i like to flip through the missoula flickr accounts and see whats in there.

much love brother.

** said...

HEY BROTHER!

good to get your informed thoughts on these films. my only knowledge with asian films comes from watching my jet li(one of my favorites), some bruce, some jackie chan and the movies i mentioned in the posts. not much of a knowledge base, but nevertheless.

you said hero has the best storyline. is that the one that is really pretty to look at too? :)

btw, thank you brother. you, erin and krysty have been to me what some people have in church, in a way. my absence from a church home has left me stranded and i dont get to connect with my "tangible" Christian friends but every once in a while (except one good friend and few Christian aquaint. at work). so thank you.

on the same note, i met your sister in law tonight. very cool person. we have been exchanging messages this evening. subjects as far reaching as Hebrew language prayers, bjork, japanese culture, you being half-cannuck and how nice missoula is.

haha.

i hope to keep in contact with her. im trying build up my own little virtual fellowship ring.

well, i guess thats it for now. much love brother.

justin