(SOLVED) How to embed a Youtube video into an FAQ article?

Moderator: crythias

Locked
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

(SOLVED) How to embed a Youtube video into an FAQ article?

Post by bayerex »

Hi all,

How can I embed a Youtube video into an FAQ article? When I enter such a source tag it doesn't work. Only a black frame is displayed.

<iframe width="420" height="315" src="//www.youtube-nocookie.com/embed/n5oWpJ8q6oc" frameborder="0" allowfullscreen></iframe>

Would really appreciate a solution
Last edited by bayerex on 18 Nov 2014, 15:56, edited 1 time in total.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: How to embed a Youtube video into an FAQ article?

Post by bayerex »

Anyone got any advise for me on this one?
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to embed a Youtube video into an FAQ article?

Post by crythias »

no, but probably because iframe is not good for embedding. I'd probably link it and employ a javascript handler to provide a popover.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: How to embed a Youtube video into an FAQ article?

Post by bayerex »

I changed line 204 in file Kernel/Output/HTML/Standard/AgentFAQZoom.dtl and removed: sandbox="allow-same-origin allow-popups" from iframe tag.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by jojo »

you should not do this. It is a security setting!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by bayerex »

only myself edits the FAQ. Does that still pose a security problem?
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by jojo »

yes
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by crythias »

It's a security issue because it allows popups from *any* source.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
nanotowers
Znuny expert
Posts: 204
Joined: 19 Aug 2014, 17:27
Znuny Version: 3.1.18
Real Name: Vlad
Location: Bogotá (Colombia)
Contact:

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by nanotowers »

hi Bayerex you could try this HTML code:

<div class="ArticleFAQContent">
<div class="message">
<iframe allowfullscreen="" frameborder="0" height="486" marginheight="0" marginwidth="0" scrolling="no" src="https://www.youtube-nocookie.com/embed/n5oWpJ8q6oc" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" width="597"></iframe></div>
</div>
OTRS: 3.1.18, OTRS::ITSM 3.1.10
Apache2/MySQL 5+

NanoTowerS
"Try not to become a man of success, but rather try to become a man of value." - Albert Einstein
nanotowers
Znuny expert
Posts: 204
Joined: 19 Aug 2014, 17:27
Znuny Version: 3.1.18
Real Name: Vlad
Location: Bogotá (Colombia)
Contact:

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by nanotowers »

Work For me :)
You do not have the required permissions to view the files attached to this post.
OTRS: 3.1.18, OTRS::ITSM 3.1.10
Apache2/MySQL 5+

NanoTowerS
"Try not to become a man of success, but rather try to become a man of value." - Albert Einstein
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by bayerex »

crythias wrote:It's a security issue because it allows popups from *any* source.
But the only possible "source" in this case can be Youtube, right?
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by bayerex »

Hi nanotowers,

I tried your source on a test instance that hasn't been changed but it doesn't work for me. Infact, upon saving it the source gets completely removed. Any ideas why?
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
nanotowers
Znuny expert
Posts: 204
Joined: 19 Aug 2014, 17:27
Znuny Version: 3.1.18
Real Name: Vlad
Location: Bogotá (Colombia)
Contact:

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by nanotowers »

this is my complete code.


<ul>
<li class="Customer Visible">
<div class="MessageHeader">
<h3>
Descripci&oacute;n:</h3>
<div class="Clear">
&nbsp;</div>
</div>
<div class="ArticleFAQContent">
<div class="message">
<iframe allowfullscreen="" frameborder="0" height="486" marginheight="0" marginwidth="0" scrolling="no" src="https://www.youtube-nocookie.com/embed/n5oWpJ8q6oc" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" width="597"></iframe></div>
</div>
</li>
</ul>
<br />
OTRS: 3.1.18, OTRS::ITSM 3.1.10
Apache2/MySQL 5+

NanoTowerS
"Try not to become a man of success, but rather try to become a man of value." - Albert Einstein
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: (SOLVED) How to embed a Youtube video into an FAQ articl

Post by crythias »

bayerex wrote:
crythias wrote:It's a security issue because it allows popups from *any* source.
But the only possible "source" in this case can be Youtube, right?
The problem is daisy chaining. Even if you only linked to one external site, anything that site provides via third party is allowed as well.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked