Page 1 of 1

youtube video in phoca download item

Posted: 06 Apr 2016, 18:20
by kostask33
Hello,
I use joomla 3.5 and phoca download component 3.1.1
I try to insert a youtube link in the Youtube Options, but nothing appear in the item details.
I have tried to put this video with <iframe> on description or feature or note, but when I save it the <iframe> disappear...
I am missing something?

Thank you very much for your answer.

PS. My site have "Let's encrypt" encryption

Re: youtube video in phoca download item

Posted: 08 Apr 2016, 19:51
by kostask33
Ok I have found the problem but I don't know the solution.
The problem is that I insert the youtube link in the Youtube Options with https: but then change to http:
In which file phoca download write the youtube url to correct it?

Re: youtube video in phoca download item

Posted: 12 Apr 2016, 14:42
by Jan
Hi, when you add some iframe, etc. to the description, there are rules like by articles, so the specific html tags need to be allowed.

E.g. in description of the file.
administrator\components\com_phocadownload\models\forms\phocadownloadfile.xml

Code: Select all

<field name="description" type="editor" buttons="true" hide="pagebreak,readmore" class="inputbox" label="COM_PHOCADOWNLOAD_FIELD_DESCRIPTION_LABEL" filter="safehtml" description="COM_PHOCADOWNLOAD_FIELD_DESCRIPTION_DESC" />
filter="safehtml" should be changed to filter="raw"

Youtube URL is set here:
administrator\components\com_phocadownload\libraries\phocadownload\render\layout.php

method: displayVideo

As you can see there, the http or https is handled there. :idea:

Jan