Difference between revisions of "MediaWiki Modifications"

From ScienceZero
Jump to: navigation, search
Line 41: Line 41:
 
  }
 
  }
  
This removes the WikiMedia and copyright icons from the footer.
+
Removes the WikiMedia and copyright icons 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>
 +
 +
 +
==main.css==
 +
Removes the background image.
 +
body {
 +
  font: x-small sans-serif;
 +
  background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;
 +
  background-image: none;
 +
  color: black;
 +
  margin: 0;
 +
  padding: 0;
 +
}

Revision as of 00:41, 30 January 2007

These changes works on MediaWiki 1.9.1 and has not been tested on anything else.


LocalSettings.php

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

Removes the IP number from the user bar.

$wgShowIPinHeader = false;

Removes the ability to create new accounts and removes the bility to edit without being logged on.

$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;

Removes the edit links.

$wgDefaultUserOptions ['editsection'] = 0;

Enables file upload and points to the correct directory.

$wgEnableUploads = true;
$wgUploadDirectory = "{$IP}/files";
$wgUploadPath = "{$wgScriptPath}/files";

Points to the new logo.

$wgLogo = "{$wgScriptPath}/logo.png";

MonoBook.php

Removes the Log in / Create new account link.

foreach($this->data['personal_urls'] as $key => $item)  if($this->data['loggedin']==1) {

Removes the tabs(article, edit...) for users that are not logged in.

foreach($this->data['content_actions'] as $key => $tab) if($this->data['loggedin']==1) {

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',
  );
}

Removes the WikiMedia and copyright icons from the footer.

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


main.css

Removes the background image.

body {
  font: x-small sans-serif;
  background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;
  background-image: none;
  color: black;
  margin: 0;
  padding: 0;
}