Skip to:
Content
Pages
Categories
Search
Top
Bottom

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.

    <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 :)

Viewing 3 replies - 1 through 3 (of 3 total)

  • chrishajer
    Participant

    @chrishajer

    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.

    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.


    biggerbyfar
    Member

    @biggerbyfar

    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?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.