OpenWetWare:Administration/Customization

Chat

 * Special:Chat
 * powered by phpFreeChat

MySQL full-text search (3 character words)
The default minimum value is four characters. The default maximum depends on your version of MySQL. If you change either value, you must rebuild your FULLTEXT indexes.
 * Procedure:
 * Searching preferences
 * Short words in searches

Namespaces to search by default
In LocalSettings.php: $wgNamespacesToBeSearchedDefault = array( -1 => 0, NS_MAIN => 1, NS_USER => 0, NS_USER_TALK => 0, NS_PROJECT_TALK => 0, NS_IMAGE_TALK => 0,   NS_IMAGE_TALK => 0, NS_TEMPLATE_TALK => 0, NS_HELP_TALK => 0,   NS_CATEGORY_TALK => 0,   100 => 1, 102 => 1 ); List of MW namespaces

Current implementation

 * Based on How to add Google search to your MediaWiki Search Results Page and Google Custom Search Engine
 * in includes/SpecialSearch.php:
 * Find the end of the showResults( $term ) function in SpecialSearch.php. This should be around line 200 as of MW 1.9.
 * Find the line above the end of this function which reads:
 * Insert the following lines of code directly above the line you just found:

===Try Google Search===
 * Create a page called MediaWiki:Googlesearchheader with the following content (header for search box):


 * Create a page called MediaWiki:Googlesearch with the following content (code for the search box):



     


 * Create a page called GoogleSearchResults with the following content (used to display search results):

  var googleSearchIframeName = "results_002907624540990077409:p0fud5ft4ii"; var googleSearchFormName = "searchbox_002907624540990077409:p0fud5ft4ii"; var googleSearchFrameWidth = 600; var googleSearchFrameborder = 0; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; 

Other implementations

 * Google Search extension
 * Google Search 2 extension
 * Search at QED wiki

Miscellaneous
How to hide Main Page title
 * Mediawiki version 1.9+
 * Add the following to the MediaWiki:Monobook.css on your wiki: