Info
- 4 posts
- 3 voices
- Started 2 years ago by IanKwok
- Latest reply from biggerbyfar
- This topic is not resolved
Agree to TOC before login
-
- Posted 2 years ago #
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.
<label>
<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>
</label>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 :)
-
- Posted 2 years ago #
There was this plugin, but it was for up to 0.9
http://bbpress.org/plugins/topic/terms-of-service/
You could probably do a little javascript validation to be sure they tick the box before the submit button is even clickable.
-
- Posted 2 years ago #
Thanks but terms-of-service works only for register, what I want is to get member to tick the checkbox first before they can even login.
I am not good at scripting, would appreciate if you could show me how to do in the login-form.php.
-
- Posted 2 years ago #
This is a really important requirement for me! The _ck_ one doesn't work at all for bbpress v1.0.x
Any others out there?
-
You must log in to post.