Page 1 of 1

Embedding Youtube in posts

Posted: Thu Sep 13, 2012 1:34 pm
by darren
The gist of this post was in another thread, tommyboy asked me to post here as well. Glad to help. :)


Lets look at the following youtube url :

Code: Select all

http://www.youtube.com/watch?v=O7EcT5YzKhQ&feature=relmfu

In this url there are two url variables; 'v' and 'feature'. The video id is the 'v' value, in this case 'O7EcT5YzKhQ'. Where you see an ampersand '&' starts another url variable named 'feature', and so on and so forth. Depending on the video and how you got to the page there may be more variables in the url and they could possibly be in a different order.

You can think of the url as a group of messages to your browser:

Code: Select all

youtube.com/watch (domain and file) ? (? indicates there are some variables coming)
v=O7EcT5YzKhQ & (indicates another variable coming)
feature = relmfu & (and another)
guitars = chickmagnets
In order to embed your youtube video, copy whatever the 'v' value is (exclude the '=' and the following '&' if there is one), click on the youtube bbcode button when editing or creating your post, and paste your video id in like so:

[ youtube ]O7EcT5YzKhQ[ /youtube ]

(spaces added around the brackets so that the forum won't actually embed this video)



That concludes our programming lesson for the day. Enjoy!

Re: Embedding Youtube in posts

Posted: Thu Sep 13, 2012 2:48 pm
by  
Thanks, Darren.
Much appreciated!

-tommy

Re: Embedding Youtube in posts

Posted: Thu Sep 13, 2012 3:04 pm
by darren
You're welcome!

And yes, guitars ARE chickmagnets.