We currently have 7.x-1.23+20-dev installed.

If the user clicks the button to disagree / does not give consent, then the pop up banner disappears. There is no way to give consent again until the cookie has expired or is manually deleted.

After a user clicks disagree, the Privacy Setting tab should appear so users could decide to opt-in again.

User scenario: The module has been configured to block Javascript and Cookies rendering the site essentially useless if they don't give consent. The user clicks button to NOT give consent and pop up banner disappears. They finally discover the site is useless and now have decided they want to accept the agreement so they can use the site.

Comments

bdaniels created an issue. See original summary.

svenryen’s picture

Good point. Are you interested in making a patch, or can you drum up some manpower for that? Perhaps your company would be interested in sponsoring the feature?

vasrush’s picture

StatusFileSize
new807 bytes

A simple patch for current 7.x-1.x-dev that do this.
It only works after page reload.

svenryen’s picture

Status: Active » Needs work

Good start, but I think we need to provide a bit more meat on the bone than this.

  • svenryen committed b921604 on 8.x-1.x authored by vasrush
    Issue #2974928 by vasrush: After clicking disagree there's no way to opt...
svenryen’s picture

Status: Needs work » Fixed

On second thought I think this looks ok. Adding the code to -dev now.

  • svenryen committed f7d1355 on 7.x-1.x authored by vasrush
    Issue #2974928 by vasrush, svenryen: After clicking disagree there's no...

  • svenryen committed 884a355 on 7.x-2.x
    Merge branch '7.x-1.x' into 7.x-2.x
    
    * 7.x-1.x:
    Issue #2975382 by...
  • svenryen committed f7d1355 on 7.x-2.x authored by vasrush
    Issue #2974928 by vasrush, svenryen: After clicking disagree there's no...
phobosk’s picture

@svenryen,
I don't think this patch is the right way to fix the issue...
With the proposed (and already released in 7.x-1.24) code there is a not so good side effect like this:

  1. User clicks the button that he disagrees
  2. The floating tab privacy settings with the withdraw banner appears
  3. When the user clicks on the floating tab, the withdraw banner appears, and that banner usually says he has already given consent and the button is to withdraw the consent. This situation will leave the user under the impression that although he/she has not given his consent, the site did not care his decision...

The way I see it there are two ways to overcome this issue:

  1. Leave the code for the patch as it is now, but the text in the withdraw consent with the withdraw button to be altered by the administrator in such a way so the content says something more generic not mentioning "accepted" or "withdraw"... Something like "Read our policy... blah blah" and the button to be "Change consent decision"
  2. Another option which will require some more coding will be to add an additional banner message for those that have not agreed but want to change their decision, so that the administrator to be able to customise that text too...

Very good work with this module btw... I love it :)

svenryen’s picture

Thanks for spotting this. I knew there was something missing from the patch, just couldn't remember what precisely needed to be done. Thanks for outlining it in detail. I'll work on this soon. Patches are also welcome!

svenryen’s picture

Status: Fixed » Active

  • svenryen committed 3aa4333 on 7.x-1.x
    Revert "Issue #2974928 by vasrush, svenryen: After clicking disagree...
svenryen’s picture

I'm reverting this commit for now, and we'll get back to it once some other issues are sorted out.

  • svenryen committed 2d2256f on 8.x-1.x
    Revert "Issue #2974928 by vasrush: After clicking disagree there's no...
fox mulder’s picture

StatusFileSize
new17.06 KB

Patch attached ( for current 7.x-1.x-dev ) that implements 2. suggestion of #9 post.

I think so it's not the final solution and needs more work...

panebianco’s picture

Please, I can't apply the patch. Which version of eu_cookie_compliance does it apply?

fox mulder’s picture

#15 patch based on 7.x-1.x latest dev

panebianco’s picture

Ok, it's the same I'm using but Applying patch it gives some errors regarding eu_cookie_compliance.js and eu_cookie_compliance.css, so I applied the path manually . The resul is that the banner of eu_cookie_compliance doesn't appear at all. I do not know why. I cleared cache and all cookies too.
Can you post the files you patched, please?

  • svenryen committed 3aa4333 on 7.x-2.x
    Revert "Issue #2974928 by vasrush, svenryen: After clicking disagree...

  • svenryen committed 884a355 on 7.x-1.x
    Merge branch '7.x-1.x' into 7.x-2.x
    
    * 7.x-1.x:
    Issue #2975382 by...
svenryen’s picture

Status: Active » Needs work
norman.lol’s picture

In the meantime you can use the little script from https://www.drupal.org/project/eu_cookie_compliance/issues/2985390#comme... to provide a clickable element to toggle the withdraw/(re)accept action.

svenryen’s picture

+++ b/eu_cookie_compliance.admin.inc
@@ -373,6 +373,56 @@ function eu_cookie_compliance_admin_form(array $form, array $form_state) {
+    '#markup' => t('Consent again...............'),

Markup would have to be better than this, or it can be removed :)

I wonder if this can be done in a simpler way without complicating the entire flow of the module.
Also, categories are missing from the "Opt in again " banner.

anybody’s picture

Status: Needs work » Fixed

I guess we can close this fixed now and proceed in #2985390: [1.x] Option to place Withdraw Button anywhere on site (e.g. in block) with the given patches?

This issue is hard to read with its many commits and there are several issues referring the current implementation state. Otherwise please reopen @svenryen!

norman.lol’s picture

I'd let the maintainer close the issue, not letting them reopen it.

norman.lol’s picture

That said, thank you for your current activity. Maybe you should ask to become a co-maintainer?

anybody’s picture

Thank you @leymannx, @svenryen is doing an amazing job with this module. I'm happy to help, perhaps he'll offer Co-maintainership one day, but I won't ask for it. Thank you all very much.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.