Difference between revisions of "User:Vincent/Mediawiki customizations"
From Lazarus wiki
Jump to navigationJump to search(24 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
* Enable subpages in the main namespace. Change $wgNamespacesWithSubpages in include/DefaultSettings. | * Enable subpages in the main namespace. Change $wgNamespacesWithSubpages in include/DefaultSettings. | ||
− | * Add sourceforge logo ... | + | * Add sourceforge logo see http://meta.wikimedia.org/wiki/Running_MediaWiki_on_Sourceforge.net. |
$wgDisableUploads = false; | $wgDisableUploads = false; | ||
Line 8: | Line 8: | ||
$wgSysopRangeBans = true; # added by vsnijders | $wgSysopRangeBans = true; # added by vsnijders | ||
$wgSysopUserBans = true; | $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 | 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. | ||
+ | <pre> | ||
+ | // $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); | ||
+ | </pre> | ||
+ | |||
+ | ==Used extensions== | ||
+ | * [http://meta.wikimedia.org/wiki/Help:Inputbox Inputbox extension] | ||
+ | * [http://www.ioerror.us/software/bad-behavior/ bad-behavior plug-in] | ||
+ | |||
+ | == possible new enhancements == | ||
+ | * [http://meta.wikimedia.org/wiki/SpamBlacklist_extension SpamBlacklist extension] |
Latest revision as of 15:41, 1 February 2008
- 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);