Manual:Gallery of user styles/Hit Counter Heading

From MediaWiki.org
Jump to: navigation, search
Original skin: Monobook
Author: Renmiri
MediaWiki versions: Unknown
Just a tiny tweak on the layout, but it shows you where to add text or content to the top header line.

To add stuff to the header just go to Monobook.php and find

<div class="portlet" id="p-personal">
   <h5><?php $this->msg('personaltools') ?></h5>
   <div class="pBody">
     <ul>

And add your stuff right after the UL tag, in my case:

<?php if($this->data['viewcount' ]) { ?>
<li id="f-viewcount"><?php  $this->html('viewcount')  ?></li>
<?php } ?>
 
<?php if($this->data['numberofwatchingusers' ]) { ?>
<li id="f-numberofwatchingusers"><?php $this->html('numberofwatchingusers') ?></li>
<?php } ?>
Test it yourself here
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox