Skip to main content

Complianz & FluentCommunity integration

Hi there, somewhere I read about integration between Complianz & FluentCommunity because Cookie banner from Complianz is not working anywhere on FC pages. Just wanted to check it by myself and find out the status where it is now. I hope that FC dev team will make this integration possible soon. In EU it would be big problem run site without Cookie banner because of GDPR laws.

Complianz & FluentCommunity integration

+1

Jonathan Gwyer

I remember an old post that mentioned https://en-gb.wordpress.org/plugins/real-cookie-banner/ works with FC. I haven't tried it myself as we try to make sure we don't use anything other than functional cookies on the community side.

https://community.wpmanageninja.com/portal/space/community-meta/post/cookies-in-fluent-community

Claudy Scoufy

I use CookiesYes and I have added three scripts for:

  • Displaying the banner on the community.
  • Opening the preferences panel so users can change their choice regarding YouTube videos when they click the banner blocking playback.
  • Repositioning the cookies button so it appears higher on the right.

Scripts used:

<script>
(function() {
    // Charge CookieYes
    var cy = document.createElement('script');
    cy.src = 'https://cdn-cookieyes.com/client_data/3f4e380xxxxxxxxxxxxxxxxx/script.js';
    cy.type = 'text/javascript';
    cy.async = true;
    cy.defer = true;
    document.head.appendChild(cy);

    document.addEventListener('DOMContentLoaded', function() {
        if (typeof CookieYes !== 'undefined' && CookieYes.init) {
            CookieYes.init();
        }

        // Iframes
        document.querySelectorAll('iframe').forEach(function(iframe) {
            const src = iframe.getAttribute('src');
            if (!src) return;

            const isThird = /youtube.com|vimeo.com|player.vimeo.com/.test(src);
            if (isThird) {
                const c1 = window.cookieyes?.getConsent?.('fonctionnel');
                const c2 = window.cookieyes?.getConsent?.('analytique');
                const c3 = window.cookieyes?.getConsent?.('publicitΓ©');

                if (!c1 && !c2 && !c3) {
                    const ph = document.createElement('div');
                    ph.style.cssText = 'width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f0f0f0;color:#333;font-size:14px;text-align:center;padding:20px;box-sizing:border-box;';
                    ph.innerText = 'Vous devez accepter les cookies tiers pour lire ce mΓ©dia.';
                    iframe.parentNode.replaceChild(ph, iframe);
                }
            }
        });

        // Bouton repositionnΓ©
        var btn = document.querySelector('.cky-revisit-bottom-right');
        if (btn) {
            btn.style.right = '20px';
            btn.style.bottom = '45px';
        }
    });
})();
</script>

This has been tested only by me so far, and only on a single YouTube video...

Drive Zone

Still not solved...