Alexis Moinet wrote:
Ideally I would like to completely remove or hide the Skin page link/tab from User Preferences, too. Any Ideas how best to do that? Maybe with CSS?
go in *includes\SpecialPreferences.php* and comment the lines
# Skin # $wgOut->addHTML( "<fieldset>\n<legend>\n" . wfMsg('skin') .
"</legend>\n" ); $mptitle = Title::newMainPage(); $previewtext = wfMsg('skinpreview'); # Only show members of $wgValidSkinNames rather than # $skinNames (skins is all skin names from Language.php) foreach ($wgValidSkinNames as $skinkey => $skinname ) { if ( in_array( $skinkey, $wgSkipSkins ) ) { continue; } $checked = $skinkey == $this->mSkin ? ' checked="checked"' : ''; $sn = isset( $skinNames[$skinkey] ) ? $skinNames[$skinkey] : $skinname;
$mplink =
htmlspecialchars($mptitle->getLocalURL("useskin=$skinkey")); $previewlink = "<a target='_blank' href="$mplink">$previewtext</a>"; if( $skinkey == $wgDefaultSkin ) $sn .= ' (' . wfMsg( 'default' ) . ')'; $wgOut->addHTML( "<input type='radio' name='wpSkin' id="wpSkin$skinkey" value="$skinkey"$checked /> <label for="wpSkin$skinkey">{$sn}</label> $previewlink<br/>\n" ); } $wgOut->addHTML( "</fieldset>\n\n" );
Nice. Working beautifully. Thanks you. And I have added this tip to http://meta.wikimedia.org/wiki/Skins
Wait, that was probably not the best wiki to leave my note on. I'm confused. I should have put my help note on mediawiki.org and *not* on meta.wikimedia.org, right?
Roger :-) http://Wikigogy.org/User:Roger -- MediaWiki 1.6.7