andy_b_1502 Posted June 3, 2012 Share Posted June 3, 2012 Hi everyone, There is a new law in the UK which everyone has to adhere to, this is to inform user's on websites for the use of cookies. I now need a simple pop area/box to show the user a little bit of information about this with "yes" and "no" buttons for them to use, making the popup disappear once one button has been selected. It's just needs to be simple and functional, i'm asking you guys to help me with this as i'm worried about any infringement i may cause by not having this, please help, many thanks! Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/ Share on other sites More sharing options...
Skewled Posted June 3, 2012 Share Posted June 3, 2012 http://www.portent.com/blog/design-dev/web-browser-cookie-law.htm This seems to be what you need. Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350881 Share on other sites More sharing options...
andy_b_1502 Posted June 3, 2012 Author Share Posted June 3, 2012 Thanks kadeous, i don't know why it's not popping up, do i have to do anything to test it out? iv'e copied and pasted the code where it tells me to? Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350890 Share on other sites More sharing options...
Skewled Posted June 3, 2012 Share Posted June 3, 2012 I didn't read the tutorial fully, I just skimmed over it. Looking now I see others had issues and the code never got updated, sorry about that... I'm looking now on Google at a few alternatives. Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350892 Share on other sites More sharing options...
Skewled Posted June 3, 2012 Share Posted June 3, 2012 http://www.daretothink.co.uk/blog/snippets/eu-cookie-law-script/ This one seems to do the trick, don't copy and paste all the code though. Just get the portions that are needed for your code to comply with the new law. Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350893 Share on other sites More sharing options...
andy_b_1502 Posted June 3, 2012 Author Share Posted June 3, 2012 Are these used like landing pages, instead of index.php? the second script on that site doesn't seem to have an "accept" button on upload/test Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350902 Share on other sites More sharing options...
Skewled Posted June 3, 2012 Share Posted June 3, 2012 The first one will display every time a user comes to the website. The 2nd one will display only once and store a cookie with the user's choice. Neither of them that I see use a landing page. If you want to do that you'd just have to redirect to the page depending on what the user chooses. If you test the 2nd one you have to clear your browser cache to test again or you won't see a pop up again once the cookie is stored. Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350907 Share on other sites More sharing options...
andy_b_1502 Posted June 3, 2012 Author Share Posted June 3, 2012 Okay thank you, it's on my homepage now, i cannot accept it or decline either? www.removalspace.com Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350909 Share on other sites More sharing options...
andy_b_1502 Posted June 3, 2012 Author Share Posted June 3, 2012 Sorry my bad, it works!! Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350911 Share on other sites More sharing options...
Skewled Posted June 3, 2012 Share Posted June 3, 2012 Yes you have to click accept mark as solved please... have a great day! Now you can further it by moving the div for that statement where you want in your CSS, but post that in the CSS help forum lol! Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350912 Share on other sites More sharing options...
andy_b_1502 Posted June 3, 2012 Author Share Posted June 3, 2012 Yes you have to click accept The only reason i said that is because the cursor doesn't change on hover? is there any way to change this? Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350931 Share on other sites More sharing options...
Skewled Posted June 3, 2012 Share Posted June 3, 2012 I don't have the script up anymore, but you can adjust the CSS for that and give it a different pointer.. See if a CSS novice in the CSS forum can give you info on that cheers mate! Quote Link to comment https://forums.phpfreaks.com/topic/263592-new-uk-cookie-laws/#findComment-1350932 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.