Gossamer Forum
Home : Products : Others : Gossamer Community :

Re: [Matthias70] checkbox for Privacy Policy

Quote Reply
Re: [Matthias70] checkbox for Privacy Policy In reply to
Why do you need it in the DB?

If you do, then try this:

Mmm, untested, but in your signup form, add:

Code:
<input type="checkbox" name="prof_accept_tos" id="prof_accept_tos" value="ON"> accept the TOS

Code:
<script>
sub do_check() {
if (jQuery('#prof_accept_tos').attr('checked')) {
alert("please accept our TOS");
return false;
}
return true;
}
</script>

..then in the <form bit, add:

Code:
onsubmit="return do_check();"

Once this is ticked, it should then update the "prof_accept_tos" field in their profile.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread checkbox for Privacy Policy Matthias70 10047 Mar 17, 2010, 10:41 AM
Thread Re: [Matthias70] checkbox for Privacy Policy
Andy 9910 Mar 17, 2010, 11:54 AM
Thread Re: [Andy] checkbox for Privacy Policy
Matthias70 9928 Mar 17, 2010, 12:03 PM
Thread Re: [Matthias70] checkbox for Privacy Policy
Andy 9912 Mar 18, 2010, 12:50 AM
Thread Re: [Andy] checkbox for Privacy Policy
Matthias70 9900 Mar 18, 2010, 5:31 AM
Thread Re: [Matthias70] checkbox for Privacy Policy
Andy 9876 Mar 18, 2010, 11:06 AM
Thread Re: [Andy] checkbox for Privacy Policy
Matthias70 9876 Mar 18, 2010, 11:12 AM
Thread Re: [Matthias70] checkbox for Privacy Policy
Andy 9876 Mar 18, 2010, 11:59 AM
Thread Re: [Andy] checkbox for Privacy Policy
Matthias70 9867 Mar 18, 2010, 12:13 PM
Thread Re: [Matthias70] checkbox for Privacy Policy
Andy 9874 Mar 18, 2010, 12:48 PM
Thread Re: [Andy] checkbox for Privacy Policy
Matthias70 9860 Mar 18, 2010, 1:41 PM
Thread Re: [Matthias70] checkbox for Privacy Policy
Andy 9860 Mar 18, 2010, 1:44 PM
Post Re: [Andy] checkbox for Privacy Policy
Matthias70 9865 Mar 18, 2010, 1:51 PM