Difference between revisions of "Customizing MediaWiki"

From PeformIQ Upgrade
Jump to navigation Jump to search
(New page: = Disabling Menus = == Toolbox in Sidebar == === How do I remove the toolbox for users that are not logged in? === Edit the file: /skins/MonoBook.php Find the section that looks like th...)
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
=Setting up Help=
Check out http://www.mediawiki.org/wiki/Help:Copying for details about how to export and import Help pages
Also:
* http://www.mediawiki.org/wiki/Help:Copying
* http://www.mediawiki.org/wiki/Special:Export
= Disabling Menus =
= Disabling Menus =


== Toolbox in Sidebar ==
== Toolbox in Sidebar ==


=== How do I remove the toolbox for users that are not logged in? ===
To remove the toolbox for users that are not logged in...


Edit the file: /skins/MonoBook.php
Edit the file: /skins/MonoBook.php
Line 41: Line 52:
</pre>
</pre>


= Layout Customization =


See http://meta.wikimedia.org/wiki/Layout_customization


= layout Customization =


See http://meta.wikimedia.org/wiki/Layout_customization
[[Category:MediaWiki]]

Latest revision as of 15:26, 27 May 2008

Setting up Help

Check out http://www.mediawiki.org/wiki/Help:Copying for details about how to export and import Help pages Also:


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>

Layout Customization

See http://meta.wikimedia.org/wiki/Layout_customization