Installation Guide

From Foundation
Revision as of 09:53, 21 March 2020 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installation Guide

  • Download a copy of Foundation
  • Once downloaded, unpack Foundation into the extensions folder.
  • And add the following to the bottom of LocalSettings.php
require_once( "$IP/extensions/Foundation/FoundationSettings.php" );

The Magic

All the magic happens in FoundationSettings.php, which has been optimised for speed. While Foundation has a relatively small footprint, Vector appears slow (when compared to our Foundation Skin), so I've implemented several performance features, including caching to increase load speeds.

Also note the implementation of the new toolbar at the bottom of the page.

# Shared memory settings
$wgMainCacheType = CACHE_DB;
$wgMessageCacheType = CACHE_DB;
$wgUseLocalMessageCache = true;
$wgParserCacheType = CACHE_DB;
$wgMemCachedServers = [];
$wgUseGzip = true;
$wgEnableSidebarCache = true;

# NO DB HITS!
$wgDisableCounters = true;
$wgMiserMode = true;

# Text cache
$wgCompressRevisions = true;
$wgRevisionCacheExpiry = 3*24*3600;
$wgParserCacheExpireTime = 14*24*3600;

$wgGenerateThumbnailOnParse = false;

$wgExternalLinkTarget = '_blank';

#Pre-Load the Extensions
require_once "$IP/extensions/Foundation/Prettify/Prettify.php";
require_once "$IP/extensions/Foundation/Foundation.php";
require_once "$IP/extensions/Foundation/FontAwesome/FontAwesome.php";

wfLoadExtension( 'YouTube' );
wfLoadExtension( 'PageNotice' );

$wgAllowExternalImages ="true";
$wgEnableUploads = true;

$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['sysop']['createpage'] = true;

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
$wgImplicitGroups[] = 'emailconfirmed';
$wgGroupPermissions['emailconfirmed']['edit'] = true;

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;

$wgGroupPermissions['user']['createtalk']      = true;
$wgGroupPermissions['user']['upload']          = false;
$wgGroupPermissions['user']['reupload']        = false;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['user']['minoredit']       = false;
$wgGroupPermissions['user']['purge']           = false;

$wgRateLimits['edit']['emailconfirmed'] = array( 5, 900 );
$wgRateLimits['edit']['sysop'] = array( 100, 600 );
$wgRateLimits['edit']['trustworthy'] = array( 100, 600 );

$wgGroupPermissions['trustworthy']['protect'] = true;
$wgGroupPermissions['trustworthy']['patrol'] = true;
$wgGroupPermissions['trustworthy']['createpage'] = true;
$wgGroupPermissions['trustworthy']['edit'] = true;

$wgAutoConfirmAge = 259200;
$wgAutoConfirmCount = 10;

$wgGroupPermissions['trustworthy'] = $wgGroupPermissions['autoconfirmed'];

wfLoadExtension( 'WikiEditor' );
$wgHiddenPrefs[] = 'usebetatoolbar';
$wgDefaultUserOptions['usebetatoolbar'] = 1;
require_once "$IP/extensions/Foundation/FoundationToolbar/FoundationToolbar.php";
$wgUseSiteJs = true;

For all intents, Foundation, it's extension and plugins are available to use within less than 5 minutes.

Footer

For the footer we;re using the PageNotice extension, which comes pre-installed with Foundation. More information on how to edit the footer here.

Support

If require support for the installation please visit the discussion page.



TOP

Retrieved from ‘https://foundationextension.com/index.php?title=Installation_Guide&oldid=549