MyBB Community Forums

Full Version: Enter the server-side code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would use a script to the cookie law Italian. This script blocks cookies. But if I plug it in global.php then MyBB locks and I do not get into the admin panel. I think it's due to the protection of the php file to MyBB.
How can I put these lines on the server side?

In particular I should enter:

define('EUCOOKIELAW_DISALLOWED_DOMAINS', '.doubleclick.net; .google.com; .google.it; html5shim.googlecode.com; www.google-analytics.com; .googleapis.com; www.youtube-nocookie.com; youtu.be; .youtube.com; .vimeo.com; www.pinterest.com; .googlesyndication.com');
define('EUCOOKIELAW_LOOK_IN_SCRIPTS', true);  
require 'eucookielaw-header.php';

This page original script:

https://github.com/diegolamonica/EUCookieLaw

This is my forum

http://www.istitutomajorana.it/forum2

Many Thanks.
There is no "protection of the php file" in MyBB. And it doesn't lock, white pages mean that PHP throws fatal errors. So the script is either inserted incorrectly in a wrong place or you can't use it with MyBB (it's supposed to work on Wordpress).
Thanks for the reply. The script also works on MyBB fact I solved. I installed the forum from scratch and then I used the database, after upgrading to the new version (1.8.5). I think the forum gave error that had been updated many times, from version 6.1.07 to 1.8.5 Finno.
Important that it is resolved.
Greetings to all of you.