×
Blue Eagle 5 v1.6.2 has been Released for Kunena 5.2 (Yesterday)

The Kunena team has announce the arrival of Kunena template Blue Eagle 5 v1.6.2 which is now available for download. This version addresses most of the issues that were discovered in development.

REQUIREMENTS
Blue Eagle 1.6.x requires Kunena 5.2.x to work with

Solved Integrate YouTube Videos with privacy mode

More
2 years 7 months ago - 2 years 7 months ago #1 by proterra
Hi,

how I can integrate the Youtube Videos with the privacy mode?

I Think it´s only change the link, in the embedded form from:
<iframe width="560" height="315" src="https://www.youtube.com/embed/ID" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

to:
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/ID" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

But how?
Last edit: 2 years 7 months ago by proterra.

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

More
2 years 7 months ago - 2 years 7 months ago #2 by proterra
Ok, change the code in

/libraries/kunena/bbcode

Line 180
if ($uri->isSSL())
				{
					return '<div class="embed-responsive embed-responsive-16by9"><iframe width="425" height="344" src="https://www.youtube-nocookie.com/embed/' . urlencode($video) . '" frameborder="0" allowfullscreen></iframe></div>';
				}
				else
				{
					return '<div class="embed-responsive embed-responsive-16by9"><iframe width="425" height="344" src="https://www.youtube-nocookie.com/embed/' . urlencode($video) . '" frameborder="0" allowfullscreen></iframe></div>';
				}

But this runs only for future YouTube links not for the Links that posted in the past.

Any idea?
Last edit: 2 years 7 months ago by proterra.

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

More
2 years 7 months ago - 2 years 7 months ago #3 by proterra
Ok, found and solve the problem.

If the link is posted with the
[video]
tag, then the privacy didn´t runs.

Change here the code:

/libraries/kunena/bbcode

Line 1965
'youtube' => array('iframe', 425, 355, 0, 0, 'https://www.youtube-nocookie.com/embed/%vcode%', '\/watch\?v=([\w\-]*)', array(array(6, 'wmode', 'transparent'))),
Last edit: 2 years 7 months ago by proterra.

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.118 seconds