Posting Youtube Videos

hmmblah

Administrator
Staff member
When posting youtube videos at OC3D most users simply copy and paste the URL. This works to some degree, your video does show up embedded in the post. There are some caveats, however. The aspect ratio can be distorted and it can actually break the forum layout.

This is where the youtube tags come in. They allow youtube videos to be embedded in a post, but without breaking the forum layout and without changing the aspect ratio of the video itself.

Let's look at the url for a typical youtube video. The following is Tom's review of the MSI GTX 780 Lightning.

Code:
http://www.youtube.com/watch?feature=player_embedded&v=9jcCuREk5dY

The important bit we need to look at is the string after the v= in the URL. In this case it's 9jcCuREk5dY. If we copy only that section of the URL and place it in between the youtube tags built into the forum, the video will be embedded and shown properly.

Below is an example of the code needed:
PHP:
[youtube]9jcCuREk5dY[/youtube]

Here is the resulting video embedded into this post:

 
This took me ages to figure out cos i kept copy/paste the link from here, rather than press the 'php' button and add the youtube inside it! :p works awesomley now though i figured it out :cool:

*edit, what i meant to say was i took this link [youtube]9jcCuREk5dY[/youtube] and could never get it to work :p



 
Last edited:
Back
Top