diff --git a/public/language/en_GB/register.json b/public/language/en_GB/register.json
index 6b8a26f282..26196c765d 100644
--- a/public/language/en_GB/register.json
+++ b/public/language/en_GB/register.json
@@ -12,5 +12,7 @@
"confirm_password": "Confirm Password",
"confirm_password_placeholder": "Confirm Password",
"register_now_button": "Register Now",
- "alternative_registration": "Alternative Registration"
+ "alternative_registration": "Alternative Registration",
+ "terms_of_use": "Terms of Use",
+ "agree_to_terms_of_use": "I agree to the Terms of Use"
}
\ No newline at end of file
diff --git a/public/src/forum/register.js b/public/src/forum/register.js
index aa8fc66b59..4f0acb2a0d 100644
--- a/public/src/forum/register.js
+++ b/public/src/forum/register.js
@@ -11,6 +11,7 @@ define(function() {
email_notify = $('#email-notify'),
password_notify = $('#password-notify'),
password_confirm_notify = $('#password-confirm-notify'),
+ agreeTerms = $('#agree-terms'),
validationError = false,
successIcon = '';
@@ -154,6 +155,18 @@ define(function() {
e.preventDefault();
}
});
+
+ if(agreeTerms.length) {
+ agreeTerms.on('click', function() {
+ if ($(this).prop('checked')) {
+ register.removeAttr('disabled');
+ } else {
+ register.attr('disabled', 'disabled');
+ }
+ });
+
+ register.attr('disabled', 'disabled');
+ }
};
return Register;
diff --git a/public/templates/admin/settings.tpl b/public/templates/admin/settings.tpl
index 6da4d3594a..823ce09112 100644
--- a/public/templates/admin/settings.tpl
+++ b/public/templates/admin/settings.tpl
@@ -94,6 +94,8 @@
Maximum Signature Length
+ Forum Terms of Use (Leave blank to disable)
+
diff --git a/public/templates/register.tpl b/public/templates/register.tpl
index c6e7e3b898..9fe4134633 100644
--- a/public/templates/register.tpl
+++ b/public/templates/register.tpl
@@ -58,6 +58,21 @@
+
+