Requiring terms and conditions
Requiring new users, that are registering on your website, to accept a Terms and Conditions agreement can be accomplished through the use of a simple Joomla! template override. This override, in fact, only requires adding the following line of code to the com_users/register override:
This line of code has a few aspects worth mentioning:
-
The
inputclassrequiredwill add this field to the existing JavaScript validation, requiring this check box to be checked before the user can submit the form. -
The hyperlink is hard coded, as a modal popup, to article with an ID of 13. Simply change
id=13to whatever article is your agreement. -
If modal pop-ups are not already enabled on your web site, you can enable them by adding to your template's
index.php, or you can remove&tmpl=componentand the user will be taken to a new page containing your agreement (they may be unhappy with you, though, as they may need to fill out the form again upon returning to it).
You can also add: