Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2018 at 14:35 UTC
Updated:
13 Sep 2020 at 18:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
davidebarbato commentedThis seems to work, modifying in eu_cookie_compliance.js:
...
Comment #3
svenryen commentedThanks. I see what you want and it makes sense, in fact more sense than the current implementation.
Unfortunately we can't change a feature that's already in the module, since there's at least one person using it (the person who contributed the patch).
So we need a patch for this, both for D7 and D8. The feature will require a new checkbox on the admin page, and some modifications to the JS. Any chance you're able to help write the patch?
Comment #4
davidebarbato commentedHi svenryen,
Ok, I'll think about how to add this feature with a patch.
I have to figure out how to include a new checkbox not in contrast with the "Prompt for consent at every new browser session" and its code. Could be something like: "Prompt for consent at every new browser session ONLY if not already agreed" with new variable, ex.
[disagree_set_cookie_session], to check before settingcookie_session=1on clickdeclineActionin JS.Comment #5
davidebarbato commentedHi svenryen,
As asked I added the feature with a patch, starting from the D7 version.
I added the same logic if a user clicks the "Decline or the ""Withdraw consent" button.
This patch could also be used to addresses this issue:
https://www.drupal.org/project/eu_cookie_compliance/issues/3013123
Next days I'll work to the D8 porting.
Comment #6
davidebarbato commentedOk, this patch should work with D8.
Comment #7
svenryen commentedComment #8
jlbellidoI've checked the latest patch and it worked for me. However we need to review the coding standars.
Comment #9
jlbellidoI'm just uploading a new version with the coding standards fixed. Probably we would need tests for this new feature right?
Thanks!
Comment #10
jlbellidoComment #12
jlbellidoMy apologies for the noise, but this is the correct patch.
Comment #14
svenryen commentedComment #15
anybodyThank you very much @jilbelido, great idea!
I just reviewed your patch and guess "disagree_set_cookie_session" is not a perfect name for that feature. What you want might be like "disagree_clear_cookie_session" or "set_cookie_session_zero_on_disagree"?
Furthermore I think it would be much better to use a select or radio buttons instead of an additional checkbox, which would be confusing, I guess.
But yes, I definitely like the idea, especially from the marketing perspective!
Comment #16
svenryen commentedWorks great! Thanks for the patch!
I changed the wording of the variable as per #15 and fixed some coding standard issues.
Comment #18
svenryen commented