• Is there any way to generate a TOS checkbox on the login page/widget?

    The checkbox in the profile editing works fine, but I would like to make sure that the privacy policy and terms of use are accepted before a member logs in. Since our website does not set cookies, there is no need for a general query when accessing the page. This query is only necessary when a member logs in.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Since our website does not set cookies…

    If your site uses WP, it sets cookies. That’s how WP maintains login state, among other things. I think what you’re saying here is that there are no cookies set for a non-logged in user?

    Is there any way to generate a TOS checkbox on the login page/widget?

    Theoretically, yes. But as a practical matter in implementation, not really.

    Login is not the time to be validating based on TOS (although you could potentially do it). That should be done during registration.

    I have written a series of custom code snippets for forcing an existing user to update their registration data (such as to force an update to a specific field – like a change in ToS and such). It is part of the premium support site here.

    The premise for adding it to the login form could be done – depending on your level of familiarity with WP and how filter and action hooks work. You’d use the wpmem_login_form_defaults filter to add a field (for your checkbox for the terms). Then you could use WP’s authenticate filter to add the necessary validation/authentication to check it when the form is submitted.

    Thread Starter nbahnfreunde

    (@nbahnfreunde)

    If your site uses WP, it sets cookies. That’s how WP maintains login state, among other things. I think what you’re saying here is that there are no cookies set for a non-logged in user?

    Yes, this is how it is regulated on our site. For non-logged in users only a session cookie is set, for which no consent is required.

    Thanks for the detailed answer however I don’t have such deep system knowledge that I can implement this with the code snippets. We will look for another solution for the members of the club.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TOS checkbox on Login page or widget’ is closed to new replies.