Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sk3pt1c

macrumors 6502a
Original poster
Nov 29, 2005
918
6
a simulacrum
i've noticed some DW templates have the search box built in, but how would i go about adding one to a page i'm making from scratch?
also, how exactly does that work?
does the web hosting provider have to do something to enable the search function or does DW add the functionality on its own?
this is my first time adding a search box, so please bare with me.
thanks!
 
There's many ways to go about doing searching. You can build your own search engine with PHP and MySQL, some service providers might offer the capability, or you could use Google as your search engine, which is what I'm currently doing. Google has a custom search engine (CSE) that you can use that will give you the code to place the search box on your page and tell you how to setup a search results page that'll place the results there, rather than at Google's site.

There are some other ways too, and a lot of them are hard work, which is why I've settled with Google for now. There's a number of third party installs you can do too, but cost varying amounts of money.
 
wow, that looks interesting to say the least!

so you can use that to have users search your own site, right?

thanks a lot man!
 
wow, that looks interesting to say the least!

so you can use that to have users search your own site, right?

thanks a lot man!

Yuppers as long as Google has the site indexed. It doesn't update as much as I'd like, but still does well. This also means recent changes won't be included generally. Haven't tested this thoroughly. You can take a quick look at my site where I have it implemented (site accessible under my profile) it's at the top of my navigation. The search field is customizable and my results page looks a little ugly, but it is customizable and I just haven't gotten back to make it look better.
 
if Google CSE doesn't cut it for you you could have your own search engine powered by something like Tipue, which you can update manually or create a small javascript file to cache your site into the xml file.
 
i think i will give tipue a go with a test page or something of the sort.
thanks guys.
any more suggestions?
google cse still looks nice though
 
That's really cool.

Can you take the "Google Custom Search" logo off the search box area? I'd like to do this for a college website, but I don't want a big "GOOGLE" on the front page.

:apple:
 
That's really cool.

Can you take the "Google Custom Search" logo off the search box area? I'd like to do this for a college website, but I don't want a big "GOOGLE" on the front page.

:apple:

Google adds that watermark in their JavaScript, which just controls the CSS for that element. You should be able to use CSS to override it. You may have to add the "!important" component to the end of the CSS statement though to make sure Google's code doesn't override it. I haven't tested this to see if it works though. It's not that horrible looking though.

Edit:
I just confirmed that CSS can override the Google watermark. Just do something like,
Code:
input { background-image: none !important; }
 
Google adds that watermark in their JavaScript, which just controls the CSS for that element. You should be able to use CSS to override it. You may have to add the "!important" component to the end of the CSS statement though to make sure Google's code doesn't override it. I haven't tested this to see if it works though. It's not that horrible looking though.

Edit:
I just confirmed that CSS can override the Google watermark. Just do something like,
Code:
input { background-image: none !important; }

UBER!!!!
THANK YOU!!!
:apple:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.