1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Cookie Law - Cookie Control Widget - Implied Consent Only 1.0

Provides a discrete widget which notifies relevant visitors of cookie usage on your site.

  1. Chris D

    Chris D XenForo Developer Staff Member

    Yorick submitted a new resource:

    Cookie Law - Cookie Control Widget - Implied Consent Only (version 1.0) - Provides a discrete widget which notifies relevant visitors of cookie usage on your site.

    Read more about this resource...
     
    Doctor likes this.
  2. bogus

    bogus Guest

    Very usefull. many thanks for this. Is it also possible to change the info this way everyone gets the popup, not only UK?
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    There is a template called CookieControl.

    There is a line that reads:

    Code:
    countries:'United Kingdom' // Or supply a list ['United Kingdom', 'Greece']
    This needs some testing, but I believe if you edit it to read:

    Code:
    countries:''
    Then it shows for everyone.

    If people could test this and let me know. Otherwise I'll have to catch a flight to loads of countries to test ;)
     
  4. Lisa

    Lisa Well-Known Member

    Thanks for making this mod, it's appreciated! But I do have one question :)

    I haven't investigated the templates involved in it yet, so there a way not to show the corner image, it's ruining my footer heh heh heh.. I think I'd rather have the ability to add my own image in a place of my choosing then have to place it in the corner :D
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    The image is all handled by the javascript which is all done by whoever wrote the widget in the first place.

    If you check out the Admin CP options, there is an option to change it from the triangle image to a diamond (might look better) also there's an option to have it on the right instead of the left.

    I might have another idea too, but can you show me exactly how it's ruining the footer, such as a screenshot?

    We might be able to inject some CSS somewhere that will change its position.
     
  6. Lisa

    Lisa Well-Known Member

    The footer is in the process of being built, so I don't have a working screenshot yet, it's just sitting on top of the gradient image I have in place and looks terrible heh heh heh I tried the diamond but don't really like it lol.. I was thinking more a thin rectangle strip centred in my footer. If I can edit it via css, it shouldn't be too bad :D
     
  7. Chris D

    Chris D XenForo Developer Staff Member

    There's no template where you can edit the CSS but I have found some CSS classes that the javascript uses.

    The one for the button itself is div#ccc-icon button.

    So for example if you wanted to completely hide the button (probably not, but just as an example) you could add this to EXTRA.css:

    Code:
    div#ccc-icon button
    {
    display: none!important;
    }
    You might want to experiment with something like:

    Code:
    div#ccc-icon button
    {
    background-image: url(pathtoyourimage.png);
    }
    There's a few clues to get you started :D
     
    RobinHood and Lisa like this.
  8. Lisa

    Lisa Well-Known Member

    Thank you for that! I'll let you know what happens :D
     
  9. Adam Howard

    Adam Howard Well-Known Member

    Maybe I'm missing the line of code I need to change.... Is there away to have this on the left side, not the right?
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    I rarely make people change code to configure my stuff.

    Options are in Admin CP > Options > Cookie .... Will be somewhere near the bottom.
     
    TheVisitors likes this.
  11. Adam Howard

    Adam Howard Well-Known Member


    And that is what makes you one of the more outstanding developers here (y)

    I was wondering about this. Wasn't the law passed for all of Europe or is that still pending?! I know The UK passed this, but I recall this being a "Euro Zone" privacy policy of topic once.... Know any details on that?!
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    All I know is that you can add countries (that is a code edit unfortunately in the template :p). It only shows to UK but add other countries to the list for it to show there too.
     
    TheVisitors likes this.
  13. RobinHood

    RobinHood Well-Known Member

    Great little add on :)

    Some possible suggestions for customisability (might not really be worth the time to implement, but could be handy anyway):

    1. In the ACP have a checkbox to display or hide the button through CSS as described in your post #7 above.
    2. Have a another option to control the display time in seconds on the ACP.
    3. Have a text box in the ACP where you can enter a hex color value, this will then adjust the 4 css properties for the pop up box automatically to fit in with whatever colour the theme of your site is.

    It's a shame they use a sprite instead of css to colour the triangle/diamond as they could have also then been styled using suggestion 3.
     
  14. Mark3121

    Mark3121 Well-Known Member

    I notice on your site the triangle disappears after you press the x, how do you do that please?
     
  15. Chris D

    Chris D XenForo Developer Staff Member

    Mark3121 likes this.
  16. Mark3121

    Mark3121 Well-Known Member

    that worked, thanks.
     
    Yorick likes this.
  17. Adam Howard

    Adam Howard Well-Known Member

    I'm mildly puzzled as to why Firebug tells me this has an error.

    SyntaxError: unterminated string literal

    Of course it would figure that it is telling me that it is within jquery on line 16 col 11:confused:

    PHP:
    (function(a,b)Etag"))
     
  18. damowhite666

    damowhite666 Active Member

  19. BassMan

    BassMan Well-Known Member

    Hi, @Chris Deeming!

    Some questions:
    1. Is this add-on working on XF 1.2.2?
    2. Can I block AdSense cookies with this add-on, but leave ads to be visible?
    I really need some cookie consent add-on, because the law in my country is very strict. Cookies needs to be opt-in, so NO cookies (accept own important ones) are allowed to set on computer before user accepts them.

    I need that kind of add-on badly!

    Regards,
    BassMan
     
  20. Chris D

    Chris D XenForo Developer Staff Member

    1. Don't know. Probably.
    2. No, sorry. It doesn't block anything. It's just a warning.
     

Share This Page