Kunena 6.3.5 released

The Kunena team has announce the arrival of Kunena 6.3.5 [K 6.3.5] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

Solved Integrate YouTube Videos with privacy mode

More
6 years 3 months ago - 6 years 3 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: 6 years 3 months ago by proterra.

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

More
6 years 3 months ago - 6 years 3 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: 6 years 3 months ago by proterra.

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

More
6 years 3 months ago - 6 years 3 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: 6 years 3 months ago by proterra.

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

Time to create page: 0.449 seconds