Embedding Youtube in posts

Ask questions about the phpBB forum software. Any questions on the use of the new forum software can be asked here.
Post Reply
darren
Posts: 794
Joined: Sun Apr 19, 2009 9:26 pm
Location: Williams Bay, Wi
Contact:

Embedding Youtube in posts

Post 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!
Last edited by darren on Thu Sep 13, 2012 3:03 pm, edited 1 time in total.
Darren
 

Re: Embedding Youtube in posts

Post by   »

Thanks, Darren.
Much appreciated!

-tommy
darren
Posts: 794
Joined: Sun Apr 19, 2009 9:26 pm
Location: Williams Bay, Wi
Contact:

Re: Embedding Youtube in posts

Post by darren »

You're welcome!

And yes, guitars ARE chickmagnets.
Darren
Post Reply