growsearch.php contains the search form and site map button for your pages.
.HTML pages: Copy and paste the contents of growsearch.php in to the <body> of tyour pages.PHP pages: Add <?include("growsearch.php");?> to the <body> where you want the form to appear to include the file (make sure you change the path when including it in sub-directory files).<?include("growsearch_highlight.php");?> on the first line of your code (make sure you change the path when including it in sub-directory files). To style the highlight add a class .gshighlight to your CSS file and style however you like.growsearch_results.php. There is a section at the top where you can follow the commented instructions in the file to configure:
<title>). The chosen tag must [1] be a unique tag on each page and [2] contain text and not just be a variable because the script will not parse variables.growsearch_results.php displays both the search results and the site map as appropriate. The page displays a simple XHTML <ul> unordered list and validates straight out of the box. Some basic classes are included in the page already:
<ul class="gsresults"> for the results list.<li class="gsdirectory"> for the <li>'s that will display the directory the pages are found in<li class="gspage"> for <li>'s that will contain the page links. So the simplest way to style the results is to add those classes to your CSS.<h2 class="gsheader"> for title of the results (e.g. Site Map)<p class="gsdescription"> for the text describing the results (e.g. 'Search results are ordered by keyword density')growsearch_results.php for those classes and replace the value.Your host needs to support PHP scripting. If they don't, ask them to install it or switch to one of the 99% of providers who do - PHP is free!
Descriptive <title>'s or <h1>'s are recommended for your site pages. It's not so much a requirement but just good practice because the search routine and site map indexes all pages and can use the contents of any tag you choose as the display text for the pages in the list.
GrowSearch was originally created for our own use (it's used in gr0w.com). We wanted a simple plug-in that made searching any kind of web page a breeze, regardless of user skill level. We also wanted a routine to produce a site map that would update automatially as part of the package. So after a fair slice of hard work allowing for the varied uses you might put it to and readying it for everyone to use its finaly here: Our combined site search and map. Enjoy! More about the work can be seen in the forthcoming library article.
I've finaly got around to writing a press release for GrowSearch. Please feel free to take peek if that kind of thing interests you.