News Feed E-mail

Get How-To's right in your inbox. Subscribe to the HowToJoomla! news feed e-mail. Just enter your email address here:

Delivered by FeedBurner

Login






Lost Password?
No account yet? Register

Affiliates

Azrul's JomComment
JoomlaShack
iJoomla
The Joomla! Store
Member of W3C Sites dot com
How to embed a YouTube video into an article in Joomla! 1.5 PDF Print E-mail
Written by Cory   
Wednesday, 23 July 2008

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.

Trackback(0)
Comments (9)add comment
Theresa: ...
Cory: I downloaded and installed the plug-in, then created the article and pasted in the You Tube URL -- no problem. But now the video is repeating itself. Why?

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.
1

report abuse
vote down
vote up
July 24, 2008
Votes: +0
It looks like you generated an "a rel="nofollow" href=" link to the video. The plugin took the URL within that link twice and embedded the video twice. You just need to paste the URL. You do not need to make a link to the video.

Make sure your WYSIWYG editor is not automatically turning the URL into a link.
2

report abuse
vote down
vote up
July 24, 2008
Votes: +0
Luong Nam: ...
where is "Paste the URL into your content item"? I dont see Content Item, please help me, i am newbie.
3

report abuse
vote down
vote up
July 30, 2008
Votes: +0
Chris Pfeiffer: ...
youre a champ. cheers mate. love your work, been a huge help smilies/wink.gif
4

report abuse
vote down
vote up
August 04, 2008
Votes: +0
hi would you know how i could change the size?
5

report abuse
vote down
vote up
August 05, 2008
Votes: +0
Im with ash......is there a way to reduce the video size..(width/length)

thanks
Jimmy
6

report abuse
vote down
vote up
August 30, 2008
Votes: +0
nevermind
just use



7

report abuse
vote down
vote up
August 30, 2008
Votes: +0
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
8

report abuse
vote down
vote up
September 03, 2008
Votes: +0
Braian: ...
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
9

report abuse
vote down
vote up
September 23, 2008
Votes: +0

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

busy
 
Tag it:
Delicious
Digg
Technorati
Next >
iJoomla

About HowToJoomla

HowToJoomla was started in September 2006 by me, Cory Webb, a long-time Mambo/Joomla user with a desire to give back to the community that has given so much to him.

HowToJoomla is not the best, most comprehensive Joomla tips site out there. That's not the goal. The goal is to share some of the knowledge and experience that I have gained through years of using the world's best content managment system. I hope that you will find this site useful and visit often. As I come across new tips and ideas, I will post them here for all to see.

I hope you enjoy using HowToJoomla and find it very useful.

Please take some time to read the Disclaimer.

Thanks for visiting!

About Me

I am a 29-year-old husband and father of a beautiful baby girl named Lucy. I have a degree in Electrical Engineering from the University of Texas at Austin, an MBA from Baylor University, and over 4 years experience working with the Mambo/Joomla CMS.

On February 1, 2008, I started a web design, development, and consulting company specializing in designing and developing custom Joomla-powered websites. The new company is aptly named Cory Webb Media, LLC. The double meaning is purely unintentional, but with a last name like "Webb" it is difficult to escape the obvious puns. If you are looking for professional assistance with your website, please feel free to contact me to discuss your project.

I also run HowToJoomla, CoryWebb.com (my personal website/blog), and JoomlaForm.com (a site dedicated to promoting good design in the Joomla! community). In my spare time (if there is such a thing), I volunteer with the youth ministry at my church.

Copyright © 2006 - Cory Webb Media, LLC - All rights reserved.
Powered by Joomla! | Hosted by Eleven2
The Joomla!® name is used under a limited license from Open Source Matters the worldwide trademark holder.