Show Likes

This section allows you to view all posts where this member received or gave a like to.

1
Off-topic / Re : Fuck Trolls.
Nao « on June 12th, 2012, 10:43 PM »
Quote from oOo--STAR--oOo on June 12th, 2012, 10:28 PM
Who is the troll now ???
Telling the truth is not trolling. Hello!

You just got yourself a post-ban. And I'm being nice.
2
The Pub / Re: The Cookie Law (in the UK at least)
markham « on April 24th, 2012, 06:55 AM »
Quote from oOo--STAR--oOo on April 23rd, 2012, 10:18 AM
I suppose for google analytic's you could also just put this before it in the head.
   
Code: [Select]
if (!ecl_authorized_cookies())
If you're using the GA Mod available on SMF, then you'll need to modify the function ob_google_analytics($buffer) in subs.php to this
Code: [Select]
// Google Analytics Integration
function ob_google_analytics($buffer)
{
    global $modSettings, $boardurl;

    if (ecl_authorized_cookies())
    {
            /*
            if (!empty($modSettings['googleAnalyticsCode']) && !isset($_REQUEST['xml'])) {
            $google_code = '
            <script type="text/javascript"><!-- // -->' . chr(60) . '![CDATA[' . '
            var _gaq = _gaq || [];
            _gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
            _gaq.push([\'_trackPageview\']);

            (function() {
            var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
            ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\')   \'.google-analytics.com/ga.js\';
            var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
            })();
            // ]]' . chr(62) . '</script>';
            */
            // add in the analytics code at the very end of the head section
            $buffer = substr_replace($buffer, $google_code . "\n" . '</head>', stripos($buffer,
                '</head>'), 7);
        }
    }
    // All done
    return $buffer;
}
You can use "if (!ecl_authorized_cookies()) return $buffer;" if you prefer ;) I personally prefer positive tests to negative ones.
Quote
Also reading a lot of discussion about it. It does seem like these big company's might not be taking this serious.
Those hosting within the EU will have to or they will find themselves "targets of choice" by enforcers such as the ICO.
Quote
Maybe its my hoping in chance that it will get challenged and thrown out.
It's been on our statute books for 11 months and hasn't been challenged so far - as far as I know.
Quote
I mean who wants to be throwing alerts at people to accept, lol..
I'm not saying I don't agree with the new law, but I certainly think its should be looked at again and properly, probably in my favour LOL.
It means a (hopefully) one-time extra mouse-click to enter sites, not exactly taxing even for the most technology-challenged of users is it? I agree that it could become a bit tiresome but that's a price to pay if we want to protect our privacy.
Quote
Edit: I would just like to add.. The cookie that is set from the mod is only supposed to last for that "session" I don't think there is a need to keep throwing it at the users face every time they revisit.
If my understanding is correct, they only have to agree to it once.
The authorisation cookie should be persistent on all except shared computers and I've modified Emanuele's code to reflect most of that. I can't deal with the shared computer aspect since there's no way of knowing about that. His code does this:
Code: [Select]
        setcookie('ecl_auth', 1, 0, '/');
which simply sets a session cookie that should be removed when the browser window closes. I've changed it to this:
Code: [Select]
        setcookie('ecl_auth', 'EU Cookie Law - LiPF cookies authorised- ' . strftime('%d-%b-%Y %H.%M.%S', time()), time()   189345600, '/');  // Set a 6 year cookie, the same as a "Forever" cookie in SMF
which sets a persistent (6 year) cookie and whose "text" tells the user the nature of the cookie and exactly when it was set - milliseconds after he agreed to cookies.[1]
 1. That information string contains HTML entities and I'm not sure if (a) that is safe and (b) how to overcome it.