Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.
/ Cookie-Law Public archive
forked from MattRogowski/Cookie-Law

MyBB plugin - give information and gain consent for cookies to be set by the forum. (Edited for modworkshop.net)

Notifications You must be signed in to change notification settings

ModWorkshop/Cookie-Law

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

Fork: this fork is a modified version of the cookie law plugin to update it to work properly in our server + some changes that are exclusively relevent to our site. To make sure mybb doesn't set cookies when cookies are disabled, 2 files need small changes: inc/functions.php:

function my_setcookie($name, $value="", $expires="", $httponly=false, $samesite="", $bypass_cookieopt=false) {
	global $mybb;

	//Avoid setting cookies when cookies are not allowed.
	if(!$bypass_cookieopt && isset($mybb->cookies['allow_cookies']) && $mybb->cookies['allow_cookies'] == '0')
		return;

jscripts/general.js (insert in the head of the Cookie.set function), :

if(Cookie.get('allow_cookies') !== '1')
	return

This plugin is unlikely to receive any further updates.

Name: Cookie Law Description: Give information and gain consent for cookies to be set by the forum. Website: https://github.com/MattRogowski/Cookie-Law Author: Matt Rogowski Authorsite: https://matt.rogow.ski Version: 1.0.0 Compatibility: 1.6.x, 1.8.x Files: 2 Templates added: 6 Template changes: 2 Settings added: 1

Information: This plugin tries to comply with a new EU law which requires consent from users before cookies can be set to your browser.

You can either notify users that cookies are used or give users the ability to accept or reject cookies, as well as view more information on them, including what is set and what they do.

To Install: Upload ./inc/plugins/cookielaw.php to ./inc/plugins/ Upload ./inc/languages/english/cookielaw.lang.php to ./inc/languages/english/ Go to ACP > Plugins > Activate

Change Log: 26/05/12 - v0.1 -> Initial 'beta' release. 25/08/14 - v0.1 -> v1.0 -> MyBB 1.8 compatible. Fixes bug with permissions after disallowing cookies. Adds setting for the display method. To upgrade, deactivate, reupload ./inc/plugins/cookielaw.php and ./inc/languages/english/cookielaw.lang.php, activate.

Copyright 2016 Matthew Rogowski

  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at

** http://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

About

MyBB plugin - give information and gain consent for cookies to be set by the forum. (Edited for modworkshop.net)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%