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
(Search Enhancements) |
(→Search Enhancements: Updated) |
||
Line 51: | Line 51: | ||
14 => 1, # Category | 14 => 1, # Category | ||
15 => 0); # Category talk | 15 => 0); # Category talk | ||
+ | |||
+ | No longer used: Added to skins/DPSkin31.php at about line 407 | ||
+ | // Begin New Portions to search more namespaces | ||
+ | $s .= "<input type=\"hidden\" value=\"1\" name=\"ns0\">"; // Main | ||
+ | //$s .= "<input type=\"hidden\" value=\"1\" name=\"ns1\">"; // Talk | ||
+ | $s .= "<input type='hidden' name=\"searchx\" value=\"" . htmlspecialchars( wfMs( "Go" ) ) . "\" />"; | ||
+ | Also change this | ||
+ | . "  <input type='submit' name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>"; | ||
+ | To this | ||
+ | . "  <input type='submit' name=\"searchx\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>"; |
Revision as of 21:40, 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
No longer used: Added to skins/DPSkin31.php at about line 407
// Begin New Portions to search more namespaces $s .= "<input type=\"hidden\" value=\"1\" name=\"ns0\">"; // Main //$s .= "<input type=\"hidden\" value=\"1\" name=\"ns1\">"; // Talk $s .= "<input type='hidden' name=\"searchx\" value=\"" . htmlspecialchars( wfMs( "Go" ) ) . "\" />";
Also change this
. "  <input type='submit' name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";
To this
. "  <input type='submit' name=\"searchx\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";