×
Blue Eagle (1.5.0) for K5.1 is released (Today)

Please update the Kunena Blue Eagle to 1.5.0 if you use Kunena 5.1.
We made several bug fixes and improvements. Also Blue Eagle has now all the features from Crypsis.
Download: www.kunena.org/download/templates/category/blue-eagle-5

Solved Integrate YouTube Videos with privacy mode

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

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

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

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

More
1 month 4 days ago - 1 month 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: 1 month 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.076 seconds