Difference between revisions of "MediaWiki Modifications"
From ScienceZero
(→MonoBook.php) |
(→LocalSettings.php) |
||
Line 2: | Line 2: | ||
Changes to this file should be added to the end of the file to make sure nothing goes wrong. | 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; | $wgShowIPinHeader = false; | ||
+ | Removes the ability to create new accounts and removes the bility to edit without being logged on. | ||
$wgGroupPermissions['*']['createaccount'] = false; | $wgGroupPermissions['*']['createaccount'] = false; | ||
$wgGroupPermissions['*']['edit'] = false; | $wgGroupPermissions['*']['edit'] = false; | ||
+ | Removes the edit links. | ||
$wgDefaultUserOptions ['editsection'] = 0; | $wgDefaultUserOptions ['editsection'] = 0; | ||
+ | Enables file upload and points to the correct directory. | ||
$wgEnableUploads = true; | $wgEnableUploads = true; | ||
$wgUploadDirectory = "{$IP}/files"; | $wgUploadDirectory = "{$IP}/files"; | ||
$wgUploadPath = "{$wgScriptPath}/files"; | $wgUploadPath = "{$wgScriptPath}/files"; | ||
+ | Points to the new logo. | ||
$wgLogo = "{$wgScriptPath}/logo.png"; | $wgLogo = "{$wgScriptPath}/logo.png"; | ||
− | |||
== MonoBook.php == | == MonoBook.php == |
Revision as of 20:58, 29 January 2007
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 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> -->