Site Settings: Difference between revisions
David.schrag (talk | contribs) Created page with "=== 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 <code>LocalSettings.php</code> file in the MediaWiki installation. # '''Disable anonymous editing''': Add the following lines to your <code>LocalSettings.php</code> file: <code>$wgGroupPermissions['*']['edit'] = false;</code>..." |
David.schrag (talk | contribs) Added Account Creation section |
||
| (One intermediate revision by the same user not shown) | |||
| Line 35: | Line 35: | ||
<code>$wgGroupPermissions['*']['createaccount'] = false; | <code>$wgGroupPermissions['*']['createaccount'] = false; | ||
$wgGroupPermissions['sysop']['createaccount'] = true;</code> | $wgGroupPermissions['sysop']['createaccount'] = true;</code> | ||
=== Account Creation === | |||
Approval must be given before accounts are created. The ConfirmAccount extension has been installed. See [[mediawikiwiki:Extension:ConfirmAccount|Extension:ConfirmAccount - MediaWiki]] | |||
=== File Uploads === | === File Uploads === | ||
Uploads, including image uploads, are disabled by default. To enable, see [[mediawikiwiki:Manual:Configuring_file_uploads|Manual:Configuring file uploads - MediaWiki]] | Uploads, including image uploads, are disabled by default. To enable, see [[mediawikiwiki:Manual:Configuring_file_uploads|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 ==== | |||
# Enable Email: | |||
#* Set <code>$wgEnableEmail</code> to <code>true</code> in your <code>LocalSettings.php</code> file. | |||
#* Example: <code>$wgEnableEmail = true;</code> | |||
# Set Sender Email: | |||
#* Define the email address from which notifications will be sent using <code>$wgPasswordSender</code>. | |||
#* Example: <code>$wgPasswordSender = 'your-email@example.com';</code> | |||
# Enable User-to-User Email: | |||
#* Set <code>$wgEnableUserEmail</code> to <code>true</code> to allow users to email each other. | |||
#* Example: <code>$wgEnableUserEmail = true;</code> | |||
==== SMTP Configuration (Recommended for reliability) ==== | |||
# Configure SMTP Settings: | |||
#* Use <code>$wgSMTP</code> to set up your SMTP server details. | |||
#* Example: | |||
# Set Emergency Contact: | |||
#* Ensure <code>$wgEmergencyContact</code> matches the sender email address. | |||
#* Example: <code>$wgEmergencyContact = 'your-email@example.com';</code> | |||
==== Additional Settings ==== | |||
* Email Authentication: | |||
** Enable email authentication with <code>$wgEmailAuthentication</code>. | |||
** Example: <code>$wgEmailAuthentication = true;</code> | |||
* Notification Settings: | |||
** Configure notifications for user talk pages and watchlists using <code>$wgEnotifUserTalk</code> and <code>$wgEnotifWatchlist</code>. | |||
** Example: | |||
== Documentation == | == Documentation == | ||
See https://www.mediawiki.org/wiki/Manual:Configuration_settings. | See https://www.mediawiki.org/wiki/Manual:Configuration_settings. | ||
Latest revision as of 13:32, 22 April 2025
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.
- Disable anonymous editing: Add the following lines to your
LocalSettings.phpfile:
$wgGroupPermissions['*']['edit'] = false;
- Enable editing for registered users: Add this line to allow registered users to edit:
$wgGroupPermissions['user']['edit'] = true;
- 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:
- Disable reading by anonymous users: Add the following line to your
LocalSettings.phpfile:
$wgGroupPermissions['*']['read'] = false;
- Allow reading for registered users: Add this line to allow registered users to view the pages:
$wgGroupPermissions['user']['read'] = true;
- 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
- Enable Email:
- Set
$wgEnableEmailtotruein yourLocalSettings.phpfile. - Example:
$wgEnableEmail = true;
- Set
- Set Sender Email:
- Define the email address from which notifications will be sent using
$wgPasswordSender. - Example:
$wgPasswordSender = 'your-email@example.com';
- Define the email address from which notifications will be sent using
- Enable User-to-User Email:
- Set
$wgEnableUserEmailtotrueto allow users to email each other. - Example:
$wgEnableUserEmail = true;
- Set
SMTP Configuration (Recommended for reliability)
- Configure SMTP Settings:
- Use
$wgSMTPto set up your SMTP server details. - Example:
- Use
- Set Emergency Contact:
- Ensure
$wgEmergencyContactmatches the sender email address. - Example:
$wgEmergencyContact = 'your-email@example.com';
- Ensure
Additional Settings
- Email Authentication:
- Enable email authentication with
$wgEmailAuthentication. - Example:
$wgEmailAuthentication = true;
- Enable email authentication with
- Notification Settings:
- Configure notifications for user talk pages and watchlists using
$wgEnotifUserTalkand$wgEnotifWatchlist. - Example:
- Configure notifications for user talk pages and watchlists using
Documentation
See https://www.mediawiki.org/wiki/Manual:Configuration_settings.