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
youtube video in phoca download item
-
- Phoca Newbie
- Posts: 2
- Joined: 06 Apr 2016, 18:05
Re: youtube video in phoca download item
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?
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?
- Jan
- Phoca Hero
- Posts: 48551
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: youtube video in phoca download item
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
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.
Jan
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" />
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.

Jan
If you find Phoca extensions useful, please support the project