View previous topic :: View next topic |
Author |
Message |
seatonsupport
Joined: 22 Jan 2010 Posts: 3 Location: Chicago
|
Posted: Fri Jan 22, 2010 4:12 pm Post subject: Login Page Terms & conditions |
|
|
Within the login page can you add a agree to accept check box for the Terms & conditions box? |
|
Back to top |
|
|
dominic Forum facilitator
Joined: 23 Oct 2007 Posts: 103
|
Posted: Mon Jan 25, 2010 6:19 am Post subject: |
|
|
Sure. Just modify FirstSpot\authserv\template\login_form_body.tpl (for Username Password or Scratch Code login) or alogin_form_body.tpl (for Anonymous login).
Here's an example using login_form_body.tpl. The modificatons for alogin_form_body.tpl are more or less the same.
Search the line
Code: | <form name="loginForm" method="post" action="fs_login.php" onSubmit="submitPopup()"> |
and replace it with
Code: | <form name="loginForm" method="post" action="fs_login.php" onSubmit="return checkTCFirst()"> |
Finally, add the following before the line "{%$L_LOGIN_FORM_TERM_COMMENT_CLOSE%}"
Code: | <script>
function checkTCFirst()
{
if (document.tcForm.cb_tc.checked) {
submitPopup();
return true;
} else {
alert('You have not accepted the Terms and Conditions.');
return false;
}
}
</script>
<tr><td><form name="tcForm"><input type="checkbox" name="cb_tc">I accept the above Terms and Conditions.</form></td></tr> |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
Powered by phpBB © 2001, 2005 phpBB Group
| |