How to chage Skins/Templates

You can create a skin all by yourself by following the steps provided below:

  1. Go to your mediawiki directory;
  2. Copy the monobook directory and name it with the name of your skin, e.g: mygepskin;
  3. Copy the MonoBook.php file and name it with the name of your skin, e.g: MyGepSkin.php;
  4. Edit MyGepSkin.php and change the class name to SkinMyGepSkin, e.g: class SkinMyGepSkin extends SkinTemplate;
  5. In MyGepSkin.php, change make the other class to have your skin name together with the word Template, e.g: class MyGepSkinTemplate extends QuickTemplate;
  6. In MyGepSkin.php, make $this->skinname to have a string value of your skin name, e.g: ‘mygepskin’;
  7. In MyGepSkin.php, make $this->stylename to have a string value of your skin name, e.g: ‘mygepskin’;
  8. In MyGepSkin.php, make $this->template to have a string value of your skin name properly capitalised with the word Template, e.g: ‘MyGepSkinTemplate’;
  9. In your mygepskin directory edit the image and CSS files;
  10. Edit and customise MyGepSkin.php as you please;
  11. In LocalSettings.php set $wgDefaultSkin = ‘mygepskin’.

    ref:http://www.ehartwell.com/TechNotes/FrontPageWithMediaWiki.htm

Posted: July 21, 2007

Comments »

The URI to TrackBack this entry is: http://wikinote.blogsome.com/2007/07/21/how-to-chage-skinstemplates/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.