Snapshots

Permalink Browser Info Environment
Hi, first of all I must say that this is a great addon.

I was using Bitpixels to create a snapshot of my website and got some problems there since the thumbnail generated shows the Free Cookies Disclosure dialog.

Is there a way to bypass the FCD-dialog by adding some variables to the URL?

Type: Discussion
Status: New
LittleSnowman
View Replies:
Mainio replied on at Permalink Reply
Mainio
Sure, the file you need to modify is:
/packages/free_cookies_disclosure/libraries/disclosure_renderer.php

And there the setEvents-method. Just add a check there if there is some GET-variable set and if there is, don't attach the "on_page_view" method like it normally does.

Best,
Antti / Mainio
LittleSnowman replied on at Permalink Reply
LittleSnowman
Hi Antti and thank you for your quick reply.
I checked the file but I think maybe we misunderstood each other.

I am wondering if I can write something like
http://mysite.org/index.php?cookies_allowed=1
or something like that in my browser to temporarily disable FCD and get a clean snapshot of my website.

/Regards
Perra
Mainio replied on at Permalink Reply
Mainio
Yes, exactly. If you modify the code in the spot that I pointed out to check that GET-variable (cookies_allowed=1), you are able to do exactly what you want to do.
LittleSnowman replied on at Permalink Reply
LittleSnowman
Ok, thanks. I will try this on my testserver.
I made it easy for myself and uninstalled, took the snapshot and reinstalled. :-)

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.