Please login or register.

Login with username, password and session length

Author Topic: Youtube Embed  (Read 1859 times)

0 Members and 1 Guest are viewing this topic.

◄Ashley►

  • Club Admin
  • 5th Gear
  • *
  • Offline Offline
  • Posts: 3176
  • ಠ_ಠ
    • View Profile
    • NFSPMotorsports
    • Email
Youtube Embed
« on: January 07, 2010, 10:39:13 PM »

You may have noticed the normal Youtube embed stuff doesn't work on our forum. One day I'll get around to fixing this, but in the meantime, I found a fairly easy workaround.

To embed a youtube video, first copy this into your post:
Code: [Select]
[flash=640,505]http://www.youtube.com/v/##########&hl=en_US&fs=1&rel=0&color1=0x2b3e4a&color2=0x405b6a[/flash]
Then get the video id tag off the video you want to imbed.
The tag will be in the address between the ?v= and the first &
So for this youtube vid: http://www.youtube.com/watch?v=LkW7hbfVbDk&feature=related the video id tag is LkW7hbfVbDk

Now replace the ########## with the tag.

That would make your post this:

Code: [Select]
[flash=640,505]http://www.youtube.com/v/LkW7hbfVbDk&hl=en_US&fs=1&rel=0&color1=0x2b3e4a&color2=0x405b6a[/flash]
And here's the result:

<a href="http://www.youtube.com/v/LkW7hbfVbDk&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x2b3e4a&amp;color2=0x405b6a" target="_blank" class="new_win">http://www.youtube.com/v/LkW7hbfVbDk&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x2b3e4a&amp;color2=0x405b6a</a>

If you want your video to autoplay as soon as the page loads, just add &autoplay=1 right after the tag like so:

Code: [Select]
[flash=640,505]http://www.youtube.com/v/LkW7hbfVbDk&autoplay=1&hl=en_US&fs=1&rel=0&color1=0x2b3e4a&color2=0x405b6a[/flash]
« Last Edit: January 07, 2010, 10:43:18 PM by Ashley »
Logged

◄Ashley►

  • Club Admin
  • 5th Gear
  • *
  • Offline Offline
  • Posts: 3176
  • ಠ_ಠ
    • View Profile
    • NFSPMotorsports
    • Email
Re: Youtube Embed
« Reply #1 on: March 05, 2010, 08:42:56 AM »

Ok guys, just added a mod to make YouTube embeds a LOT easier.

Just copy the YouTube video address, and wrap it in "youtube" tags like this:
Code: [Select]
[youtube]http://www.youtube.com/watch?v=LkW7hbfVbDk[/youtube]
Also, there is a YouTube button in the advanced reply. ;)
Logged