User:Vincent/Mediawiki customizations
From Free Pascal wiki
Jump to navigationJump to search
- Enable subpages in the main namespace. Change $wgNamespacesWithSubpages in include/DefaultSettings.
- Add sourceforge logo see http://meta.wikimedia.org/wiki/Running_MediaWiki_on_Sourceforge.net.
$wgDisableUploads = false; $wgWhitelistEdit = true; $wgSysopRangeBans = true; # added by vsnijders $wgSysopUserBans = true;
In SpecialUserlogin.php, AddNewAccount:
# vsnijders, added to prevent wiki link spam users. list($x) = sscanf($this->mName, "%x"); if ((strtolower($this->mName) == sprintf("%x", $x)) and (6 == strlen($this->mName)) and empty($this->mEmail)) { return; }
http://meta.wikimedia.org/wiki/Upgrade_from_1.3_to_1.4
- Sidebar: MediaWiki:Sidebar.
Page title depending on used Host in URL
I made the following change in public function setPageTitle at line 189 and following of includes/OutputPage.php.
// $this->setHTMLTitle( wfMsg( 'pagetitle', $name ) ); if ($_SERVER['HTTP_HOST'] == 'wiki.lazarus.freepascal.org') $sitename = 'Lazarus wiki'; else $sitename = 'Free Pascal wiki'; $this->setHTMLTitle( $name . ' - ' . $sitename);