Difference between revisions of "Site Hacks"

(Created page with "Things to make sure to remember when upgrading. ===Site Hacks=== Adding the header image: Change the header part of '''Vector.php''' to <pre> <!-- header --> ...")
 
Line 4: Line 4:
 
Adding the header image:  
 
Adding the header image:  
  
Change the header part of '''Vector.php''' to  
+
Change the header part of ''skins/'Vector.php''' to  
 
<pre>  
 
<pre>  
 
       <!-- header -->
 
       <!-- header -->
Line 21: Line 21:
 
                         </div>
 
                         </div>
 
                 </div>
 
                 </div>
                <!-- /header -->
+
      <!-- /header -->
 +
</pre>
 +
 
 +
 
 +
----
 +
 
 +
 
 +
Changing search options:
 +
 
 +
'''includes/specials/SpecialSearch.php'''
 +
 
 +
Add this to SpecialSearch.php (~line 968)
 +
<pre>
 +
                        'references' => array(
 +
                                'message' => 'searchprofile-ref',
 +
                                'tooltip' => 'searchprofile-ref-tooltip',
 +
                                'namespaces' => array( NS_REF ),
 +
                                ),
 +
 
 +
</pre>
 +
 
 +
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'''
 +
<pre>
 +
#ccButton {
 +
        z-index: 100;
 +
}
 +
#detectBox{
 +
        z-index: 100;
 +
}
 
</pre>
 
</pre>

Revision as of 07:44, 11 June 2012

Things to make sure to remember when upgrading.

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;
}