Posts for June 2012

To comply with the e-Privacy directive it is necessary for sites to obtain consent prior to delivering cookies.

There are many scripts available to present site visitors with a prompt prior to cookie delivery.

The cPrompt plugin wrappers the cPrompt script. Simply install into Flatpress and enable the Plugin.

Once installed the cPrompt object can be used to enable / disable cookie related functionality within the site.

Full instructions on the use of cPrompt library can be found on Michael Wright's site. Using these instructions the GoogleSearchBox plugin can be made compliant with the directve with the following change to plugin.googlesearchbox.php:

...
<script>

    if (typeof(cPrompt) == "undefined"  
        &#124;&#124; cPrompt.checkCookie() == 1 
        &#124;&#124; cPrompt.checkCookie() == 2) {
        document.getElementById("googleSearch").style.display="inline";
    }

</script>   
...