[Mediawiki-l] Skin modifying

Alexis Moinet alexis.moinet at fpms.ac.be
Tue Jan 30 17:27:43 UTC 2007


Andrea Arena a écrit :
> I tried to change something's.
> http://www.italien.ch/de/wiki/Hauptseite

now you have TWO <div id="content"> in your source code :-s. you should have only ONE

> <div id="content" style="margin-right: 121px;">
>  <div style="width: 160px; margin-top: 85px; padding: 0px; float: right; 

The "content" margin-right should be greater than the width of your ads. --> if you have <div id="content" style="margin-right: 121px;...> , you should have <div style="width: 120px;...>


It seems that you're not familiar at all with css formatting, are you ? let's try another way.

1. open the file common/wiki/skins/italien/main.css (it was in the vbgore skin you installed)
2. find this (it's at the beginning of the file):
	#content {
		font-size: 1.2em;
		line-height: 1.2em;
	}
3. change it :
	#content {
		font-size: 1.2em;
		line-height: 1.2em;
		margin-right: 161px;
	}

4. open the php file of your skin (that was vbGore.php I guess ?)
5 find this (lines 78-85):

     <body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
      <?php if($this->data['body_onload'    ]) { ?>onload="<?php     $this->text('body_onload')     ?>"<?php } ?>
      <?php if($this->data['nsclass'        ]) { ?>class="<?php      $this->text('nsclass')         ?>"<?php } ?>>
      <div id="titleBar"></div>
      <div id="globalWrapper">
        <div id="column-content">
          <div id="content">
          <a name="top" id="contentTop"></a>
	...

6. change it :

     <body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
      <?php if($this->data['body_onload'    ]) { ?>onload="<?php     $this->text('body_onload')     ?>"<?php } ?>
      <?php if($this->data['nsclass'        ]) { ?>class="<?php      $this->text('nsclass')         ?>"<?php } ?>>
      <div id="titleBar"></div>
      <div id="globalWrapper">
        <div id="column-content">

          <div style="width: 160px; margin-top: 85px; padding: 0px; float: right; right:0; height: 1px;">
             <div align="center">
	    <br>
	    <A HREF="http://de.italien.ch/shop/Arena_FinCorporation_GmbH" target="_blank"><IMG SRC="http://www.italien.ch/werbung/banner-arena.gif" alt="Ihre Werbung auf Italien.ch"></a><br>
	    <br>
	    <A HREF="http://de.italien.ch/shop/Werbung" target="_blank"><IMG SRC="http://www.italien.ch/werbung/Ihre-werbung.gif" alt="Ihre Werbung auf Italien.ch"></a><br>
	    <br>

	    <A HREF="http://de.italien.ch/shop/Werbung" target="_blank"><IMG SRC="http://www.italien.ch/werbung/Ihre-werbung.gif" alt="Ihre Werbung auf Italien.ch"></a><br>
	    <br>
	    <A HREF="http://de.italien.ch/shop/Werbung" target="_blank"><IMG SRC="http://www.italien.ch/werbung/Ihre-werbung.gif" alt="Ihre Werbung auf Italien.ch"></a><br>
	    <br>
             </div>
           </div>

	<div id="content">
	  <a name="top" id="contentTop"></a>
	...

7. save everything and force refresh (ctrl+F5)








More information about the MediaWiki-l mailing list