Hello, I have recently installed MediaWiki 1.22.3 and hope to use it to host some documentation. I like the Vector skin and have been using Common.css to add some local styling. All looks great so far and I am very impressed with Mediawiki.
But I would really like to be able to add a "banner" (or menu etc.) to the top of the site, before any standard elements (or possibly sit behind them). I would also like to have a basic idea on changing a few skin elements perhaps. I have little PHP experience (but some other programming languages) so my difficulties are probably stupid and/or basic. Following Daniel Friesen's "subskin" tutorial (thanks Daniel!) : http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/ My site is now using my own skin "Zed Docs". Or so it seems to be - it is identical to Vector at the moment. However, I can't seem to figure out how to insert any changes in my skin and have them picked up. I have taken the very basic PHP skin file I created following the tutorial : ZedDocs.skin.php : require_once( dirname( __FILE__ ) . '/../Vector.php' ); class SkinZedDocs extends SkinVector { var $skinname = 'zeddocs', $stylename = 'zeddocs'; function setupSkinUserCss( OutputPage $out ){ parent::setupSkinUserCss( $out ); $out->addModuleStyles( "skins.zeddocs" ); } } and copied much of the rest of the Vector.pnp code below it, changing : class VectorTemplate extends BaseTemplate { ... to : class ZedDocsTemplate extends VectorTemplate { ... (is this correct?) Then inside this, the whole of the "execute" function : public function execute() { ... But nothing I add or modify inside the "execute" function makes any difference to the page I see e.g. adding anything after : <div id="mw-page-base" class="noprint"></div> or anywhere else. I almost certainly have a fundamental misunderstanding somewhere. No doubt coupled with my lack of PHP experience (I know I should really learn more about it). What am I doing wrong and what do I need to do? Many thanks for any help or advice. Cheers, -- Alastair Sherringham http://www.sherringham.net _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
