...

View Full Version : Possible Site Search Options



ajhauser
08-08-2012, 05:43 PM
Hello,
I am breaking a website off of a Wordpress setup for a client, and I was hoping I could get a recommendation on a way to add a search function to the website? I was wondering if there were popular php scripts that could accomplish this? That's why I posted here.

I just want to search the domain, populate a page with results (that can hopefully be styled) and avoid ads.

Does anyone have any insight on this?
I would really appreciate your opinions.

Thanks very much.

Fumigator
08-08-2012, 11:27 PM
You can use Google with Google Site Search, but I think it might cost money...

http://www.google.com/enterprise/search/products_gss.html

Oh hey there's a free version too, but you get ads...

http://www.google.com/cse/

AndrewGSW
08-09-2012, 12:35 AM
Just to mention the simple option of a Google Search, optionally of your site:


<form id="frmSearch" method="get" action="http://www.google.com/search">
<input type="text" id="searchbox" name="q" placeholder="Google search">
<input type="image" src="images/searchbutton1.gif" width="24" height="22"
alt="search button" title="Search">
<input type="checkbox" id="sitesearch" name="sitesearch" >
</form>

The name "q" identifies the search terms, and the checkbox named "sitesearch" confirms if it will search the specified site only. The form can specify an iframe as a 'target'.

ajhauser
08-09-2012, 03:15 PM
I will check both of them out - thanks you very much. If anyone knows of any other options that have worked for them I'd love to hear about it! Thanks!

ajhauser
08-09-2012, 04:25 PM
Andrew if I use that method would I be able to style the results at all? Would I be able to show the results on a new page instead of within an iframe?

Thanks very much.

AndrewGSW
08-09-2012, 06:25 PM
Andrew if I use that method would I be able to style the results at all? Would I be able to show the results on a new page instead of within an iframe?

Thanks very much.

If you don't add a target (to an iframe) it will open in a new page. In which case you will have no control over the styling.

You could investigate the Google Search API mentioned in a previous post. I suspect this will contain adverts unless paid for.

There are alternative search tools that work with PHP. One called FreeFind (http://www.freefind.com) many of which allow you some control over the styling.

Some of these tools require you to download a piece of software to perform the indexing of your site. It is possible to find, or create, such indexing software for yourself. However, I doubt that it is a trivial task ;)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum