Difference between revisions of "Configuration"
m (1 revision: Migration) |
All changes have to be made in LocalSettings.php!
Contents
Activate upload[edit | edit source]
$wgEnableUploads = true;
Activate file: protocol[edit | edit source]
$wgUrlProtocols[] = 'file://';
Set default settings[edit | edit source]
Set default timezone[edit | edit source]
This example is for Europe/Berlin!
# Set default time zone offset for new users
$wgLocalTZoffset = date("Z") / 60;
# Use this time zone in signatures
$wgLocaltimezone = 'Europe/Berlin';
# Set default time zone offset for new users
$wgDefaultUserOptions['timecorrection'] = 'ZoneInfo|' . (date("I") ? 120 : 60) . '|Europe/Berlin';
Enable subpages in main namespace[edit | edit source]
$wgNamespacesWithSubpages[NS_MAIN] = true;
Open external links in new window[edit | edit source]
$wgExternalLinkTarget = '_blank';
If you still have questions take a look a this FAQ (German only at the moment)
Download this![edit | edit source]
'''All changes have to be made in LocalSettings.php!''' ==Activate upload== <pre> $wgEnableUploads = true; </pre> ==Activate file: protocol== <pre> $wgUrlProtocols[] = 'file://'; </pre> ==Set default settings== ===Set default timezone=== This example is for Europe/Berlin! <pre> # Set default time zone offset for new users $wgLocalTZoffset = date("Z") / 60; # Use this time zone in signatures $wgLocaltimezone = 'Europe/Berlin'; # Set default time zone offset for new users $wgDefaultUserOptions['timecorrection'] = 'ZoneInfo|' . (date("I") ? 120 : 60) . '|Europe/Berlin'; </pre> ===Enable subpages in main namespace=== <pre> $wgNamespacesWithSubpages[NS_MAIN] = true; </pre> ===Open external links in new window=== $wgExternalLinkTarget = '_blank'; If you still have questions take a look a this [http://hilfe.blue-spice.org/index.php/Frequently_asked_questions FAQ] (German only at the moment) ==Download this!== [[Media:LocalSettings.amend.txt|Download this!]] [[en:{{FULLPAGENAME}}]][[de:Konfiguration]]
Line 1: | Line 1: | ||
− | |||
− | |||
'''All changes have to be made in LocalSettings.php!''' | '''All changes have to be made in LocalSettings.php!''' | ||
==Activate upload== | ==Activate upload== | ||
− | <pre> | + | <pre>$wgEnableUploads = true; |
− | $wgEnableUploads = true; | ||
</pre> | </pre> | ||
==Activate file: protocol== | ==Activate file: protocol== | ||
− | <pre> | + | <pre>$wgUrlProtocols[] = 'file://'; |
− | $wgUrlProtocols[] = 'file://'; | ||
</pre> | </pre> | ||
Line 16: | Line 12: | ||
===Set default timezone=== | ===Set default timezone=== | ||
This example is for Europe/Berlin! | This example is for Europe/Berlin! | ||
− | <pre> | + | |
− | # Set default time zone offset for new users | + | <pre># Set default time zone offset for new users |
$wgLocalTZoffset = date("Z") / 60; | $wgLocalTZoffset = date("Z") / 60; | ||
# Use this time zone in signatures | # Use this time zone in signatures | ||
Line 26: | Line 22: | ||
===Enable subpages in main namespace=== | ===Enable subpages in main namespace=== | ||
− | <pre> | + | <pre>$wgNamespacesWithSubpages[NS_MAIN] = true; |
− | $wgNamespacesWithSubpages[NS_MAIN] = true; | ||
</pre> | </pre> | ||
Line 37: | Line 32: | ||
==Download this!== | ==Download this!== | ||
[[Media:LocalSettings.amend.txt|Download this!]] | [[Media:LocalSettings.amend.txt|Download this!]] | ||
+ | [[en:{{FULLPAGENAME}}]][[de:Konfiguration]] |