GuMax 3.2.1 ignore Common.css

If you are having problems with GuMax, post here.
Post Reply
User avatar
Yukii
Rank 0
Rank 0
Posts: 3
Joined: October 17th, 2011, 6:33 am

GuMax 3.2.1 ignore Common.css

Post by Yukii »

Hey!

First i must say, i like this nice Skins! GuMax 3.2.1 is my favorite one.

So, now to my Problem.
I have add in my Wiki some codes in the MediaWiki:Common.css but it seems that GuMax 3.2.1 this ignore.
I use actually MediaWiki 1.17. - How can i fix it?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: GuMax 3.2.1 ignore Common.css

Post by Paul »

I guess this is because of new wiki version.

You can add it in head of GuMax.php, look for gumax_main.css and add similar code there.
User avatar
Yukii
Rank 0
Rank 0
Posts: 3
Joined: October 17th, 2011, 6:33 am

Re: GuMax 3.2.1 ignore Common.css

Post by Yukii »

So you mean, i have add the text from the Common.css into the Head of the GuMax.php or in the gumax_main.css?

Give it a little fix, there is possible to load the Common.css?
I try'd to work with MediaWiki:gumax.css, but it seems that didn't works too :\
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: GuMax 3.2.1 ignore Common.css

Post by Paul »

Normally, the common.css is loaded by mediawiki... I don't see it in any skin, and it should not be in the skin.
User avatar
Yukii
Rank 0
Rank 0
Posts: 3
Joined: October 17th, 2011, 6:33 am

Re: GuMax 3.2.1 ignore Common.css

Post by Yukii »

I found a way to fix it.

I changed the content of the "<head> </head>"-Tags with the following Code. Now the Common.css will be loaded fine :)

Code: Select all

<meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
  <?php $this->html('headlinks') ?>
  <title><?php $this->text('pagetitle') ?></title>
  <?php $this->html('csslinks') ?>
   <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/gumax_main.css?<?php echo $GLOBALS['wgStyleVersion'] ?>"; /*]]>*/</style>
    <link rel="stylesheet" type="text/css" <?php if(empty($this->data['printable']) ) { ?>media="print"<?php } ?> href="<?php $this->text('stylepath') ?>/common/commonPrint.css?<?php echo $GLOBALS['wgStyleVersion'] ?>" />
    <link rel="stylesheet" type="text/css" media="handheld" href="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/handheld.css?<?php echo $GLOBALS['wgStyleVersion'] ?>" />
    <!--[if lt IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE50Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]-->
    <!--[if IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE55Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]-->
    <!--[if IE 6]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE60Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]-->
    <!--[if IE 7]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE70Fixes.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";</style><![endif]-->
    <!--[if lt IE 7]><script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath') ?>/common/IEFixes.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script>
    <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
  <?php print Skin::makeGlobalVariablesScript( $this->data ); ?>

  <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"><!-- wikibits js --></script>
  <!-- Head Scripts -->
  <?php $this->html('headscripts') ?>
  <!-- site js -->
  <?php if($this->data['jsvarurl']) { ?>
  <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('jsvarurl') ?>"><!-- site js --></script>
  <?php } ?>
  <!-- should appear here -->
  <?php if($this->data['pagecss']) { ?>
    <style type="text/css"><?php $this->html('pagecss') ?></style>
  <?php }
    if($this->data['usercss']) { ?>
    <style type="text/css"><?php $this->html('usercss') ?></style>
  <?php }
    if($this->data['userjs']) { ?>
    <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('userjs' ) ?>"></script>
  <?php }
    if($this->data['userjsprev']) { ?>
    <script type="<?php $this->text('jsmimetype') ?>"><?php $this->html('userjsprev') ?></script>
  <?php }
    if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>


Post Reply