Difference between revisions of "MediaWiki Modifications"

From ScienceZero
Jump to: navigation, search
(MonoBook.php)
(MonoBook.php)
Line 17: Line 17:
  
 
== MonoBook.php ==
 
== MonoBook.php ==
 +
Removes irrelevant information from the footer, definition of irrelevance changes for users that are logged in.
 +
if($this->data['loggedin']==1) {
 +
  $footerlinks = array(
 +
  'lastmod', 'viewcount', 'numberofwatchingusers', 'tagline',
 +
  );
 +
} else {
 +
  $footerlinks = array(
 +
  'lastmod', 'tagline',
 +
  );
 +
}
 +
 +
This removes the WikiMedia and copyright logo from the footer.
 
  <nowiki><!-- <div id="f-poweredbyico"><?php $this->html('poweredbyico') ?></div> --></nowiki>
 
  <nowiki><!-- <div id="f-poweredbyico"><?php $this->html('poweredbyico') ?></div> --></nowiki>
 
  <nowiki><!-- <div id="f-copyrightico"><?php $this->html('copyrightico') ?></div> --></nowiki>
 
  <nowiki><!-- <div id="f-copyrightico"><?php $this->html('copyrightico') ?></div> --></nowiki>

Revision as of 20:56, 29 January 2007

LocalSettings.php

Changes to this file should be added to the end of the file to make sure nothing goes wrong.

$wgShowIPinHeader = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgDefaultUserOptions ['editsection'] = 0;
$wgEnableUploads = true;
$wgUploadDirectory = "{$IP}/files";
$wgUploadPath = "{$wgScriptPath}/files";
$wgLogo = "{$wgScriptPath}/logo.png";


MonoBook.php

Removes irrelevant information from the footer, definition of irrelevance changes for users that are logged in.

if($this->data['loggedin']==1) {
  $footerlinks = array(
  'lastmod', 'viewcount', 'numberofwatchingusers', 'tagline',
  );
} else {
  $footerlinks = array(
  'lastmod', 'tagline',
  );
}

This removes the WikiMedia and copyright logo from the footer.

<!-- <div id="f-poweredbyico"><?php $this->html('poweredbyico') ?></div> -->
<!-- <div id="f-copyrightico"><?php $this->html('copyrightico') ?></div> -->