Here's a super easy User Agreement mod for v2.x, based in part on vdavid23's 1.0x mod [url="http://www.torrenttrader.org/index.php?showtopic=2194&hl=terms"]here[/url].

What version am I running?: 2.02 (standard account-signup.php file, except for age, gender, country boxes removed)

What the mod does: Adds a "terms and conditions" block and a checkbox before users can sign up.

What does it look like?: See it [url="http://fta9.com/account-signup.php"]here[/url].

How long it takes to do: 1 min. or less

How it's done:

Step 1: Backup your account-signup.php and open it up.

Step 2: Find the following line:

//Setup Error Messages
below that, add
if (!$agree)

 $message = "You must agree to the terms in order to sign up!";





Step 3: Find the following block of code:

stdhead("Signup");

begin_frame("Signup");

?>

<? echo "" . COOKIES . "";?>

<p>

<form method="post" action="account-signup.php?takesignup=1">

<table cellSpacing="0" cellPadding="2" border="0" >

<tr>

<td>Username: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="text" size="40" name="wantusername" /></td>

</tr>

<tr>

<td>Password: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="password" size="40" name="wantpassword" /></td>

</tr>

<tr>

<td>Confirm: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="password" size="40" name="passagain" /></td>

</tr>

<tr>

<td>Email: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="text" size="40" name="email"/></td>

</tr>



<tr>

<td align="middle" colSpan="2">

<input type="submit" value="Sign Up" />

 </td>

</tr>

</table>

</form>

<?

end_frame();

stdfoot();

?>







REPLACE WITH:





stdhead("Signup");

begin_frame("Signup");

?>

<? echo "" . COOKIES . "";?>

<p>

<form method="post" action="account-signup.php?takesignup=1">

<table cellSpacing="0" cellPadding="2" border="0" >

<tr>

  <td align="center"></td>



  <tr><td colspan="4"><b>Step 1: Registration Agreement Terms</b></td></tr>



  <tr><td colspan="4"><br>Please read fully and check the 'AGREE' box ONLY if you agree to the terms<br><textarea name=termagreement rows="20" align="center" style="width:100%" readonly>Terms of Service for FTA9.com



PLACE YOUR DISCLAIMER OR LEGAL INFORMATION HERE

You agree that checking the box constitutes your digital signature and acceptance of these terms.

By checking AGREE below you are now bound by these terms and conditions.</textarea></td></tr>





<td>Do You Agree To The Terms And Conditions?: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="checkbox" name="agree" />Yes, I Agree!

</tr>

<tr>

 <td>Username: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="text" size="40" name="wantusername" /></td>

</tr>

<tr>

<td>Password: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="password" size="40" name="wantpassword" /></td>

</tr>

<tr>

<td>Confirm: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="password" size="40" name="passagain" /></td>

</tr>

<tr>

<td>Email: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="text" size="40" name="email"/></td>

</tr>



<tr>

<td align="middle" colSpan="2">

<input type="submit" value="Sign Up" />

 </td>

</tr>

</table>

</form>

<?

end_frame();

stdfoot();

?>





OR



If you don't want to type all your disclaimer stuff in the php file and want to use an external text file instead, replace the signup block with the following (but make sure to put a file called "terms.txt" in your root directory):







stdhead("Signup");

begin_frame("Signup");

?>

<? echo "" . COOKIES . "";?>

<p>

<form method="post" action="account-signup.php?takesignup=1">

<table cellSpacing="0" cellPadding="2" border="0" >

<tr>

  <td align="center"></td>



  <tr><td colspan="4"><b>Step 1: Registration Agreement Terms</b></td></tr>



  <tr><td colspan="4"><br>Please read fully and check the 'AGREE' box ONLY if you agree to the terms<br><textarea name=termagreement rows="20" align="center" style="width:100%" readonly>Terms of Service for FTA9.com

<?



echo file_get_contents("terms.txt");

?>


</textarea></td></tr>

<td>Do You Agree To The Terms And Conditions?: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="checkbox" name="agree" />Yes, I Agree!

</tr>

<tr>

 <td>Username: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="text" size="40" name="wantusername" /></td>

</tr>

<tr>

<td>Password: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="password" size="40" name="wantpassword" /></td>

</tr>

<tr>

<td>Confirm: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="password" size="40" name="passagain" /></td>

</tr>

<tr>

<td>Email: <font class="small"><font color="#FF0000">*</font></td>

<td><input type="text" size="40" name="email"/></td>

</tr>



<tr>

<td align="middle" colSpan="2">

<input type="submit" value="Sign Up" />

 </td>

</tr>

</table>

</form>

<?

end_frame();

stdfoot();

?>




Done.

account-signup.php and terms.txt for the second method are attached.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=1903"]account_signup.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=1928"]terms.txt[/url]
account_signup.php
Download
terms.txt
Download