Open /includes/ucp/ucp_register.php file in phpBB root and find this:
Code: Select all
$agreed = $request->variable('agreed', false);
Code: Select all
$agreed = $request->variable('agreed', true);
Code: Select all
if ($agreed && !check_form_key('ucp_register'))
{
$agreed = false;
}
Code: Select all
if ($agreed && !check_form_key('ucp_register'))
{
$agreed = true;
}
But let's not stop there. Let's put a statement in the registration form that by registering, the user agrees to the terms of use and privacy policy. To do this open /template/ucp_register.html file of style you are using, and find:
Code: Select all
<!-- EVENT ucp_register_buttons_before -->
Code: Select all
<div class="panel">
<span>You agree to <a href="{{ U_TERMS_USE }}"><b>Terms of Service</b></a> and <a href="{{ U_PRIVACY }}"><b>Privacy Policy</b></a> by registering on this board.</span>
</div>