Code for Confirm Terms or rules

Core code customizations and Smarty markup and Template design help in regards to ADP.

Moderator: pgolovko

Code for Confirm Terms or rules

Postby webmasta » 02/07/2010 1:07 pm

On addurl.html search for
Code: Select all
<form method="POST" action="addurl.php">


and change to
Code: Select all
<form method="POST" action="addurl.php" enctype="multipart/form-data" onsubmit="return checkCheckBox(this)">


and search for
Code: Select all
<input type=submit value="Submit" name=add>


and change to
Code: Select all
<a href="http://www.mydomain.com/terms.html" target="_blank">TERMS</a> here my message:&nbsp;<input type="checkbox" value="0" name="agree" /><input type=submit value="Submit" name=add>

You should make a new Site call terms.html

and then add this code before
Code: Select all
{include file='footer.html'}


Code: Select all
{literal}
<script>
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('You have not accepted the Terms.');
return false;
}else
return true;
}
</script>
{/literal}
{include file='footer.html'}


Ok? :shock:

You can see here on my Site
http://www.rockmonaut.com/addurl.php

mfg
webmasta
 
Posts: 14
Joined: 01/14/2010 9:26 am


Return to Customization & Templates

Who is online

Users browsing this forum: No registered users and 0 guests

cron