On Tue, Feb 11, 2014 at 12:32 PM, Forest S <[email protected]> wrote:

> Thanks for the follow up, Bill.
>
> You wrote,
> > Something finally clicked, when I realized that I could
> > contain any custom HTML in myskin.skin.php
> > and any styling in screen.css.
>
> I see how you can add CSS to screen.css by overriding the following method
> (taken from tutorial #2):
> function setupSkinUserCss( OutputPage $out ) {
>      parent::setupSkinUserCss( $out );
>      $out->addModuleStyles( "skins.myskin" );
>      }
>
> But how do you add HTML? This is the primary challenge for us. Adding the
> ability to do this would, I think, substantially extend the power of
> Daniel's excellent tutorial. Would you be willing to share some of the code
> you use for adding custom HTML in myskin.skin.php?
>
>
Right after the closing ?> after the setupSkinUserCss function, I simply
pasted all of the <div> tags from the original custom skin that matched the
CSS file id's.  Unfortunately, I can't share any of it, as it's for a
client.



> Best,
> Forest
>
> On Mon, Feb 10, 2014 at 1:22 PM, Bill Traynor <[email protected]> wrote:
>
> > On Fri, Feb 7, 2014 at 7:56 PM, Forest S <[email protected]> wrote:
> >
> > > Hi Bill,
> > >
> > > Many thanks for the update. I'd like to try to replicate what you did,
> > but
> > > I'm not sure where to start. Did you use one of the following three
> > > tutorials?
> > >
> > > 1. https://www.mediawiki.org/wiki/Manual:Skinning/Vector
> > > 2. http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/
> > > 3.
> http://blog.redwerks.org/2012/02/08/mediawiki-skinning-tutorial/(which
> > > is the same as https://www.mediawiki.org/wiki/Manual:Skinning/Tutorial)
> > >
> >
> > I followed #2:
> > http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/
> >
> > But I read the others.  Something finally clicked, when I realized that I
> > could contain any custom HTML in myskin.skin.php and any styling in
> > screen.css.  I intend to eventually break the styling up into smaller css
> > files.  But for now it's working as I need it to.
> >
> > To tweak the CSS to match custom skin from the old MW1.16 site, I used
> > Firefox with the Firebug plugin to identify what I needed to change, then
> > edited the screen.css file directly.
> >
> > Everything else in the vector subskin was left as it is.  So my subskin
> is
> > basically a vector skin with a custom header.
> >
> >
> >
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to