Help:Configuration Notes

From USAFA Rugby Alumni
Jump to: navigation, search

Notes on setting up and configuring USAFA Rugby Alumni wiki.

Changes to LocalSettings.php

All additions to standard LocalSettings.php as of 2014-03-11.

#*****added in bulk from wangWiki demo *****
# Added by twh, 2013-12-31 to confirm new accounts
require_once( "$IP/extensions/ConfirmAccount/ConfirmAccount.php" );

# Set up Portal namespace
define( "NS_PORTAL", 100 );
define( "NS_PORTAL_TALK", 101 );
$wgExtraNamespaces[NS_PORTAL] = "Portal";
$wgExtraNamespaces[NS_PORTAL_TALK] = "Portal_talk";

#needed to help create portals
$wgUseTidy = true;
#
##add subpages to Portal namespace
$wgNamespacesWithSubpages[100] = 1;

##added by twh on 2014-02-16 to remove numbers from Table of Contents
$wgDefaultUserOptions['numberheadings'] = 0;

##added by twh on 2014-03-01 to enable upload of various file types
##code is from mediawiki manual
$wgFileExtensions = array_merge($wgFileExtensions, array('doc', 'xls', 'mpp', 'pdf','ppt','xlsx','jpg','tiff','odt','odg','ods','odp'));

##added by twh on 2014-03-11 to lower the number of words required in Account Request bios
$wgAccountRequestMinWords = 20;

##added by twh on 2014-03-11 to be able to set default search parameters and include defined namespaces in default search
$wgNamespacesToBeSearchedDefault = array(
        NS_MAIN =>           true,
        NS_TALK =>           false,
        NS_USER =>           false,
        NS_USER_TALK =>      false,
        NS_PROJECT =>        false,
        NS_PROJECT_TALK =>   false,
        NS_FILE =>           false,
        NS_FILE_TALK =>      false,
        NS_MEDIAWIKI =>      false,
        NS_MEDIAWIKI_TALK => false,
        NS_TEMPLATE =>       false,
        NS_TEMPLATE_TALK =>  false,
        NS_HELP =>           true,
        NS_HELP_TALK =>      true,
        NS_CATEGORY =>       false,
        NS_CATEGORY_TALK =>  false,
        NS_PORTAL =>          true,
        NS_PORTAL_TALK =>    true,
);