Maian Search v1.0
Installation Instructions

-----------------------
**SYSTEM REQUIREMENTS**
-----------------------

A server that supports PHP & MySQL. PHP v4.3.0 or higher is recommended as some of the script syntax will not work 
with earlier versions.

---------------------
**AUTO INSTALLATION**
---------------------


1. In your server administration area, create a database to hold your search tables. If you are unsure of this procedure
   please contact your web hosting company.

2. Using a text editor, open up the 'inc/db_connection.inc.php' file and edit the preferences to point to the database
   that you created in step 1.

3. Again, using a text editor, open up the 'admin/inc/password.inc.php' file and set a username and password for
   your admin area.

4. Upload ALL the contents of the Maian Search .zip file into a directory on your web server. You can omit the 'docs' &
   'schematic' folders if you wish.

5. Access the 'install.php' file in your browser. http://www.yoursite.com/search/install.php. Follow the set up
   instructions to complete installation.

6. If installation is successful, delete the 'install.php' file from your server.

7. Access your administration area by using the username and password you set earlier.
   http://www.yoursite.com/search/admin/index.php

8. Once logged in, select 'Settings' from the menu to finalise your set up.

9. To install the search box on your web pages, click 'HTML Code' in the admin area and copy and paste the code into
   your own HTML code. If you know a little HTML you can edit the code. It is important that that search path is to
   the 'search.php' file and that there is an hidden input field called 'cmd'. Example:

   <form method="GET" action="http://www.yoursite.com/search/search.php">
   <input type="hidden" name="cmd" value="search">
   <input type="text" name="keywords"><br>
   <input type="submit" value="Search">
   </form>

   The form method MUST be GET. POST will not work.
   
10. If you are putting your site in a frame and want to add a target link to the search, simply add the target link to
    the form tag, which works much like the <a> tag. Example:
    
    <form method="GET" action="http://www.yoursite.com/search/search.php" target="target">

11. Edit the 'templates/search.tpl.php' file to fit the search results page into your existing site.

12. Enjoy!


-----------------------
**MANUAL INSTALLATION**
-----------------------


1. In your server administration area, create a database to hold your search tables. If you are unsure of this procedure
   please contact your web hosting company.

2. Using a text editor, open up the 'inc/db_connection.inc.php' file and edit the preferences to point to the database
   that you created in step 1.

3. Again, using a text editor, open up the 'admin/inc/password.inc.php' file and set a username and password for
   your admin area.

4. Upload ALL the contents of the Maian Search .zip file into a directory on your web server. You can omit the 'docs' &
   'schematic' folders if you wish.

5. Using you web hosting MySQL administration tool (ie: PHPMyADMIN) run the 'schematic/tables.sql' file to set up
   the tables for your search engine.

6. Access your administration area by using the username and password you set earlier.
   http://www.yoursite.com/search/admin/index.php

7. Once logged in, select 'Settings' from the menu to finalise your set up.

8. To install the search box on your web pages, click 'HTML Code' in the admin area and copy and paste the code into
   your own HTML code. If you know a little HTML you can edit the code. It is important that that search path is to
   the 'search.php' file and that there is an hidden input field called 'cmd'. Example:

   <form method="GET" action="search.php">
   <input type="hidden" name="cmd" value="search">
   <input type="text" name="keywords"><br>
   <input type="submit" value="Search">
   </form>

   The form method MUST be GET. POST will not work.

9. Edit the 'templates/search.tpl.php' file to fit the search results page into your existing site.

10. Enjoy!


----------------
**ADDING PAGES**
----------------


1. Click the 'Add New Page' link in your admin area.

2. Specify a title for your page, plus a description, url and some keywords.

3. The search engine searches title, description and the keywords fields, so if you have used a word in your title
   it is not necessary to specify it again in your keywords. The more additional keywords you specify the better chance
   your visitors have of finding the correct pages. If you update your pages in the future, make sure you update your
   keywords.


----------------------------
**SEARCH ENGINE SKIP WORDS**
----------------------------


The search engine cam skip common words for a more detailed search. You can add or remove these words in your admin
area. Click 'settings', then enter the skipwords in the box provided.


--------
**HELP**
--------


If you are unsure of the installation process, I can set the script up for you completely FREE of charge. For this
to be done I will need access to your web hosting account. If you would like me to set the script up for you, or you
need some help, please contact me:
david@m-dream.co.uk


Maian Search v1.0 (c)2005. David Ian Bennett. All rights reserved!
