How to embed YouTube

How to embed YouTube

Postby HammockGuy » March 3rd, 2009, 7:26 pm

If you wish to include a YouTube vid for us, it's rather simple. First get the URL. As an example, here's the URL for the tuk tuk ride from Hotel Laksh to Dr. Patel's clinic:

http://www.youtube.com/watch?v=nnu5umV5kmE

Take just the part after the equals sign (=) and sandwich it like this:

Code: Select all
[youtube]nnu5umV5kmE[/youtube]


Leaving you with this result:



If you wish to center it, simply add this:

Code: Select all
[center][youtube]nnu5umV5kmE[/youtube][/center]


Leaving you with this result:



Pretty easy, huh? And to make it even easier, the YouTube and Center buttons are above when composing or editing your post ;) . Thanks Mix!
Four cycles with Dr. Nayana Patel, with the first and fourth giving us two beautiful, healthy baby girls! Persistence and determination are often rewarded, so stay the course...
User avatar
HammockGuy
Father of 2 girls - Thanks Dr. Patel!
 
Posts: 155
Joined: February 22nd, 2009, 9:15 pm
Location: USA

YouTube

Postby mick » March 5th, 2009, 4:37 am

Morning HG,

Just having a mooch round.

Any particular reason you are using the full youtube url? I was under the impression this causes problems if different country youtube sites are used?

I have always used the following:
Code: Select all
[youtube]{SIMPLETEXT}[/youtube]

HTML Replacement:
Code: Select all
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

With the above you only have to use the part after the "=" like:

Code: Select all
[youtube]nnu5umV5kmE[/youtube]
Image

On the box it said "requires Microsoft XP or better" so I installed Linux
User avatar
mick
Support
 
Posts: 1
Joined: March 1st, 2009, 10:57 am

Re: How to embed YouTube

Postby HammockGuy » March 5th, 2009, 6:55 pm

Mix, I made the code changes in the Admin Control Panel (ACP), and it works like a charm. I updated the first post accordingly. Thank you for helping make YouTube work for all of us! Your assistance is much appreciated.
Four cycles with Dr. Nayana Patel, with the first and fourth giving us two beautiful, healthy baby girls! Persistence and determination are often rewarded, so stay the course...
User avatar
HammockGuy
Father of 2 girls - Thanks Dr. Patel!
 
Posts: 155
Joined: February 22nd, 2009, 9:15 pm
Location: USA


Return to Forum Structure, Recommended Use and Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest