youtube video in phoca download item

Phoca Download - download manager
kostask33
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Apr 2016, 18:05

youtube video in phoca download item

Post 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
kostask33
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Apr 2016, 18:05

Re: youtube video in phoca download item

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48553
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: youtube video in phoca download item

Post 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
If you find Phoca extensions useful, please support the project
Post Reply