Difference between revisions of "Site Hacks"
Line 1: | Line 1: | ||
− | Things to make sure to remember when upgrading. | + | Things to make sure to remember when upgrading to a new version of MediaWiki. |
===Site Hacks=== | ===Site Hacks=== |
Revision as of 09:17, 11 June 2012
Things to make sure to remember when upgrading to a new version of MediaWiki.
Site Hacks
Adding the header image:
Change the header part of skins/'Vector.php' to
<!-- header --> <div id="mw-head" class="noprint"> <?php $this->renderNavigation( 'PERSONAL' ); ?> <div id="left-navigation"> <div> <a style="position: absolute; left:0; top:-70px;" href="/chinese/grammar/Main_Page" title="Visit the main page"> <img src="http://resources.allsetlearning.com/gramwiki/images/b/b4/Wiki-title.png"/> </a> </div> <?php $this->renderNavigation( array( 'NAMESPACES', 'VARIANTS' ) ); ?> </div> <div id="right-navigation"> <?php $this->renderNavigation( array( 'VIEWS', 'ACTIONS', 'SEARCH' ) ); ?> </div> </div> <!-- /header -->
Changing search options:
includes/specials/SpecialSearch.php
Add this to SpecialSearch.php (~line 968)
'references' => array( 'message' => 'searchprofile-ref', 'tooltip' => 'searchprofile-ref-tooltip', 'namespaces' => array( NS_REF ), ),
To remove options, comment them out.
Second, go to languages/messages/MessagesEn.php and add appropriate variables that give the text results of searchprofile-ref and searchprofile-ref-tooltip.
CSS skin change for ASL Extension.
Add this to whichever skin is being used (likely Vector, so skins/vector/screen.css
#ccButton { z-index: 100; } #detectBox{ z-index: 100; }