Thread:Project:Support desk/Theme troubles - followed instructions, but custom CSS isn't loading (2)

So the backstory to this is that I'm doing maintenance work on an older MW install where the owners initially modified the look and feel by editing monobook/main.css in place, rather than creating their own theme. I've upgraded their MW install to 1.19 and annoyingly, this overwrote their some of their changes, making the skin misbehave. Rather than have to fix that every time, I have decided to extract their changes into their own skin, as they should have been in the first place.

On advice from someone on #mediawiki on IRC, I followed the steps in http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/ (side note: why are these instructions not on this wiki???). To be exact, I have the following files:

superwiki/superwiki.php superwiki/Superwiki.skin.php superwiki/Superwiki.i18n.php superwiki/main.css

The contents of them are as described in the tutorial. The key lines include:

in superwiki.php

$wgValidSkinNames['superwiki'] = 'Superwiki'; $wgAutoloadClasses['SkinSuperwiki'] = dirname(__FILE__).'/Superwiki.skin.php'; $wgExtensionMessagesFiles['Superwiki'] = dirname(__FILE__).'/Superwiki.i18n.php';

$wgResourceModules['skins.superwiki'] = array(   'styles' => array( 'superwiki/main.css' => array( 'media' => 'screen' ), ),   'remoteBasePath' => &$GLOBALS['wgStylePath'],    'localBasePath' => &$GLOBALS['wgStyleDirectory'], );

In Superwiki.skin.php:

class SkinSuperwiki extends SkinVector {

var $skinname = 'superwiki', $stylename = 'superwiki';

/**    * @param $out OutputPage object */   function setupSkinUserCss( OutputPage $out ){ parent::setupSkinUserCss( $out ); $out->addModuleStyles( "skins.superwiki" ); }

}

The file main.css is a copy of the one they had edited in monobook/main.css and is vastly different from any default theme -- different colours, header image, etc, so it's very obvious when it's loaded.

Anyway, in my LocalSettings.php I have included:

require_once( "$IP/skins/superwiki/superwiki.php" ); $wgDefaultSkin = 'superwiki';

The result when I do this and look at our site, is that I see a plain, unmodified default MW skin -- monobook I guess -- with the whiteish background and blue links. When I look at the source, it says it's loading the following stylesheet:



So, at least the name "superwiki" is there I guess. But nothing of the customised CSS is showing up. Any hints as to what's going wrong?