Term Agreement

From TMM Wiki
Jump to navigationJump to search
NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Sites Admin
The Sites Admin
Sites
Site Setup
Site Templates
Tour Setup
Join Options
No Cost Registration
Special Pricing Options
Join Option Rules
Post URL Usage
Post URLs in NATS4
Approval/Upgrade/Denial Variables
Approval/Upgrade/Denial Template Variables
Mobile Tours
Token Sites
ID Numbers
Site Partner
Site User Management
Example Postbacks for Site User Management
Configure Redirects
Split A-B Testing
Username Checking
Form Validation
Post-Biller Templates
Send Information To Special Biller
Join Option Box vs Button
Qualified Join Page Hits
Allowed languages
Customize Join Form
Package Plus
Token Plus
Signup Plus
Type-In Traffic
Coupon Codes
Setting Rules
Site Groups
Options Simulator
ATVOD Verification Process

Within NATS4 you can add an "Agree to Terms" checkbox functionality to your Join Form. This means that if a surfer does not check to agree to your terms, they will be presented with an error. To do this go to your Sites Admin and click on the Edit Site Templates Icon.

NATS4 Site's Admin


Scroll down until you find the join template and open it to edit.


NATS4 Join Template


Non Tracked Checkbox

If you would like to add this functionality, but do not want to track any data related to the "Agree to Terms" checkbox, you can add some Javascript to this template to perform it. The following is a simple example:

You would need to add the following to the <head> section of your join form:

<script language=JavaScript>

function agreeToTerms(form){
if (form.agree.checked == false )
{
alert('You need to agree to our terms and conditions before continuing.'); //Whatever alert you want for not clicking box
return false;
}else
return true;
}
</script>


You will need to add the onsubmit="return agreeToTerms(this)" to the end of your <form> tag, like this:

<form action="signup.php" onsubmit="return agreeToTerms(this)">

This would need to be placed in your <form>, right before the submit button may be ideal:

By submitting this form I agree to the terms and conditions.<br />
I accept: <input type="checkbox" value="0" name="agree">



Tracked Checkbox

If you would like to track this data you can do so by setting the checkbox to one of the custom signup join fields on your join form. There are a total of 5 custom signup join fields you can use. ("signup[custom1]" to "signup[custom5]")

You would need to add the following to your join form, this is a simple edit you can change it to better suit your site: (To get to your join form follow the same steps listed above)

<div class="form_input">
	{if $errors.custom1}<div class="join_error">{$errors.custom1}</div>{/if}

	<input type="hidden" name="signup[custom1:1:::::::agree_to_terms]" value="0">
	<input type="checkbox" name="signup[custom1:1:::::::agree_to_terms]" value="Agreed to Terms" 
	
	{if $vars.custom1}checked{/if}> I agree to the terms of this site.
</div>  

The agree_to_terms can be whatever error you want displayed, you will need to use _, they will be replaced with spaces.

This will need to be added within the <form> tags of your join template.