Thursday, April 14, 2005

[Searching] on a Blog

I notice some bloggers have a search window on their blogs where it can search their blog and some of them also include searching Google as an option. Anyone know how to add this?

13 comments:

Derrick Schneider said...

Here's the link on Google for doing this. Paste the code into your template and you're good to go. I removed their logo, the "or search www" option, and I changed the text of the button. (you can view source on my page to see what my code looks like)

Rachael said...

On my blog (which is from blogger) the function is at the top. It just isn't so obvious, but it comes up on all blogger sites. See it up there on the left?

Amy Sherman said...

I use Atomz but I'm not very happy with it. Maybe I should switch to Google...

Cate said...

I love this scool! Thanks for the quick replies. Derrick, I'm going to check out the google one. Rachael -- yeah, I know about that one -- I just assumed it's not searching my blog, but all of them, no? It's also not too obvious a place, you know? Love your blog, by the way -- haven't seen it before, but will be adding a link for you. :)

Cate said...

OK Derrick, I put that code in, but what I'm really looking for is the one that gives you the option of searching "this site" (meaning my blog) or google. You know which one I mean?

ejm said...

sweetnicks, here is the link to web or site search:

www.google.com/searchcode.html#both

Derrick, doesn't Google insist on their logo being shown beside the search box? (I see that you have nicely gotten around it by putting "googleme" on your search button)

Rachael said...

Sweetnicks-
It does just search your blog...try it and see. I wish more people knew that, since I get a lot of visitors looking for something and not seeing it right away, so they leave. And thanks for the sweet comment on my blog, I love yours too!

Cate said...

Ejm - thanks for that link and code. When I put it on, my whole navigational bar disappears. I tried pasting it in a couple different places to no avail ... sigh...

Derrick Schneider said...

ejm,

Hmm. "insist" is pretty strong. I'm sure they'd like me to, but one _could_ fairly easily reverse-engineer a search field without using their sample code (I did originally, and then I found their version, which I figured set all the parameters properly).

So I don't worry too much about them demanding that I have a google logo. If they ever pester me, I'll write my own (hint - "site:" + your site will limit searches to your site even on the google web page, so it's really not hard to figure out what to do based on the query string they happily put in the URL).

ejm said...

Sweetnicks, did you take a look at the sourcecode on Derrick's site? Maybe that would work for you.

Elise said...

Google does "insist" actually. They survey websites using their code and will send you a friendly email to ask that you put the logo back in, if you have stripped it out. Been there...

Derrick Schneider said...

Elise,

Just noticed your comment. If they get around to asking me, I'll get around to writing my own rendition. I don't have a problem with them promoting their brand; I just don't like the look of the logo on my site.

Tana said...

I hope someone can help me...I'm using Typepad with a pro account, which gives me some flexibility on my customization. But I cannot figure how to insert certain code into the page. (For example, Google code to search the site.)

Ultimately, I am going to have to learn how to install Movable Type onto my own server, but for the immediate future, can someone be kind enough to handhold me through this step?

I feel like the oldest dog learning new tricks...I have been doing web design for over ten years, but all this stuff is just really confusing to me.

(And double gratitude and bonus points if you can tell me how to put in a Paypal link.)

Many thanks for any assistance you can give!