View Full Version : Mini Mods - Simple EU Cookie Law MOD
Robru
10-17-2012, 10:00 PM
Simple EU Cookie Law MOD
Works also on vBulletin 3.8.X and 4.X.X (https://vborg.vbsupport.ru/showthread.php?t=284819)
Thanks to simonhind (https://vborg.vbsupport.ru/member.php?u=184382) and Stefan118 (https://vborg.vbsupport.ru/member.php?u=414463)
1) Create Template with this code e.g cookie_law
2) Create a hook : in Header_head
Template Name : cookie_law
Code:
<link rel="stylesheet" type="text/css" href="http://www.heartinternet.co.uk/eu-cookie/main.css"/>
<script type="text/javascript" src="http://www.heartinternet.co.uk/eu-cookie/support-opt-in.js"></script>
<script type="text/javascript" src="http://www.heartinternet.co.uk/eu-cookie/require-opt-in.js" read_more="http://www.your-site.com/privacy-policy"></script>
http://www.heartinternet.co.uk/images/content/cookie-step_1a.png http://www.heartinternet.co.uk/images/content/cookie-step_2a.png
Another way is:
Download the files, rename the code, and put them on your server.
For more information see:
http://www.heartinternet.co.uk/eu-cookie-law.html
Changelog:
V.1.10 Fixed *.png problem
Robru
10-18-2012, 03:21 PM
Changelog:
V.1.10 Fixed *.png problem
TheSupportForum
10-18-2012, 08:44 PM
Suggestion :
1) Create Template with this code e.g cookie_law
2) create a hook : in Header_head
Template Name : cookie_law
then there is no need to edit the template
with VB5 alot of use will be aiming towards using template hooks to do all the tasks for use
Robru
10-19-2012, 03:56 PM
Thanks Simon, for your explanation :)
TheSupportForum
10-19-2012, 04:11 PM
Thanks Simon, for your explanation :)
for your next release i hope that you implement this yourself :)
Robru
10-19-2012, 04:25 PM
Ofcourse ;)
Brandon Sheley
10-19-2012, 07:33 PM
Wouldn't it be better to upload the .js files on our server, and link to them that way?
Robru
10-20-2012, 07:54 AM
Yes, that's possible, and don't forget to change the names of the code ;)
Robru
10-20-2012, 08:06 AM
Update: zip file added
drummaster
10-21-2012, 01:09 AM
Hi Robru I have installed this but the image isn't working right
I uploaded the files and changed the names a hook wouldn't work so I went into the footer and pasted the code their, but the image is not lining up right
can you please advise
Thank you
https://vborg.vbsupport.ru/
TheSupportForum
10-21-2012, 11:05 AM
Hi Robru I have installed this but the image isn't working right
I uploaded the files and changed the names a hook wouldn't work so I went into the footer and pasted the code their, but the image is not lining up right
can you please advise
Thank you
http://www.scriptmania.co.uk/image.png
create a template with just the content below
<link rel="stylesheet" type="text/css" href="http://www.heartinternet.co.uk/eu-cookie/main.css"/>
<script type="text/javascript" src="http://www.heartinternet.co.uk/eu-cookie/support-opt-in.js"></script>
<script type="text/javascript" src="http://www.heartinternet.co.uk/eu-cookie/require-opt-in.js" read_more="http://www.your-site.com/privacy-policy"></script>
create a hook for header_head
ensure you but the template name in, then its done
drummaster
10-21-2012, 01:25 PM
Ok got it but the image is displaying wrong get get it to display right
any thoughts of why would be helpfull
https://vborg.vbsupport.ru/
Thank You
TheSupportForum
10-21-2012, 01:28 PM
Ok got it but the image is displaying wrong get get it to display right
any thoughts of why would be helpfull
https://vborg.vbsupport.ru/
Thank You
if you installed this mod, remove it and create the hooks etc manually
it should work
TheSupportForum
10-21-2012, 01:36 PM
Ok got it but the image is displaying wrong get get it to display right
any thoughts of why would be helpfull
http://www.scriptmania.co.uk/Image.jpg
Thank You
the screenshots provided is all you need to do
drummaster
10-21-2012, 02:56 PM
thanks for you help I have it working only if I don't change the first 2 lines of code
<link rel="stylesheet" type="text/css" href="http://www.heartinternet.co.uk/eu-cookie/main.css"/>
<script type="text/javascript" src="http://www.heartinternet.co.uk/eu-cookie/support-opt-in.js"></script>
But if I put my own domain the image don't show right.
jaffaman
10-21-2012, 07:59 PM
I had the same issue on the VB 4.2.0 version but when i used the image in post #22 (https://vborg.vbsupport.ru/showpost.php?p=2372781&postcount=22) with the cut out the triangle it worked fine.
TheSupportForum
10-21-2012, 09:39 PM
thanks for you help I have it working only if I don't change the first 2 lines of code
<link rel="stylesheet" type="text/css" href="http://www.heartinternet.co.uk/eu-cookie/main.css"/>
<script type="text/javascript" src="http://www.heartinternet.co.uk/eu-cookie/support-opt-in.js"></script>
But if I put my own domain the image don't show right.
did you edit the css and .js files to match the urls of the images ?
not many people know this much you will need to change the .css and .js files to match where the images are
drummaster
10-21-2012, 11:53 PM
yes i changed all the code to direct to my site
TheSupportForum
10-22-2012, 01:38 AM
yes i changed all the code to direct to my site
ok, so i think you shoudl uninstall the mod as its not needed and just try my method
it worked for 100%
Robru
10-23-2012, 09:27 AM
Update: V.1.10 Fixed *.png problem
FURONES
03-24-2015, 09:09 PM
I dont have "Header_head" in my "hook location" list
header_redirect its the same?
edit: dont working :(
FURONES
03-24-2015, 09:50 PM
Done.
Can i translate this to spainsh?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.