Kunena 6.2.6 released

The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Solved Integrate YouTube Videos with privacy mode

More
5 years 10 months ago - 5 years 10 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:
Code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/ID" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

to:
Code:
<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: 5 years 10 months ago by proterra.

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

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

/libraries/kunena/bbcode

Line 180
Code:
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: 5 years 10 months ago by proterra.

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

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

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

Change here the code:

/libraries/kunena/bbcode

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

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

Time to create page: 0.335 seconds