User:Rogerhc/Customizations to my MediaWiki 1.9.2

From MediaWiki.org
Jump to navigation Jump to search

This page records my customizations to my MediaWiki instance at http://wikigogy.org as of 30 October 2010

  • MediaWiki: 1.9.2
  • PHP: 5.2.14 (litespeed)
  • MySQL: 5.0.91-community-log

images[edit]

images/ dir holds all uploaded files in a labyrinthine dir structure

includes[edit]

includes/SpecialPreferences.php[edit]

is where I comment out Skins tab in User Preferences. I also restrict skin choices to Monobook (standard) in LocalSettings.php.

includes/SpecialSearch.php[edit]

renders the Search results page. I customized it as follows:

I lengthened the Search box from 60 to 136 characters:

#Roger changed the search box size from 60 to 136, below:
htmlspecialchars( $term ) ."\" size=\"136\" />\n";

I also added lots of javascript there to do the keyword buttons.

not in use[edit]

A system message, suck as MediaWiki:Added-keyword, could be added it below the search box with:

#Roger added the next line to include Keywords for copy and paste into Search box
$wgOut->addWikiText( wfMsg( 'added-keyword' ) );

System messages[edit]

Site user-interface messages stored in the db

Edited[edit]

  • MediaWiki:Allmessages shows with a green background my many changes to standard messages (standard as of MediaWiki 1.6.7 that I started Wikigogy.org with).
  • #MediaWiki:Common.css is explained in Skin section below.

Added-[edit]

Skin[edit]

MediaWiki:Common.css[edit]

MediaWiki:Common.css holds most main.css customizations now. This is a database "page", not a system file.

skins/monobook/main.css[edit]

holds something still, to remind me to keep an eye on it -- I think the commenting out of logo padding actually (column-one styling).

skins/MonoBook.php[edit]

holds

  • the page HTML title tag customization -- e.g. "Wikigogy, to share TEFL & TESL lesson plans"
  • plain text logo replacement and sub-text

skins/common/commonPrint.css[edit]

holds print styling

LocalSettings.php[edit]

  • chmod it for my eyes only
  • Enable file uploads and list permitted file extentions (default in includes/DefaultSettings.php is just images)
  • Short URL stuff (in collaboration with .htaccess)
  • Skin choices restricted to Monobook (standard). I also remove the Skin tab from User Preferences in includes/SpecialPreferences.php

.htaccess[edit]

  • Short URL stuff (in collaboration with LocalSettings.php)

robots.txt[edit]

  • tells robots to skip index.php
  • other robots stuff copied from Wikipedia's robots.txt