Difference between revisions of "Configuration"

m
 
m (1 revision: Migration)


All changes have to be made in LocalSettings.php!

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]

Download this!

        
        
        '''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!]]
(No difference)

Attachments

Discussions