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

Cookie Law - Cookie Control Widget - Implied Consent Only 1.0

No permission to download

Chris D

XenForo developer
Staff member
#1
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.

Please consider donating if you find this add-on useful.

This add-on looks at the geographical location of your visitor and if they are browsing from the UK, they will be served a notification regarding your site's use of cookies.

View attachment 30548 View attachment 30549

It comes with two themes, dark and light, fully configurable from...
Read more about this resource...
 
B

bogus

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

Chris D

XenForo developer
Staff member
#3
Very usefull. many thanks for this. Is it also possible to change the info this way everyone gets the popup, not only UK?
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 ;)
 

Lisa

Well-known member
#4
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
 

Chris D

XenForo developer
Staff member
#5
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.
 

Lisa

Well-known member
#6
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
 

Chris D

XenForo developer
Staff member
#7
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
 

Adam Howard

Well-known member
#11
I rarely make people change code to configure my stuff.

Options are in Admin CP > Options > Cookie .... Will be somewhere near the bottom.

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

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 ;)
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?!
 

Chris D

XenForo developer
Staff member
#12
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.
 

RobinHood

Well-known member
#13
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.
 

Adam Howard

Well-known member
#17
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"))
 

BassMan

Well-known member
#19
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