General Disclaimer:   (HV) (DC) injury or death hazard,   use at your own risk,   may void warranty.

Difference between revisions of "User:WikiAdmin"

From My wiki
Jump to navigation Jump to search
(→‎Namespace: common.js and common.css)
m (Protected "User:WikiAdmin" [:view=1])
(No difference)

Revision as of 09:32, 15 October 2007


User Management

Namespace


Special:Interwiki Management - Interwiki Help

Use http://www.eaa-phev.org/wiki/index.php?flushcache to flush this servers cache.

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

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

. "&nbsp&nbsp<input type='submit' name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";

To this

. "&nbsp&nbsp<input type='submit' name=\"searchx\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";