General Disclaimer: (HV) (DC) injury or death hazard, use at your own risk, may void warranty. |
Difference between revisions of "User:WikiAdmin"
Jump to navigation
Jump to search
(Userlogin signup fix) |
(Search Enhancements) |
||
Line 21: | Line 21: | ||
<!-- /wiki/includes/MagicWords.php --> | <!-- /wiki/includes/MagicWords.php --> | ||
<!-- Include pages {{:History}} {{:Mission}} --> | <!-- Include pages {{:History}} {{:Mission}} --> | ||
+ | |||
+ | ==Search Enhancements== | ||
+ | per [http://meta.wikimedia.org/wiki/How_to_add_Google_search_to_your_MediaWiki_Search_Results_Page] In includes/SpecialSearch.php there is a function showResults( $term ) which formats and outputs all the search results from a query, near the top add: | ||
+ | $wgOut->addHTML( wfMsg( 'Googlesearch', $term ) ); # add | ||
+ | $wgOut->addWikiText( wfMsg( 'searchresulttext' ) );# above this | ||
+ | * [[MediaWiki:Googlesearch]] fix $3 and cleanup? | ||
+ | * [[MediaWiki:Nogomatch]] remove prompt to create page? | ||
+ | * [[MediaWiki:Searchresulttext]] cleanup/clear | ||
+ | In LocalSettings.php | ||
+ | # $wgDisableTextSearch = true; | ||
+ | # $wgSearchForwardUrl = 'http://www.google.com/search?q=$1'; | ||
+ | # $wgSearchForwardUrl = 'http://www.google.com/search?q=site%3Adigipen.edu+%22$1'; | ||
+ | $wgNamespacesToBeSearchedDefault = array( | ||
+ | -1 => 0, # Default setting | ||
+ | 0 => 1, # Main | ||
+ | 1 => 0, # Main talk | ||
+ | 2 => 0, # User | ||
+ | 3 => 0, # User talk | ||
+ | 4 => 1, # SiteName | ||
+ | 5 => 0, # SiteName talk | ||
+ | 6 => 1, # Image | ||
+ | 7 => 0, # Image talk | ||
+ | 8 => 0, # MediaWiki | ||
+ | 9 => 0, # MediaWiki talk | ||
+ | 10 => 1, # Template | ||
+ | 11 => 0, # Template talk | ||
+ | 12 => 0, # Help | ||
+ | 13 => 0, # Help talk | ||
+ | 14 => 1, # Category | ||
+ | 15 => 0); # Category talk |
Revision as of 02:00, 30 June 2006
Contents
- User Management:
Special:Interwiki Management - Interwiki Help
Namespace
- Namespace messages
- MediaWiki:Whitelistedittext
- MediaWiki:Loginprompt
- MediaWiki:Sidebar
- MediaWiki:Sitetitle = My wiki
- MediaWiki:Pagetitle = $1 - My wiki
Search Enhancements
per [1] In includes/SpecialSearch.php there is a function showResults( $term ) which formats and outputs all the search results from a query, near the top add:
$wgOut->addHTML( wfMsg( 'Googlesearch', $term ) ); # add $wgOut->addWikiText( wfMsg( 'searchresulttext' ) );# above this
- MediaWiki:Googlesearch fix $3 and cleanup?
- MediaWiki:Nogomatch remove prompt to create page?
- MediaWiki:Searchresulttext cleanup/clear
In LocalSettings.php
# $wgDisableTextSearch = true; # $wgSearchForwardUrl = 'http://www.google.com/search?q=$1'; # $wgSearchForwardUrl = 'http://www.google.com/search?q=site%3Adigipen.edu+%22$1'; $wgNamespacesToBeSearchedDefault = array( -1 => 0, # Default setting 0 => 1, # Main 1 => 0, # Main talk 2 => 0, # User 3 => 0, # User talk 4 => 1, # SiteName 5 => 0, # SiteName talk 6 => 1, # Image 7 => 0, # Image talk 8 => 0, # MediaWiki 9 => 0, # MediaWiki talk 10 => 1, # Template 11 => 0, # Template talk 12 => 0, # Help 13 => 0, # Help talk 14 => 1, # Category 15 => 0); # Category talk