Customizing MediaWiki
Revision as of 11:58, 25 January 2008 by PeterHarding (talk | contribs)
Disabling Menus
Toolbox in Sidebar
To remove the toolbox for users that are not logged in...
Edit the file: /skins/MonoBook.php Find the section that looks like this (by searching for p-tb):
<div class="portlet" id="p-tb"> <h5><?php $this->msg('toolbox') ?></h5>
Replace with this:
<div class="portlet" id="p-tb"> <?php if($this->data['loggedin']) { ?> <h5><?php $this->msg('toolbox') ?></h5>
Go down to the bottom of the div block that you are editing and find the section that looks like this:
wfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) ); ?> </ul> </div> </div>
and add the line (between the two /div's) that closes off your new "if" statement:
wfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) ); ?> </ul> </div> <?php } ?> </div>