×
Kunena 5.1.3 Released (19 Aug 2018)

The Kunena team has announce the arrival of Kunena 5.1.3 [K 5.1.3] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a maintenance release.

Solved Integrate YouTube Videos with privacy mode

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

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

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

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

More
3 months 4 days ago - 3 months 4 days 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: 3 months 4 days 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 add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.231 seconds