antilyrical(a)spamcop.net wrote:
At the bottom of the standard monobook skin it has a
"footer" that says " This
page was last modified..." etc.. How do I change what appears in that area?
Also, I if I make a change to the footer there, will it change for the other
skins as well?
Thanks!
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Firstly, I think you might need to edit each skin directly, but here is
how to do it in Monobook:
1. Open the Monobook.php file from your Skins directory.
2. Do a search for the word 'footer'. You should find this code:
<div id="footer">
<?php if($this->data['poweredbyico']) { ?><div
id="f-poweredbyico"><?php $this->html('poweredbyico')
?></div><?php } ?>
<?php if($this->data['copyrightico']) { ?><div
id="f-copyrightico"><?php $this->html('copyrightico')
?></div><?php } ?>
<ul id="f-list">
<?php if($this->data['lastmod' ]) { ?><li
id="f-lastmod"><?php $this->html('lastmod')
?></li><?php } ?>
<?php if($this->data['viewcount' ]) { ?><li
id="f-viewcount"><?php $this->html('viewcount')
?></li><?php } ?>
<?php if($this->data['credits' ]) { ?><li
id="f-credits"><?php $this->html('credits')
?></li><?php } ?>
<?php if($this->data['copyright' ]) { ?><li
id="f-copyright"><?php $this->html('copyright')
?></li><?php } ?>
<?php if($this->data['about' ]) { ?><li
id="f-about"><?php $this->html('about')
?></li><?php } ?>
<?php if($this->data['disclaimer']) { ?><li
id="f-disclaimer"><?php $this->html('disclaimer')
?></li><?php } ?>
</ul>
</div>
3. You should now insert lines as requried to achieve the effect you
want. For example, if you want to display a little logo in the bottom
left corner (Like Wikipedia's WikiMedia Logo), you can do so by
inserting a line similar to the following under the <div> tag. This is
what I use on my site for adding a Valid XHTML logo:
<div style="float:left; height: 1%; margin: 0 8px; position: relative;
top: -2px;"><a
href="http://validator.w3.org/check?uri=referer"
target="_blank"><img
src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML
1.0!" height="31" width="88" /></a></div>
You can see the results here (note, rest of wiki is currently Under
Construction):
http://nidonocu.technoweyr.co.uk/ewiki/index.php/Special:Version
4. If you want to insert extra messages (like on my site, the powered by
link for my webhost), you can insert a line in the lower lines of code,
here's another except from mine:
<?php if($this->data['about' ]) { ?><li
id="f-about"><?php
$this->html('about') ?></li><?php } ?>
<li>Powered by <a href="http://www.technoweyr.co.uk"
target="_blank">Technoweyr.co.uk</a></li>
<?php if($this->data['disclaimer']) { ?><li
id="f-disclaimer"><?php $this->html('disclaimer')
?></li><?php } ?>
Hope this helps :)
--
Nidonocu C:\>
nidonocu(a)gmail.com
http://www.nidonocu.co.uk
http://nidonocu.livejournal.com
Nidonocu(a)Gmail.com <mailto:nidonocu@gmail.com> Get Thunderbird
<http://www.mozilla.org/products/thunderbird/>