• Resolved krneki10

    (@krneki10)


    Is there any way to have all options ticked by default but they would still remain opt-in, so when visitor would click on button accept, he would agree with everything by default? Most visitors just don’t read anything but click “ok”, “accept” per se. Therfore there is a high possibility that only functional cookies will be accepted.

    Also, I implemented code for Facebook wall feed. It works well, but the biggest problem is that Facebook wall is on my index site and after visitor accepts with cookies, wall will still remain hidden until website is refreshed. That is really annoying because none knows that they have to refresh website in order to get those cookie settings applied.

    Could you please help me out with this?

    http://wordpress.org/extend/plugins/cookie-opt-in/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Set “Deny all functionality until user has voted (opt-in)” and with each cookie type set ‘Default value for new visitors” to On.
    That should do the trick.

    About the refresh, I’m not going to implement that, sorry (don’t have the time), but you can do it yourself.
    There’s a bit of javascript that is executed upon clicking the ‘save’ button.
    Add the line document.location=document.location.href; and your page will reload.

    Hi,

    Where should we add that line (document.location=document.location.href;) to?

    Thanks

    hmmmm, looks like the latest version does not yet have a callback on “save”, though I would have sworn it did.

    Anyways, since the cookie-prefs are saved on change of the checks themselves, you can just bind a click event;

    jQuery(document).ready( function() {
    jQuery(‘#cookie_opt_in_container button.coia-ok’).live(‘click’, function() { setTimeout(‘document.location=document.location.href’, 100); });
    } );

    Add this script to the footer of your site, any valid WordPress way you like.
    (You can place it in footer.php, with a < script > tag of course, or you can create an action hook with add_action(‘wp_footer’, …).

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

The topic ‘Tick options by default and refresh after accept’ is closed to new replies.