Jump to content

Extension:AcceptTermsOfUse

From mediawiki.org
MediaWiki extensions manual
AcceptTermsOfUse
Release status: beta
Description Allows accepting Terms of Use on the registration page
Author(s) Gawriontalk
Maintainer(s) Gawrion
Latest version 0.0.1 (2023-12-09)
MediaWiki 1.40+
Database changes No
License GNU General Public License 2.0 or later
Download
Example rpedia.pl
  • $wgAcceptTermsOfUsePage

The AcceptTermsOfUse extension adds an "Accept Terms of Use" checkbox to the registration page. It has simple validation. When not checked, it gives you feedback that you have to accept the terms to register.

Installation

[edit]
  • Download and place the file(s) in a directory called AcceptTermsOfUse in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'AcceptTermsOfUse' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit]
$wgAcceptTermsOfUsePage = '[[Project:TermsPage|Terms Name]]';

Usage

[edit]
  • Go to "Special:CreateAccount" and verify that the new checkbox for Terms of Use acceptance shows up.

See also

[edit]
  • ConfirmAccount - Allows enforcing Terms of Use during a manual account creation workflow.