Remove Terms from Registration

@halilesen · 21 Apr 2024 · 259 views
Post Reply
User avatar
halilesen
#1 ·
Posts: 38
Joined: 24 Mar 2024, 18:09
Full Name: Halil ESEN
Has liked: 3
Been liked: 1
When a user wants to register on your phpBB forum, they will be presented with a terms page and after accepting it, they will reach the registration form. This two-step process may slow down registration process or you may not like it. Here I going to show you how to remove terms of use from before registration.

Open /includes/ucp/ucp_register.php file in phpBB root and find this:

Code: Select all

$agreed			= $request->variable('agreed', false);
Replace it with this:

Code: Select all

$agreed			= $request->variable('agreed', true);
And find this:

Code: Select all

if ($agreed && !check_form_key('ucp_register'))
{
	$agreed = false;
}
Replace:

Code: Select all

if ($agreed && !check_form_key('ucp_register'))
{
	$agreed = true;
}
Save changes. Terms of use will no longer appear before registration.

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 -->
Add before line above.

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>
An save the changes. Thus, you have also informed the users legally and this is how we accomplished the task of removing terms from registration in phpBB.
Post Reply