BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> Templates
  New Posts New Posts RSS Feed - Sensode Black and Cookie Banner
  FAQ FAQ  Forum Search   Register Register  Login Login

Sensode Black and Cookie Banner

 Post Reply Post Reply Page  123>
Author
Message
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Topic: Sensode Black and Cookie Banner
    Posted: Apr 08 2021 at 5:41pm
Hi, as per post on Cookie banner the free script provided by tarteaucitron works fine in creating the selection menu etc.

I do, however have a problem in the template with regards of the position of two you tube videos

To enable/disable the YouTube related cookies, the script requires me to:
1)  add by this code
<div class="youtube_player" videoID="video_id" width="width" height="height" theme="theme (dark | light)" rel="rel (1 | 0)" controls="controls (1 | 0)" showinfo="showinfo (1 | 0)" autoplay="autoplay (0 | 1)" mute="mute (0 | 1)"></div>

2) delete this code:
"<iframe width="width" height="height" src="//www.youtube.com/embed/video_id" frameborder="0" allowfullscreen></iframe>"

In my particular case, I had two videos, so in the corresponding section, the Source Code appeared as
Code Block visual (box) and when you clicked on it, it appeared as:
Code  Block video1 & Code Block Video 2, each of them with the corresponding video id

Everthing works fine (including the videos being operational or not depending on the cookie choice)... except the location of the videos. They now appear at the top of the section, completely out of place of where they should be:

What do I need to do to put back the videos in their place?






Edited by WattJet - Apr 09 2021 at 2:54pm
Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Apr 08 2021 at 8:27pm
The issue is solved now.
What I did was copy the script provided in a code visual object and place them where they should be.
Cookie banner -full compliant- works perfectly well (and to a complete noob in any IT programing related issues, it took me  only 2 hours with no assistance.- anyone with a bit of knowledge will take minutes to put it in place and if you have websites addressing EU, I strongly recommend to adopt a compliant cookie banner)
Cheers


Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Apr 08 2021 at 9:53pm
The pending issue is how to change languages.
The tarteaucitron script contains locales in 20+ languages.
I only need 7, but I have not found out how make work the  .js for each language with the "current language" feature in oe.

Any guidance will be more than welcome

Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6194
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Apr 09 2021 at 11:01am
In the code block enable each language and adapt the code




Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Apr 09 2021 at 3:32pm
Thanks for that Hobby001

I placed the "tarteaucitron" code in the base layer as recommended in the tutorial.
I then  tried to make it work in two ways:
a) Enabling the language in the "edition du code" window as you indicate but keeping the default language in the Base tab
b) Enabling the language in "edition du code" window changing the language also Base tab (in this part, there no choice enable/disable. I just changed the language to coincide in both windows

None of these operations worked.

I however checked the site in another laptop that has Spanish as Windows default language, and the cookie menus appeared on spanish.

Is there any way to make the language of the cookies change based on the language chosen in the website, regardless of the preferred language in windows?


Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6194
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Apr 09 2021 at 11:18pm
I will look after this tutorial when I get a minute
Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Apr 10 2021 at 9:38pm
Thanks so much Hobby001
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6194
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Apr 12 2021 at 1:34pm
Try installing it a different way on the english version of your base layer:

HTML code block, header

<script type="text/javascript" src="/tarteaucitron/tarteaucitron.js"></script>

javascript code block, header

tarteaucitron.init({
"privacyUrl": "your english policy", /* Privacy policy url */

"hashtag": "#tarteaucitron", /* Open the panel with this hashtag */
"cookieName": "tarteaucitron", /* Cookie name */

"orientation": "middle", /* Banner position (top - bottom) */

"groupServices": false, /* Group services by category */
                 
"showAlertSmall": false, /* Show the small banner on bottom right */
"cookieslist": false, /* Show the cookie list */
                 
"closePopup": false, /* Show a close X on the banner */

"showIcon": true, /* Show cookie icon to manage cookies */
//"iconSrc": "", /* Optionnal: URL or base64 encoded image */
"iconPosition": "BottomRight", /* BottomRight, BottomLeft, TopRight and TopLeft */

"adblocker": false, /* Show a Warning if an adblocker is detected */
                 
"DenyAllCta" : true, /* Show the deny all button */
"AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
"highPrivacy": true, /* HIGHLY RECOMMANDED Disable auto consent */
                 
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */

"removeCredit": false, /* Remove credit link */
"moreInfoLink": true, /* Show more info link */

"useExternalCss": false, /* If false, the tarteaucitron.css file will be loaded */
"useExternalJs": false, /* If false, the tarteaucitron.js file will be loaded */

//"cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */
                
"readmoreLink": "", /* Change the default readmore link */

"mandatory": true, /* Show a message about mandatory cookies */
});

Then enable french language in the javascript code block and change the link

tarteaucitron.init({
"privacyUrl": "your french policy", /* Privacy policy url */

"hashtag": "#tarteaucitron", /* Open the panel with this hashtag */
"cookieName": "tarteaucitron", /* Cookie name */

"orientation": "middle", /* Banner position (top - bottom) */

"groupServices": false, /* Group services by category */
                 
"showAlertSmall": false, /* Show the small banner on bottom right */
"cookieslist": false, /* Show the cookie list */
                 
"closePopup": false, /* Show a close X on the banner */

"showIcon": true, /* Show cookie icon to manage cookies */
//"iconSrc": "", /* Optionnal: URL or base64 encoded image */
"iconPosition": "BottomRight", /* BottomRight, BottomLeft, TopRight and TopLeft */

"adblocker": false, /* Show a Warning if an adblocker is detected */
                 
"DenyAllCta" : true, /* Show the deny all button */
"AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
"highPrivacy": true, /* HIGHLY RECOMMANDED Disable auto consent */
                 
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */

"removeCredit": false, /* Remove credit link */
"moreInfoLink": true, /* Show more info link */

"useExternalCss": false, /* If false, the tarteaucitron.css file will be loaded */
"useExternalJs": false, /* If false, the tarteaucitron.js file will be loaded */

//"cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */
                
"readmoreLink": "", /* Change the default readmore link */

"mandatory": true, /* Show a message about mandatory cookies */
});
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6194
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Apr 12 2021 at 2:25pm
If this does not do it, the issue to solve is how to force language selection

Back to Top
WattJet View Drop Down
Senior Member
Senior Member
Avatar

Joined: Jan 04 2016
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote WattJet Quote  Post ReplyReply Direct Link To This Post Posted: Apr 12 2021 at 6:08pm
Thanks Hobby1
I'll give it a go and come back with the result (let's cross fingers)
Back to Top
 Post Reply Post Reply Page  123>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.