Extension:Search Suggest

What can this extension do?
This extension takes the idea of mediawiki's built in ajax search, and makes it much more useful. It places the search results directly under the search bar, and does not take over the content (like the built in feature does).

The search looks for the word (or whatever you are looking for) within the article names, and not just at the beginning by default. There is an option to change this setting.

Usage
You should be able to just install it, reload your cache, and see it work. If it is working, you will see article names appear under the search bar when searching.

Installation

 * create a new folder in your extensions called searchsuggest


 * To install this extension, add the following to LocalSettings.php:


 * Ajax must also be enabled in LocalSettings.php:
 * This can be done by adding the following:


 * Monobook
 * As the code is here, it only works in the monobook skin. This can be easily changed in the javascript.

change searchBody of var searchdiv = document.getElementById("searchBody"); to the name of e dive you want the results to appear in.

php
Copy the following, and save it in the searchsuggest folder as searchsuggest.php

See below for the css and javascript

java script
Copy the following, and save it in the searchsuggest folder as searchsuggest.js

css
Copy the following, and save it in the searchsuggest folder as style.css (this can all be changed without issue)