How to embed a YouTube video into an article in Joomla! 1.5
Written by Cory |
July 23, 2008
|
(0)
There are actually several ways to go about embedding a YouTube video into an article in Joomla! 1.5, but I have built a plugin that makes it dead simple. You can download the plugin here.
Here's how it works:
- Step 1: Download the plugin.
- Step 2: Install it.
- Step 3: Enable (publish) it.
- Step 4: Go to YouTube.com and find a video that you want to embed.
- Step 5: Copy the URL for that video from your browser bar.
- Step 6: Paste the URL into your content item.
- Repeat steps 4-6 for as many videos as you wish to embed.
That's all there is to it. Really. It's that simple. The plugin handles all the embedding code for you. I am releasing the plugin under the GNU/GPL, so feel free to use it on as many sites as you wish.
Special thanks to Simon Tiplady for helping me with the regular expressions in this plugin.
Example
Trackback(0)
Comments (57)
written by Luong Nam, July 31, 2008
where is "Paste the URL into your content item"? I dont see Content Item, please help me, i am newbie.
written by Chris Pfeiffer, August 04, 2008
youre a champ. cheers mate. love your work, been a huge help
written by jimmyoctane, August 31, 2008
Im with ash......is there a way to reduce the video size..(width/length)
thanks
Jimmy
thanks
Jimmy
written by Olivier Morin, September 03, 2008
Dear Cory
I love this site, it is by far the most useful I have ever found on such topics.
But I am unable to make the Youtube plugin work. I retraced all the steps but it still does not work.
Thank you anyway for everything that you do!
olivier
I love this site, it is by far the most useful I have ever found on such topics.
But I am unable to make the Youtube plugin work. I retraced all the steps but it still does not work.
Thank you anyway for everything that you do!
olivier
written by Braian, September 23, 2008
Dear Cory,
Thank you for your work, your plugin is exellent.
I have installed, is really a simple way that for me is exactly what I need.
The only "problem" is that the plugin works only with URL like:
http://www.youtube.com/watch?v=1unzN2zsA4k
but as you surely know youtube is now multilingual and multicountry. So I find out that your plugin doesn't work with URL like:
http://uk.youtube.com/watch?v=1unzN2zsA4k
or
http://it.youtube.com/watch?v=1unzN2zsA4k
Do u have any idea for fix it? I'm not a php programmer.. so for me is not so easy edit your plugin.
Thank you
Bye
Braian
Thank you for your work, your plugin is exellent.
I have installed, is really a simple way that for me is exactly what I need.
The only "problem" is that the plugin works only with URL like:
http://www.youtube.com/watch?v=1unzN2zsA4k
but as you surely know youtube is now multilingual and multicountry. So I find out that your plugin doesn't work with URL like:
http://uk.youtube.com/watch?v=1unzN2zsA4k
or
http://it.youtube.com/watch?v=1unzN2zsA4k
Do u have any idea for fix it? I'm not a php programmer.. so for me is not so easy edit your plugin.
Thank you
Bye
Braian
written by @RP!e, November 03, 2008
Hi Cory,
Many thanks about this great plug-in info.
I used it finally
@RP!e
Many thanks about this great plug-in info.
I used it finally
@RP!e
written by Computação Gráfica Brasil.com, December 19, 2008
You can chamge for example:
http://br.youtube.com/watch?v=...
To
http://www.youtube.com/watch?v=...
This don`t will cause nothing problem.
dear,
http://www.computacaograficabrasil.com
http://br.youtube.com/watch?v=...
To
http://www.youtube.com/watch?v=...
This don`t will cause nothing problem.
dear,
http://www.computacaograficabrasil.com
written by Matty Byloos, January 09, 2009
I've been looking for this how-to guide FOREVER!!! thanks so much for doing the legwork.
written by Greg Waddell, January 17, 2009
I just downloaded and installed the YouTube plugin and it works like a charm right out of the box. Thanks.
written by sapiterbang, January 26, 2009
wow, finally i found the great and the simplest to be used module in the world
many thanks
many thanks
written by Paul Brown, January 26, 2009
Hi Guys
Total newbie....
I downloaded file which had 2 files in it ( a zip and an xml)
I run 1.5.9 and see no way to install the plugin via plugin manager
How do I install
Thanks
Total newbie....
I downloaded file which had 2 files in it ( a zip and an xml)
I run 1.5.9 and see no way to install the plugin via plugin manager
How do I install
Thanks
written by Paul Brown, January 26, 2009
Thanks, that worked a treat.
Sorry to sound dumb. Now its installed and enabled, how do I use it. When I write a new article how do I embed vids?
Thanks
Sorry to sound dumb. Now its installed and enabled, how do I use it. When I write a new article how do I embed vids?
Thanks
written by Jasmine, February 28, 2009
The youtube videos will not stay in the places I put them when I publish the article. Instead they overlap with words and are off to the side somewhere.
written by bilc, March 04, 2009
What a wicked plugin, worked brilliantly first time, awesome work guys.
Cheers
Bilc
Cheers
Bilc
written by joejoe, March 09, 2009
i did everything like the steps as dscribed but all i see in front end is the URL link i just put in the backend????
written by joejoe, March 09, 2009
ok i got it now, the only other questions is how do i make the video size (display on my site) smaller?
written by joejoe, March 09, 2009
Thanks for the qucik reply Cory. How do i do this? is it simple to do? because i dont know much about codding?
written by joejoe, March 09, 2009
i dont know if i read this on here or some where else, i have a ecommerece site with Joomla and Virtuemart, there is no way to play the videos on that particular products page?
written by joejoe, March 09, 2009
cory one more thing please, i read it up there but didnt understand it, on my front page its showing double window/double video? and i did copy the link from my youtube URL
written by joejoe, March 09, 2009
no i didnt, you can check the second window is another plugin im testing and the two next to each other is this plugin. esurveillanceshop.com
written by Skiffie, March 11, 2009
I'm having trouble installing this plugin. I have Joomla 1.0.15 installed and for the installers, I have installer options for components, modules and mambots. I've tried all of these options but I get the error message "ERROR: Could not find a Joomla! XML setup file in the package."
written by Craig Watkins, March 15, 2009
Long time no see!
Perfect for what I was trying to do.
ALWAYS come to this site when you need answers for Joomla. Invaluable resource. Changes are Cory will have already dealt with whatever you have going on and have an answer or he will get you one!
Many thanks.
Craig
Perfect for what I was trying to do.
ALWAYS come to this site when you need answers for Joomla. Invaluable resource. Changes are Cory will have already dealt with whatever you have going on and have an answer or he will get you one!
Many thanks.
Craig

written by Thomas, April 11, 2009
Very nice plugin. Does the trick. Works quite well with Joomla! 1.5.9 and the WYSIWYG Editor by Joomlapolis.
written by Mark, April 15, 2009
Great plugin by the way! Its worked awesome the first time.
Any idea on how to prevent the viewer from selecting a related video once the clip completes?
I don't want the viewers watching other peoples videos on my site.
Much Appreciation,
Mark
Any idea on how to prevent the viewer from selecting a related video once the clip completes?
I don't want the viewers watching other peoples videos on my site.
Much Appreciation,
Mark

written by Michael O'Sullivan, April 17, 2009
need help - where to paste url? Into body of article? If i do url itself shows not video. Into a module? Would love to get this working
Thanks
Thanks
written by kamran, April 24, 2009
Hi!
After Installing when I enable the plugin and go to my homepage I get this error: "Warning: Missing argument 3 for plgContentYoutubeEmbed:
nPrepareContent() in /plugins/content/youtubeembed.php on line 41"
Please tell me what to do?????
After Installing when I enable the plugin and go to my homepage I get this error: "Warning: Missing argument 3 for plgContentYoutubeEmbed:
nPrepareContent() in /plugins/content/youtubeembed.php on line 41" Please tell me what to do?????
written by benmetevier, April 24, 2009
when i post the url into the article all i get on the front end is the url.
i downloaded and installed exactly how you said.
please help
thanks
i downloaded and installed exactly how you said.
please help
thanks
written by Mikkel Moldrup-Lakjer, May 05, 2009
I think the instruction which is missing is: you should not paste the url within the article, but click the movie button in the menu bar and paste the url in the pop up window...
written by Dr Paul, May 06, 2009
I thought this was incredibly simple and great straight off (while looking at FIrefox), but then it appears to break the site in INternet Explorer
wassup?
wassup?
written by alp, May 13, 2009
I cannot install the package on my extension manager. Here is the error message I get:
* JFolder::create: Infinite loop detected
* JFTP::store: Bad response
* Warning! Failed to move file.
Any suggestion? Thanks.
* JFolder::create: Infinite loop detected
* JFTP::store: Bad response
* Warning! Failed to move file.
Any suggestion? Thanks.
written by alp, May 13, 2009
Thanks a lot Cori,
Do you think I might be using an incompatible version (mine is 1.5.9)? Or is there a possibility that my programme is restricted for new uploads by the seller?
I really need to sort it out. Any suggestion to help me out would be much appreciated.
Thanks a lot!
Do you think I might be using an incompatible version (mine is 1.5.9)? Or is there a possibility that my programme is restricted for new uploads by the seller?
I really need to sort it out. Any suggestion to help me out would be much appreciated.
Thanks a lot!
written by Edi, May 14, 2009
thabks worked smoothly...
Can it be modified so that it will not show related videos after the video?
Can it be modified so that it will not show related videos after the video?
written by Abid, June 01, 2009
it does not work while paste the url in article even follow all steps mention above. it simply show the text of url
written by kellie, June 05, 2009
Hi All
This pluggin is really nice. It worked just fine.
I even change the size of the video to make it bigger.
Now my only problem is, I can get it to AUTOPLAY. Do you how?
Thanks a lot
kellie
This pluggin is really nice. It worked just fine.
I even change the size of the video to make it bigger.
Now my only problem is, I can get it to AUTOPLAY. Do you how?
Thanks a lot
kellie
written by kellie, June 05, 2009
Hi
My other video that I need to put in joomla is on google.
How to make it work?
Thanks a lot
My other video that I need to put in joomla is on google.
How to make it work?
Thanks a lot
written by MacMonir, June 11, 2009
hello all,
the plugin is fine but i use category layout at that time the article having the video does not show the video in the front page but shows in details page. Please help about this.
the plugin is fine but i use category layout at that time the article having the video does not show the video in the front page but shows in details page. Please help about this.
written by Staude, June 20, 2009
Hello. I'm a pretty big noob to Joomla but i've been trying to install .. well this is the 5th youtube plugin on my website and every time I try to install it i get a "invalid checksum" error.
I've tried both by uploading to ftp and by asking it to install it directly. The way that i've been trying to install it is by going into my admin area / installers / mambots. (i've also tried modules and components) and then well chosen upload in most cases and directed it to .. well i've tried every single file in the directories.
I have joomla 1.0.15 so it should work right ? I mean that is 1.5 ? That might just be a presumption. But i've tried several plugins now and it should seem weird that not one of them works so I must be doing something terribly wrong. If someone could help me i'd appreciate it.
I've tried both by uploading to ftp and by asking it to install it directly. The way that i've been trying to install it is by going into my admin area / installers / mambots. (i've also tried modules and components) and then well chosen upload in most cases and directed it to .. well i've tried every single file in the directories.
I have joomla 1.0.15 so it should work right ? I mean that is 1.5 ? That might just be a presumption. But i've tried several plugins now and it should seem weird that not one of them works so I must be doing something terribly wrong. If someone could help me i'd appreciate it.
Write comment
Join the HowToJoomla Community!
- Create a profile
- Connect with other members
of the community - All for FREE
Already a member? Login here.



Here's a link:
http://www.co.douglas.ne.us/county/cards/youtube
The only thing I've pasted into the article is the link. I then created a menu item as well.