Site Settings

From ILTA Wiki

Visual Editor

The VisualEditor extension has been enabled to allow WYSIWYG editing.

Editing Permissions

To limit edit rights to users with an account in MediaWiki, we have modified the LocalSettings.php file in the MediaWiki installation.

  1. Disable anonymous editing: Add the following lines to your LocalSettings.php file:
   $wgGroupPermissions['*']['edit'] = false;
  1. Enable editing for registered users: Add this line to allow registered users to edit:
   $wgGroupPermissions['user']['edit'] = true;
  1. Restrict account creation (optional): If you want to restrict account creation to sysops only, add:
   $wgGroupPermissions['*']['createaccount'] = false;
   $wgGroupPermissions['sysop']['createaccount'] = true;

Viewing Permissions

There is currently no restriction on viewing. However, here are the steps if we want to enable that in the future:

Yes, you can password-protect your MediaWiki site so that only registered users can view it. To do this, you need to modify the LocalSettings.php file. Here are the steps:

  1. Disable reading by anonymous users: Add the following line to your LocalSettings.php file:
   $wgGroupPermissions['*']['read'] = false;
  1. Allow reading for registered users: Add this line to allow registered users to view the pages:
   $wgGroupPermissions['user']['read'] = true;
  1. Restrict account creation (optional): If you want to restrict account creation to sysops only, add:
   $wgGroupPermissions['*']['createaccount'] = false;
   $wgGroupPermissions['sysop']['createaccount'] = true;

Account Creation

Approval must be given before accounts are created. The ConfirmAccount extension has been installed. See Extension:ConfirmAccount - MediaWiki

File Uploads

Uploads, including image uploads, are disabled by default. To enable, see Manual:Configuring file uploads - MediaWiki

Email From Website

This is not yet configured. Configuring MediaWiki to send emails involves a few steps. Here’s a concise guide to help you set it up:

Basic Configuration

  1. Enable Email:
    • Set $wgEnableEmail to true in your LocalSettings.php file.
    • Example: $wgEnableEmail = true;
  2. Set Sender Email:
    • Define the email address from which notifications will be sent using $wgPasswordSender.
    • Example: $wgPasswordSender = 'your-email@example.com';
  3. Enable User-to-User Email:
    • Set $wgEnableUserEmail to true to allow users to email each other.
    • Example: $wgEnableUserEmail = true;

SMTP Configuration (Recommended for reliability)

  1. Configure SMTP Settings:
    • Use $wgSMTP to set up your SMTP server details.
    • Example:
  2. Set Emergency Contact:
    • Ensure $wgEmergencyContact matches the sender email address.
    • Example: $wgEmergencyContact = 'your-email@example.com';

Additional Settings

  • Email Authentication:
    • Enable email authentication with $wgEmailAuthentication.
    • Example: $wgEmailAuthentication = true;
  • Notification Settings:
    • Configure notifications for user talk pages and watchlists using $wgEnotifUserTalk and $wgEnotifWatchlist.
    • Example:

Documentation

See https://www.mediawiki.org/wiki/Manual:Configuration_settings.