How to write search by the website

How to write search by the website

The modern websites are pretty fast filled with various information. Therefore in order that the visitor with ease was guided on your resource, surely take care of installation of the module of search — the tool allowing to find any information on the set keywords.

Instruction

1. To install the search module, you need the modern web browser and also access to the administrator panel of your resource where you will be able to edit HTML code. Activate the control panel of the user search of a system of Google. In the browser come to the address http://www.google.ru/cse/. In the top part click on the appeared link "Enter". On the opened page specify the credentials which belong to the Google account. After that log in the account. If earlier you had no accounts on Google, create to yourself the account right now. Visit at the link "Create the Account Right Now", specify all required data, make confirmation by mail. After that return to the page of input of the accounts.

2. Enter the control panel and on the homepage activate the button under the name "Create the System of the User Search". In the appeared window perform all necessary operations, namely customize the system of search by your resource, fill the available fields on the page, designate the name and also the description and the field of alleged search. Having done all above-mentioned actions, press Next. Now decide on style of display of search results on the website. If it is required, make fine tuning of style, having activated the option "Configure". On completion of all done operations, click on Next located at the bottom of the page.

3. In a text box the page on which you will see the code necessary to you for the subsequent installation of search by the website will open. Copy it. Came it is time to enable search by your resource. Edit files of themes of the website, files of templates and HTML code of pages, add to them the JavaScript-code which you received at the previous stage. After that you need only to check the received results. For this purpose try to run for search by the website. In case of success the page with information found by keywords will open.

Author: «MirrorInfo» Dream Team


Print