Agree to TOC before login
I am trying to get members to agree to the terms and conditions by ticking at a checkbox before he can be logged in. Can someone tell me how to do this in the login-form.php? I added a few lines of code after the password label and before the <input name=”re” type=”hidden” value=”<?php echo $re; ?>” /> in the login-form.php of my template but not sure how to do the check if member tick on the checkbox when he click on the submit button.
<input name=”terms_of_service” type=”checkbox” id=”terms_of_service” value=”agree” style=”vertical-align:middle;width:1.40em;height:1.40em; margin-top:4px;” />
<font size=’1′><?php _e(‘I agree to the Terms & Conditions’); ?></font>
Is there a better way of doing this by using a simple plugin? I am new to bbpress and not good at programming.
Thank you in advance
- You must be logged in to reply to this topic.