Currently the popup shows on admin pages and on the overlay (so you get 2 on 1 page). I think there should be an option to hide it on admin pages, optionally hide for registered users (who may consent through their registration form), and hide on overlays.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Homotechsual’s picture

I agree that this is necessary, this should not be considered so much of a "feature request" as a bug report as there is no reason to display this to logged in users or administrators.

budda’s picture

Not displaying to logged in users could be a tricky situation -- as a user may already be logged in before this module is added, and thus would never see the pop-up and consent information provided.

budda’s picture

There's already code in the module to not render the icon/pop-up on admin pages.

if (strpos(current_path(), 'admin') === FALSE) {

budda’s picture

I have seen the problem with things like lightbox.
Not come up with a solution to that yet.

__cj’s picture

The attached patch makes use of path_is_admin (http://api.drupal.org/api/drupal/includes%21path.inc/function/path_is_ad...), instead of checking if 'admin' is in the current path. This fixes the problem with it displaying on '/node/add' or '/node/edit/*', and other administration pages.

This doesn't solve the problem of it displaying in lightboxs though.

Chris.

__cj’s picture

The attached patch builds on the previous patch.

It adds a field to the admin page - 'Exclude Paths', in which you can add a list of paths to hide the cookie control on.

My specific use case is the cookie control is displaying in the media module's dialog iframe, (the media module doesn't declare it as an admin page), but I'm sure there are other pages where you'd want to hide it (perhaps when using the print module).

Chris.

__cj’s picture

Status: Active » Needs review
Peacog’s picture

I've applied #6 and it works for me. Thank you!

Homotechsual’s picture

Status: Needs review » Reviewed & tested by the community

Confirming number 6 works here too. On all 10 drupal sites, across 5 different servers, 3 different OS's and all with slightly different configs. :-p

Thanks for the patch! __cj :-)

Marking as RBTC for now.

budda’s picture

Status: Reviewed & tested by the community » Fixed

Thanks __cj committed.

Homotechsual’s picture

Budda - any idea when we'll see a release with this patch included?

budda’s picture

@MJCO - the 1.6 release which was rolled out on 25th feb included it.

Status: Fixed » Closed (fixed)

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