How to enforce acceptance of Terms and Conditions with Social Login?

This topic contains 8 replies, has 3 voices, and was last updated by  Backpacking Series 6 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #1574

    Backpacking Series
    Buyer
    Post count: 104

    Hello,

    Thank you for your terrific support with the ongoing issues.

    I have a query about enforcing terms and privacy policy of the website.

    When a potential site-member registers using the UsersWP ‘register’ form, s/he is required to tick the checkbox for Terms and Conditions. But when using a social login option, the user gets in without acceptance. This gets trickier when a user lands up on a ‘login’ form (instead of ‘register’), since the login form does not have the option to accept Terms and Conditions.

    Is there a way to enforce a user to accept site’s terms and privacy policy with social login?

    Kind regards,

    Abhijeet

    #1582

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    There is no easy way to do that, i would just add a section to your T&Cs that by registering you agree to our terms.

    Stiofan

    #1585

    Backpacking Series
    Buyer
    Post count: 104

    Hello Stiofan,

    Thank you for your response.

    Yes, the T&C contains a section to specify that. But it kind of falls short of an agreement – since not all users may read the section.

    I wonder whether there is a way to add a line of small-font text, say, ‘Using Social Login to enter the website means acceptance of our T&C (link to T&C)’ right under / above the social icons on all forms and sidebar social login widget?

    Kind regards,
    Abhijeet

    #1586

    Patrik
    Moderator
    Post count: 1971

    Hi Abhijeet,

    There is no any hook or filter to display T&C message in social login widget on sidebar. You can use following code to display the message in the login form:

    
    
    add_action( 'uwp_social_fields', 'uwp_social_fields_after', 35, 1 );
    function uwp_social_fields_after($form) {
        if('login' == $form) {
            echo '<p style="font-size: 12px;">' . __('Using Social Login to enter the website means acceptance of our <a href="#">T&C</a>', 'userswp') . '</p>';
        }
    }

    You can remove the condition if you want to display the same message on the register form as well.

    Regards,
    Patrik

    #1588

    Backpacking Series
    Buyer
    Post count: 104

    Hi Patrik,

    That is very helpful. As suggested, I tried the following code:

    
    
    add_action( 'uwp_social_fields', 'uwp_social_fields_after', 35, 1 );
    function uwp_social_fields_after($form) {
            echo '<p style="font-size: 12px;">' . __('Login means acceptance of <a href="https://www.backpackingseries.com/privacy-policy/">Terms and Privacy Policy</a>', 'userswp') . '</p>';
    }

    It works for Login form. But not for Register. Can you please help?

    Kind regards,
    Abhijeet

    #1589

    Patrik
    Moderator
    Post count: 1971

    Hi Abhijeet,

    It should work for the registration form also. I think there may be something missing in the template file. Can you give me FTP and also admin details in private reply to access and check the files of UWP?

    Regards,
    Patrik

    #1591

    Backpacking Series
    Buyer
    Post count: 104

    Hi Patrik,

    It was a cache issue. The message appears just fine on the registration form too!

    Thank you very much, once again!

    Kind regards

    Abhijeet

    #1592

    Patrik
    Moderator
    Post count: 1971

    Welcome, Abhijeet!

    Should I close this ticket now or you have any other queries?

    Regards,
    Patrik

    #1593

    Backpacking Series
    Buyer
    Post count: 104

    Yes, please close this one. Thank you Patrik.

    Regards

    Abhijeet

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket