Page 1 of 1
Embedding a YouTube clip with Phoca Download Joomla 1.6
Posted: 08 Jun 2011, 23:40
by eheller
Hi, I'm having a hard time figuring out how to embed a YouTube clip with Phoca Download on Joomla 1.6.
I have seen this page (
https://www.phoca.cz/documents/51-phoca- ... oad-plugin) but I don't understand where to put the code.
For example, I create a new file under the Phoca Download Component menu and enter the folllowing code into the description window:
Code: Select all
{phocadownload view=youtube|url=http://www.youtube.com/watch?v=ha5gaCdulak}
When I save and browse to the article and click the link, I get an "Error while downloading file (Mime Type not found) message." I also don't understand what to put in the required "Filename" field, because when I browse for a file there is nothing like a "Embed YouTube" option....Clearly doing something wrong.
I've been looking for a guide to using YouTube with Phoca but have not had much luck.
Thanks,
Eric
Re: Embedding a YouTube clip with Phoca Download Joomla 1.6
Posted: 10 Jun 2011, 11:24
by SonRiab
You do not have to create a new file for a youtube video.
Just add this code to a new article body and save it. See:

Backend - Article Manager

Frontend - Article
That's all.
But if you want to link a download/category available by the PD component then you have to create it there first.
Hope this makes it clearer for you how to handle the plugin.
King regards!
Re: Embedding a YouTube clip with Phoca Download Joomla 1.6
Posted: 10 Jun 2011, 16:26
by eheller
SonRiab - thanks a ton for the reply. Some odd things - no matter what I do I keep getting <p></p> tags around the phoca code when it's saved. I have changed the Super User filtering to "no filters' and I can currently embed YouTube directly outside of Phoca without it being stripped. Would love any ideas there.
Also:
But if you want to link a download/category available by the PD component then you have to create it there first.
But when I create the YouTube video in an article, how then do you link that to a Phoca category? The only categories available to the Menu item are the "standard" (i.e., non-Phoca created) categories. I'm trying to add a menu item to Phoca categories of files, but not sure how to connect the article back to Phoca if it was not created there?
Appreciate this tremendously!
Eric
Re: Embedding a YouTube clip with Phoca Download Joomla 1.6
Posted: 10 Jun 2011, 21:50
by SonRiab

Backend using CodeMirror as Editor

Frontend
TinyMCE and most other visual editors will surround all lines with the specified tag if nothing else surround it.
Most of them are using p- or div-tags. I am not sure if you can disable it somewhere for the TinyMCE.
If you are a little bit familiar with HTML you can use CodeMirror which does not modify your text.
Re: Embedding a YouTube clip with Phoca Download Joomla 1.6
Posted: 10 Jun 2011, 23:15
by eheller
SonRiab, this is above and beyond. Thanks.
I was able to remove the automatic paragraph tags in the JCE plugin; but no luck.
Switched to CodeWarrior - thanks - but no luck.
Backend looks like this:
Front end article looks like this:
It could be a setting somewhere is precluding it from playing. Either way this was a very enlightening conversation in general and thanks for the efforts.
Eric
Re: Embedding a YouTube clip with Phoca Download Joomla 1.6
Posted: 11 Jun 2011, 01:40
by SonRiab
Do you have enabled the plugin?
See Extensions->Plug-in Manager and search for the Phoca Download Plugin!
If not enable it and have fun!

Re: Embedding a YouTube clip with Phoca Download Joomla 1.6
Posted: 13 Jun 2011, 17:33
by eheller
Well what do you know about that - no plugin, just the component installed! Have installed the plugin and activated it and bingo.
It works as advertised.
Many thanks for the patient help here!
Eric
Re: Embedding a YouTube clip with Phoca Download Joomla 1.6
Posted: 13 Jun 2011, 20:40
by SonRiab
My pleasure!
