SSL Labs ScoreSecurityHeaders.io Score

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

Content - YouTube (No Cookies)

More
5 months 1 week ago #1008 by michael
michael created the topic: Content - YouTube (No Cookies)
Content - YouTube (No Cookies) {arslatest release Content - YouTube (No...

Content - YouTube (No Cookies)

Overview

Content - YouTube (No Cookies) is a YouTube embed plugin, utilizing the cookie-less domain offered by YouTube. This plugin implements ALL available features of YouTube iframe embeds.

This plugin uses {ytnc} tags to identify videos to embed. It can be optionally configured to detect links to YouTube videos, but this is not as easy to use as the display configuration options must be included in the URL. This plugin is also capable of embedding using a process called Lazy Loading, where the video thumbnail and a play button is displayed, and when clicked - the video is loaded. This greatly reduces page load times, but requires users to click twice to play a video.

Installation

  1. Download Content - YouTube (No Cookies) from the RicheyWeb download page.
    • This page will remain unlinked, as the link may change in the future. Visit http://www.richeyweb.com and use the search feature - search for "Content - YouTube (No Cookies)".
  2. In Joomla /administrator, go to the "Extensions" menu, the "Manage" sub-menu, and the "Install" sub-menu.
  3. Select the "Upload Package File" tab
  4. Press the "Choose File" button to browse your system and locate the plugin file you downloaded
  5. Press the "Upload & Install" button

At this point, the extension is installed but not enabled. You can find the plugin by going to the Extensions menu and selecting "Plugins". When in the plugin manager, search for "Content - YouTube (No Cookies)".

Configuration

Defaults

The Defaults tab holds 21 configurations that control the video iframe. Each item has a mouseover tooltip that gives a brief description of the function of that item, and the label is a link to the YouTube documentation for the item. Many items depend on each other, and enabling one item may prevent another from operating as expected.

When set to something other than the plugin default, these items alter the way ALL embeds behave on the site. A sort of global default setting. If you choose "autoplay" = Yes here, then all videos will autoplay unless overridden.

Advanced

The advanced tab allows you to enable additional functionality. The plugin CAN process all identified YouTube URLs, turning them into embeds.

Convert URLs

The following URL schemes are supported:

  • https://www.youtube.com/watch?v=abcdefg&21queryvars
  • https://youtube.com/watch?v=abcdefg&21queryvars
  • youtube.com/watch?v=abcdefg&21queryvars
  • https://www.youtube-nocookie.com/watch?v=abcdefg&21queryvars
  • https://youtu.be/abcdefg?21queryvars

Because of the number of possible query vars, I indicated their presence with "21queryvars"

LazyLoad

Lazy loading is a process where a placeholder image is used instead of the video. When the placeholder, is clicked - the video is loaded. This feature is very reliable, and greatly reduces page load times, especially with multiple videos.

LazyLoad Thumbnail

Choose the thumbnail quality to use for your lazyloaded videos. The availability of backgrounds depends on the quality of the video uploaded. default.jpg will always be available, but will also always look terrible. A good default is sddefault.jpg - and when you find a video that is missing that thumbnail, override it using the { ytnc} tag attribute lazyload_thumbnail="1.jpg" (or whatever background you find that works for you).

Overriding Defaults

The parameter hierarchy is this:

Defaults < URL query vars < ytnc tag attributes

For example, If your default autoplayvalue is Yes (1), and your video URL contains "autoplay=0", then the URL has overridden the default value and the embedded video will not play automatically.

Same scenario as above, but the URL is wrapped with { ytnc autoplay="1"}...{/ytnc}. The default is overridden by the URL, but the URL is overridden by the tag. The video will auto play.

HELP

Please post your questions in the forum, so other users can benefit from the troubleshooting steps used to resolve your problem.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #1239 by neilw
neilw replied the topic: Content - YouTube (No Cookies)
In the process of getting a UK website up to speed for GDPR and am now dealing with the embedded YT videos. Looks like your solution may be what they need to get this done.

Question: After they click the Play button for a YT video using your plugin, does Google then install cookies on the user's device? In other words, with GDPR/PECR are we going to have to warn people that if they click a video, they'll get cookies? Or does your plugin resolve that issue?

Thanks again for all your help on this project!

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #1240 by michael
michael replied the topic: Content - YouTube (No Cookies)
It does not set cookies. It embeds using the youtube-nocookie.com domain. If you already have youtube.com cookies, however, they will appear on the page - but they're not set by this plugin. You can test this using Chrome Incognito windows.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #1243 by neilw
neilw replied the topic: Content - YouTube (No Cookies)
Not being a cookie expert by a long shot (!), I am curious when I currently see the cookies for YouTube as is. As per the attached screen grabs from Firefox (Mac), the "cookies" are all from youtube-nocookie.com. Does that mean the embedded videos are okay as is? I'm not clear on exactly what the youtube-nocookie.com domain means in relationship to GDPR/PECR. Are these showing the same as what I would have after I install your plugin?

Again, thanks for your help. As you've said in some of your materials, this whole GDPR/PECR thing is tough for a very small company!

Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #1244 by neilw
neilw replied the topic: Content - YouTube (No Cookies)
Referencing the prior message, this is while I have your EU-Privacy plugin on and set to Cookies Declined on the site.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #1245 by michael
michael replied the topic: Content - YouTube (No Cookies)
The toughest part about GDPR and cookie consent is that the only cookies you can control are those from your own site because of the javascript "Same Origin" policy. Using the 3rd party configurations of my e-Privacy plugin, I can prevent 3rd party cookies by not loading those resources. Something like my youtube-nocookies plugin is at a disadvantage in that if a browser already has youtube cookies - they will appear, even if they aren't loaded from videos on my site. Just because I reference youtube, if I have a cookie from another video or another site, they appear. It's the nature of cookies.

If you have chrome installed, go to gdpr.richeyweb.com in a Chrome Incognito window (a private window, that doesn't bring cookies from other windows with it). You'll see that there are no cookies.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Kunena Forum