Updated on 03 November 2014 with support for Elgg 1.9.X
To comply with the EU cookies law Download (link at the end of the article), Donate € 1 and include the extension in your Elgg site by following the steps below.
To install the module extract the downloaded archive file into the Elgg base directory. It is important to extract the contents in the base directory as the extension will change the engine/lib/sessions.php file which creates the session cookie.
Configuring the extension
The extension can be configured through the Admin > Configure > Settings > EU Cookies section in the admin console, where you can set:
- The way the acknowledgement message is displayed:
- Popup – An overlay that blocks the user from accessing the site until the cookies are approved
- Top of the page – The acknowledgement message is shown in a bar on top of the page
- The message to show when requesting your visitors to accept the cookies
- The message to show as a “read about the cookies” link
- The contents of the page that will provide information about the use of the cookies in the site
- For Elgg version 126.96.36.199 or before please modify the file engine/lib/views.php:
- The module was tested on Elgg 188.8.131.52, 1.8.1 and Elgg 1.8.6
- The 1.9.X module was tested on Elgg 1.8.4
// Place in the method elgg_view_page after the line most likely line 621
// $vars['sysmessages'] = $messages;
$vars = elgg_trigger_plugin_hook('output:before', 'page', null, $vars);
Update for 1.9.X
In Elgg 1.9.X the sessions.php file has been changed resulting incompatibility between the 1.8.X and 1.9.X versions. A new version of the extension is available for download for Elgg 1.9.X.
THIS EXTENSION IS PROVIDED BY THE AUTHOR “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR THIS SITE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS EXTENSION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NOTE: ALWAYS TAKE A BACKUP OF YOUR SITE AND DATABASE BEFORE INSTALLING ANY MODULE