Addon Name: Cookie Control

Version: v2.00

PHP-Fusion Version Compatibility: v7.02.xx

Author: PHP-Fusion Mods UK

License: GNU Affero GPL v3.

Description

In May 2011 a law was passed stating that all websites dropping non-essential cookies on visitors devices have to declare it publicly and ensure visitors acknowledge and agree with them to continue browsing the website.
On 26th May 2012 this law came into effect.

Cookie Control Infusion for PHP-Fusion is a solution for this. The Cookie Control Bar Panel shows up as a noticeable bar which appears in the top or bottom of your PHP-Fusion website, stating to users that cookies are used and asking users to accept the use of cookies.
If users accept the use of cookies they will click the "Accept Cookies" button which will then store a cookie for hiding the Cookie Control Bar using Jquery.

The Cookie Control Bar Panel can be styled in the Cookie Control Admin Settings.
The Text on the bar can be edited in the Cookie Control Admin Settings.

In the Cookie Control Admin you can add new Cookie information for 3rd party cookies like Cookie name, Cookie Usage, and Cookie Description.
Standard PHP-Fusion cookies like fusion_visited, fusion_lastvisit, fusion_user are already added and can not be removed but the descriptions can be edited as is the cookie_control cookie.

The Cookie Info Page which can be found at http://www.your-site.com/infusions/cookie_control/cookie_info.php displays all Cookie information which can be used for users to see which cookies are used on your site.

Install

Upload all files in the /files/ folder to your PHP-Fusion sites root directory via FTP.
Now go to your site's Admin >>> System >>> Infusions and Infuse Cookie Control.
Next go to your site's Admin >>> System >>> Panels >>> Upper Center [New Panel] and Select cookie_control_bar_panel from the panel filename drop down. Name the Panel Cookie Control. Select Display panel on all pages. Keep Panel access set to Public. Save Panel. Enable panel.
Done!

Cookie Control Bar Settings and Cookies Information can be managed in your sites admin at http://www.your-site.com/infusions/cookie_control/cookie_control_admin.php?aid=YOURAIDHERE

Upgrading from Cookie Control V1.00

NOTE: Your current Cookie Control Settings and added 3rd pary cookies will be reset and delted.
Go to your site's Admin >>> System >>> Infusions and defuse Cookie Control.
Next Delete all Current V1.00 folders (/cookie_control/ and /cookie_control_bar_panel/) from your site/infusions/folder via FTP.
Next Delete cookies_accepted.php from your site root via FTP. It is no longer required in v2.00 since it uses JQuery instead.
Now Upload all new V2.00 files which are in the files/infusions/ Folder in the /Cookie_Control_v2.00/ folder to your PHP-Fusion sites root directory via FTP.
Now go to your site's Admin >>> System >>> Infusions and Infuse Cookie Control.
Next go to your site's Admin >>> System >>> Panels >>> Upper Center [New Panel] and Select cookie_control_bar_panel from the panel filename drop down. Name the Panel Cookie Control. Select Display panel on all pages. Keep Panel access set to Public. Save Panel. Enable panel.
Done, Cookie control V2.00 Installed!

Cookie Control Bar Settings and Cookies Information can be managed in your sites admin at http://www.your-site.com/infusions/cookie_control/cookie_control_admin.php?aid=YOURAIDHERE
The Cookie Control accept cookie name has been changed to include your site's prefix so please notify your site users of this change.

Changelog

v 1.00: First Public Release.

v 2.00: Major Re write of all files.
Cookie Control Panel now uses JQuery to hide the panel and store the Cookie_control cookie without having to redirect or refresh the page.
Cookie Control Admin area now split into sections for Managing cookies and settings.
Standard PHP-fusion Core Cookies info Descriptions can now be edited.
Cookie Time now in Days rather than seconds.
Cookie Control Accept cookies cookie cookie name now includes your site prefix.
Some minor changes made to the text and info on Cookies Info Page.

Support

If you require support for this Addon please visit the PHP-Fusion Mods UK Forum at
http://www.phpfusionmods.co.uk/forum/index.php

Credits

Developer: Craig
Cookie Control Bar Design By: Craig
Cookie Control Bar Version 2.00 Update By: Craig
Jquery Implemented by: Ankur Thakur & Craig
jscolor, JavaScript Color Picker:Jan Odvarko Site: http://jscolor.com

Licensing

PHP-Fusion Mods UK Addons and Themes are Released as free software without warranties under GNU Affero GPL v3.
This addon is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License.
If you do distribute this addon for download on your site you must put a link to PHP-Fusion Mods UK on the downloads Page for update purposes and you will be required to make sure you keep the Download Archive updated with latest versions.

Copyright © PHP-Fusion Mods UK 2012 2013