Extension talk:CookieWarning

About this board

Cookie is stored before the user agrees

1
2003:C2:3F16:1500:3496:6260:977C:EF5F (talkcontribs)

Howdy. When examining the extension, I found out that it displays the cookie warning after (!) creating the session cookie. The "okay" button is fake because there is no way to say "no". It just creates another cookie to suppress the banner next time. Yet GDPR requires the user's active agreement before storing anything on their computer. Is there another extension that we can use to get the user's agreement before creating the session cookie? Or a hook where I can place my own code? Best place would be before showing the page content.


Yes, the consequence of denying cookies will be to not allow the user to use our wiki. And yes, GDPR is crazy, for sure.

Reply to "Cookie is stored before the user agrees"
Costas Athan (talkcontribs)

Is it possible for a user of the extension to add explicit user consent for cookies of services like Google Analytics or AdSense, as required by the GDPR?

Florianschmidtwelzow (talkcontribs)
Costas Athan (talkcontribs)

Yes. I'm the one who created the task you mentioned.

This post was hidden by Costas Athan (history)
Florianschmidtwelzow (talkcontribs)

Then there's nothing more to say here, isn't it? :D

Costas Athan (talkcontribs)

No, there isn't. Actually, I had made this post here before starting the task on Phabricator. Since there is a task there, any developments can be mentioned in the relative task.

Edmond Media (talkcontribs)

I think the Extension:Privacy is a bit closer to what you are referring to. I am not sure that it will load all scripts in non-GDPR countries, but it seems to have the logic to turn some cookies on or off depending on consent from the user. And integration with Matomo.


It also adds some additional GDPR functionality such as tools for anonymization and data retreival.


The problem with the extension is that you need to install a bunch of additional BlueSpice extensions, which may not be desirable. It is not in my case.


At some point I want like to look into whether it is easy to modify the Extension:Privacy so that it can be used on its own.

Ppehrson (talkcontribs)

That thing does not work outside of the BlueSpice variant of MW.

Costas Athan (talkcontribs)
Reply to "GDPR cookie consent"

Cached pages don't display warning properly

1
2601:204:DF00:F0F:89E7:55FA:DBEF:AF7B (talkcontribs)

We use varnish for our non-logged in users to display already rendered pages. However, the cookie warning state is cached and has different results based on different browser cookie states. This will also affect mediawiki file based cache.


Any thoughts on moving this to a JS based display logic?

Reply to "Cached pages don't display warning properly"
85.255.237.34 (talkcontribs)

Could someone please indicate what the expected schema is for the geolocation API?


The example in the documentation leads to freegeoip shutdown, which hasn't been working for quite a long time.

Kris Ludwig (talkcontribs)

{

"ip":"172.217.23.132",

"country_code":"US",

"country_name":"United States",

"region_code":"CA",

"region_name":"California",

"city":"Mountain View",

"zip_code":"94043",

"time_zone":"America/Los_Angeles",

"latitude":37.4192,

"longitude":-122.0574,

"metro_code":807

}

MyWikis-JeffreyWang (talkcontribs)

Is there an alternative API to freegeoip.net?

Reply to "freegeoip.net schema"

Error with FrontMobile

1
80.39.238.13 (talkcontribs)

Today I noticed (after receiving email from "Google Search Console Team") that the message that CookieWarning produces does not seem to go through the MobileFrontend extension (one can easily see this on a desktop browser by appending ?useformat=mobile to the URL). Rather, the cookie message that appears on the mobile phone seems to be overlapping (probably "below") the MobileFrontend-formatted message. It also does not appear to have the same width as the screen.

What can I do to fix this? Thanks!

Reply to "Error with FrontMobile"

Did not work with MW 1.35 and Vector Skin

6
46.5.70.252 (talkcontribs)

Hi,

on my side the Cookie Warning does not appear anymore with the new MediaWiki 1.35 and the vector skin. If I change the skin, for example to Monobook, it is shown. Also on the Minerva Mobile Skin.

Is this a bug on my system, or is there another problem with the vector skin.

Another thing was, that with vector skin, my gadgets in the sidebar were not shown. Perhaps this is kind of the same problem. Anybody has the same Problems?

cheers

Andreas

46.5.70.252 (talkcontribs)

Short Update. Tried the Master Branch of this extension, with that it works again. But I want to use the REL1_35 branch. So any chance to update that branch?

Alaub81 (talkcontribs)
Cesarinik (talkcontribs)

I also have a problem with the Vector Skin in 1.35 (until v1.34.4 everything worked great)

An entry in the Sidebar does not work (SkinBuildSidebar function).

In my case the problem is that for inexplicable reasons  the content of the section was generated, but "hidden" by a CSS class (.emptyPortlet with display: hidden).

Try to check and workaround if it is something similar.

Alaub81 (talkcontribs)

yes same here, too. Fixed that problem by adding

.emptyPortlet {
        display: block;
}

to Mediawiki:Vector.css but that did not fix the CookieWarning Problem.

Cesarinik (talkcontribs)

Yes, I too solved in this way in a few minute but is very strange. It's like that CSS class (.emptyPortlet with parameter "display:none") is used to hide an item detected as "blank".

My wiki has always had a banner in the sidebar that with the v1.35 is not showed, but the weird thing is that you can still see it in the HTML code of the generated page, so... that item was not blank!

Reply to "Did not work with MW 1.35 and Vector Skin"

Text, Button Text variables

9
Summary by Kghbln

Do not edit the .json files directly but the respective system message pages on the wiki itself.

Renamed user dj65cf874dfh44 (talkcontribs)

Hello, using the CookieWarning. Are there variables to set the text for each of the two buttons, and also for the Cookie Alert itself? --Jeffmcneill (talk) 13:52, 14 April 2017 (UTC)

Renamed user dj65cf874dfh44 (talkcontribs)
Never mind, found the file i18n/en.json --Jeffmcneill (talk) 13:57, 14 April 2017 (UTC)
Kghbln (talkcontribs)

Do not edit the ".json" files since your changes will be overwritten on every update of the extension. Rather edit the respective system message on wiki. I have changed the documentation to make this noticeable.

Tapi0 (talkcontribs)

Could it be possible to add support for wiki links and etc. code?

Also it would be nice to have <br> code working in it.

Kghbln (talkcontribs)

Currently this is indeed not possible. I am not sure if I would like to have this option since it invites to add unnecessary information. @Florianschmidtwelzow:

Florianschmidtwelzow (talkcontribs)

I don't think, that html in this message makes any sense. What is your actual use case? You could add more information about how you use cookies on the page you link with the <code>$wgCookieWarningMoreUrl</code> configuration option. What exactly do you mean with "wiki links" and "code"? A wiki link could be added into the <code>$wgCookieWarningMoreUrl</code> configuration URL by adding the full URL of it. What is the use case of adding code to the message? :/

Tapi0 (talkcontribs)

I need to use Link to other site -wiki link two times in my cookie warning text.

I didn't get that <code>$wgCookieWarningMoreUrl</code> work if it is meant to put in to MediaWiki:Cookiewarning-info page.
I did make MediaWiki:Cookiewarning-more-url page where I put one of my links to other site.

I also need <br> code or something similar to move some text apart. Now it's all going to one long sentence.

Tapi0 (talkcontribs)

So i need to use link to my advert media site in cookie warning text.

Best would be like in wiki link style as Link to other site.

Can you please ad this support?

Tapi0 (talkcontribs)

So can we have that link support or not?

It would be nice to have somekind of line break too because now all my text in GDPR-info is not in so readable form.

Reply to "Text, Button Text variables"

does not seem to interact well with MobileFrontend

1
Dikay01 (talkcontribs)

Today I noticed (after receiving email from "Google Search Console Team") that the message that CookieWarning produces does not seem to go through the MobileFrontend extension (one can easily see this on a desktop browser by appending ?useformat=mobile to the URL). Rather, the cookie message that appears on the mobile phone seems to be overlapping (probably "below") the MobileFrontend-formatted message. It also does not appear to have the same width as the screen.

What can I do to fix this? Thanks!

Reply to "does not seem to interact well with MobileFrontend"

How to set CookieWarning at the Bottom?

3
Summary by Kghbln

Use the CSS provided. This is however not recommended.

Evetro (talkcontribs)

What must i do? Thanks for help

Ciencia Al Poder (talkcontribs)

Add the following in one of the stylesheets:

.mw-cookiewarning-container {
    top: auto;
    bottom: 0;
}
Florianschmidtwelzow (talkcontribs)

Thanks @Ciencia Al Poder for the answer :) @Evetro Please note, that the bottom is probably not prominent enough for the warning. It would also be possible for a user to click the links in the personal tools bar to e.g. create an account or login, which will potentially add more cookies to the users browser without having him read the cookie notice.

Special:Version doesn't point to the correct page

3
Summary by Kghbln

Link changed to point to extension's docu page in master and 1.31

Skunark (talkcontribs)

Seems to have a bug with the extension pointing to an unrelated website under the Special:Version page.

Kghbln (talkcontribs)

It indeed points to DroidWiki, which is the wiki of the extension's developer. I also think that it will be better to point the link to the extension's docu. In the end a matter of taste. @Florianschmidtwelzow: FYI.

Florianschmidtwelzow (talkcontribs)
Return to "CookieWarning" page.