Extension:CategorySuggest

What can this extension do?
Adds input box to edit and upload page which allows users to assign categories to the article. When a user starts typing the name of a category, the extension queries the database to find categories that match the user input.

This extension has been extracted from the code in Extension:SelectCategoryTagCloud.

Download instructions
Please download the extension, unzip it and place the files into the extensions folder:. Note: $IP stands for the root directory of your mediawiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: Configure the MediaWiki database credentials in CategorySuggestSuggest.php. If necessary, customise the location of the CategorySuggestSuggest.php file on your webserver in CategorySuggest.js.

To Do

 * Modify SQL query to allow search for multiple terms (currently search ignores everything after a user entered a space character)
 * Add event to resultsdiv so that hitting ESC clears the div
 * Change resultsdiv to display in block (one single column) and make it navigateable. Google suggest and other sites allow users to navigate the results list with the arrow keys.
 * Highlight matching characters of user input with results list (user types MI and all results matching MI have the MI part of the word in bold or different color)
 * Move CategorySuggestSuggest.php page to a Mediawiki Query API based solution. Need to extend API to enable that feature.
 * Optimise for large category sets. If this extension would be run against Wikipedia, it would be choked by the large number of categories.