• Resolved Harry Milatz

    (@harry-milatz)


    Hi,

    i am using this Plugin for social comments.

    The option to set a checkbox for the GDPR is nice. But the Buttons can always be clicked, even if the checkbox is not checked. The a-tag “disabled” is ignored by Chrome or Firefox.

    I have a (my) solution:
    I changed the line 65 from class-mo-openid-login-widget.php the to $gdpr_setting = "class='mo-disabled'";

    I added `.mo-disabled {
    pointer-events:none;
    }` in the mo_openid_style.css

    I added in the social_login.js `jQuery(“div.mo-openid-app-icons > input”).click(function () {
    if(jQuery(this).is(‘:checked’)){
    jQuery(‘div.mo-openid-app-icons > a’).removeClass(‘mo-disabled’);
    }
    else {
    jQuery(‘div.mo-openid-app-icons > a’).addClass(‘mo-disabled’);
    }
    });`

    If the checkbox is not checked, the buttons can’t be clicked.

    Or is there another reason/solution why this was not working?

    Best regards,
    Harry

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor vkontakte

    (@vkontakte)

    Hi Harry,

    We are not able to reproduce this issue. We tested it in Chrome as well as Firefox.
    Can you share your website details with us through an email to info@miniorange.com We will try to debug this on your site.

    Also, please update to 6.6.6 and confirm if you are testing on that.

    Thanks

    Thread Starter Harry Milatz

    (@harry-milatz)

    Ho,

    ok i will send an email.

    I am on 6.6.6 😉

    Best regards,
    Harry

    Thread Starter Harry Milatz

    (@harry-milatz)

    Hi,

    i see a second “issue”.
    The <script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js”></script&gt; in the class-mo-openid-login-widget.php in line 661 should be added without http because in case of https it maybe won’t be loaded
    <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js”> should work.

    For what is this neccesary? jQuery should be loaded by default with WordPress.

    Best regards,
    Harry

    Plugin Contributor vkontakte

    (@vkontakte)

    Hi Harry,

    We have removed this script src in 6.6.7. You can update to this version.

    Thanks

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

The topic ‘GDPR Checkbox not working’ is closed to new replies.