Proper YouTube BBCode Tag now available

Discussion in 'Site Discussions & Suggestions' started by Costello, Feb 8, 2011.

  1. Costello
    OP

    Costello Headmaster

    Administrator
    12,283
    5,214
    Oct 24, 2002
    I've added a better YOUTUBE BBcode tag to replace the annoying old one

    The OLD one worked this way:
    Code:
    [youtube]VRnQxCF-UcQ[/youtube]
    I haven't removed it completely, it is still available as
    Code:
    [yt]VRnQxCF-UcQ[/yt]
    The NEW one works more intuitively (choose the way you prefer):
    Code:
    1. [youtube]VRnQxCF-UcQ[/youtube] similar to old one
    2. [youtube]http://www.youtube.com/watch?v=VRnQxCF-UcQ[/youtube] ---> regular link
    3. [youtube]http://www.youtube.com/watch?v=VRnQxCF-UcQ&hd=1[/youtube]ÂÂ---> HD
    4. [youtube]http://youtu.be/VRnQxCF-UcQ[/youtube]ÂÂ---> short link
    5. [youtube]http://youtu.be/VRnQxCF-UcQ?hd=1[/youtube] --->ÂÂshort link, HD
    this covers pretty much all possibilities.
    you no longer have to worry about how to post a youtube video properly [​IMG]

    test:
    [youtube]http://www.youtube.com/watch?v=VRnQxCF-UcQ[/youtube]
     
  2. prowler

    prowler Sony

    Member
    9,473
    2,816
    Jul 14, 2009
    Ragol
    I'm guessing others still work too, like &autoplay, #t=XmXXs, etc?

    Edit: also awesome. I remember requesting this ages ago. Thanks
     
  3. Goli

    Goli RPG

    Member
    2,571
    2
    Jul 16, 2008
    Cote d'Ivoire
    [​IMG]
    Finally!
    I hated having to single out that unique video code when posting YT videos.
     
  4. The Pi

    The Pi Lurker

    Member
    1,638
    67
    Mar 18, 2010
    Scotland
    [​IMG]

    Random test:
    [youtube]http://www.youtube.com/watch?v=CMNry4PE93Y[/youtube]
     
  5. Costello
    OP

    Costello Headmaster

    Administrator
    12,283
    5,214
    Oct 24, 2002
    no, additional options have been disabled, purposedly.
    you don't want to allow people to autoplay videos on a forum like this.
     
  6. raulpica

    raulpica With your drill, thrust to the sky!

    Supervisor
    10,977
    7,176
    Oct 23, 2007
    Italy
    PowerLevel: 9001
    Maybe the time option (#t=XmXXs) wouldn't be that bad to have [​IMG] It's pretty useful sometimes.
     
  7. Infinite Zero

    Infinite Zero Almost!

    Member
    2,922
    5
    Apr 25, 2010
    United States
    California
    Thank you! This is very useful [​IMG]
     
  8. ProtoKun7

    ProtoKun7 GBAtemp Time Lord Regenerations: 3

    Global Moderator
    7,506
    1,547
    Jan 3, 2009
    Gallifrey
    I didn't have trouble with the old tag, but at least it's even less of a problem now, I guess. I'm glad the old tag was kept though; better to have the choice.

    I'd prefer keeping time-specific tags with the new tag though, if possible.
     
  9. shlong

    shlong in memoriam of gravitas

    Member
    2,301
    568
    Jun 18, 2009
    Italy
    Charlotte's maze
    Yay, this is kinda awesome ^~^
    Thanks, Costy [​IMG]
     
  10. Ron

    Ron somehow a weeb now.

    Member
    2,838
    388
    Dec 10, 2009
    Canada
    here
    Same opinion as ProtoKun, there was nothing wrong with the old tag but now we have this tag, so it's great I guess..
     
  11. ProtoKun7

    ProtoKun7 GBAtemp Time Lord Regenerations: 3

    Global Moderator
    7,506
    1,547
    Jan 3, 2009
    Gallifrey
    Well, maybe nothing wrong for those of us who knew how to use it, but in any case, it's good that both are still available (especially as if for any reason I want to use the older control style I can just use the old tag). I've found myself using this new one a couple of times already, so it's choice rather than preference, I think.
     
  12. soulx

    soulx GBAtemp Legend

    Member
    10,130
    4,707
    Apr 4, 2009
    Canada
    I discovered a bug. When multiple different Youtube videos are grouped together, they all turn into the first video. I'm not sure I worded that properly so look at the example, below.
    ---
    Videos
    Gaming
    Interviews and Stuff
    ---
    I also tried it with the yt tag and it still doesn't work.
    Videos
    Gaming
    Interviews and Stuff
    ---
     
  13. Costello
    OP

    Costello Headmaster

    Administrator
    12,283
    5,214
    Oct 24, 2002
    what do you mean by "grouped together"?
     
  14. tj_cool

    tj_cool Site dev

    Supervisor
    9,982
    -1
    Jan 7, 2009
    Belgium
    This planet
     
  15. soulx

    soulx GBAtemp Legend

    Member
    10,130
    4,707
    Apr 4, 2009
    Canada
    It seems to work with the original Youtube tag (yt), though.
    Videos
    Gaming
    Interviews and Stuff
     
  16. Rhulqdahr

    Rhulqdahr Member

    Newcomer
    22
    0
    Jan 22, 2011
    Poland
    That's exactly what I got a while ago. When putting a couple YouTube links in one post using the new BB code, the videos duplicate (when trying to view them, the second, third, fourth and so on changes into the first clip) or the place where they should be in the post turns blank. This does not occur when using the older BB code.
     
  17. Shockwind

    Shockwind GBATemp's Official The Last of Us Fan

    Member
    1,106
    7
    Dec 10, 2010
    inside a post-apocalyptic world.
    Yay! This is going to be very useful. [​IMG]