Viewing 20 posts - 1 through 20 (of 20 total)
  • STW WEB BOD: Can you fix the video button to work for short youtube links please
  • GrahamS
    Full Member

    These days if you hit the “Share” button on YouTube you get a nice short link like this:

    http://youtu.be/UJdCZLQN7ao

    (which is the short link for http://www.youtube.com/watch?v=UJdCZLQN7ao )

    But that short link doesn’t actually work with the STW “video” button:

    [video]http://youtu.be/UJdCZLQN7ao[/video]

    See? Any chance you could fix it so it does?

    Jamie
    Free Member

    [hackneyed joke]

    It’s coming in the new forum.

    [/hackneyed joke]

    trickydisco
    Free Member

    that’s cus it’s a short link and not an embed URL

    DezB
    Free Member

    What trickydisco said – browser has to redirect from the short link.

    DezB
    Free Member

    (Quality video though Graham 🙂 )

    GrahamS
    Full Member

    Yeah but the short link maps directly to the long link – no redirection required – so it wouldn’t be very hard for them to add a bit in the code that handles the video button so that it simply replaces “youtu.be/” with “www.youtube.com/watch?v=”

    dabble
    Free Member

    How that CXer springboards so high i’ll never know, some serious air time there, cowabunga dude!

    Jamie
    Free Member

    Heh…

    DezB
    Free Member

    Yeah but the short link maps directly to the long link – no redirection required – so it wouldn’t be very hard for them to add a bit in the code

    Yeah, true. Like a TinyURL link to a picture can be embedded… Yeah, get to it developers!

    GrahamS
    Full Member

    Shhh.. be quiet Ginger.

    DezB
    Free Member

    GrahamS
    Full Member

    No speakers/headphones?

    Third clip in the video (the CXers falling in the sand) you can hear:

    Concerned Kid: “But dad, they’re gonna get hurt.”

    Scolding Voice: “Shhh.. be quiet Ginger”

    😆

    (it is unclear if the scolding voice is actually “Dad”, or just someone that doesn’t like whiny soulless carrottops).

    DezB
    Free Member

    Ah! I didn’t have the sound on.. have to watch again now.. 🙂

    Tom
    Free Member

    simply replaces “youtu.be/” with “www.youtube.com/watch?v=”

    I invite you to do it yourself, as it is Wednesday afternoon 😉

    http:\/\/([a-zA-Z0-9]+\.|)youtube\.com\/.*v=([a-zA-Z0-9_-]+).*
    with...
    src=http://www.youtube.com/v/\\2
    href=http://www.youtube.com/watch?v=\\2

    GrahamS
    Full Member

    I don’t work unless someone is paying me Tom.

    And even then it’s rare. 😉

    But looking at what you posted I suspect you just want a new rule that says:

    http:\/\/youtu.be\/([a-zA-Z0-9_-]+).*
    with...
    src=http://www.youtube.com/v/\\2
    href=http://www.youtube.com/watch?v=\\2

    No?

    Tom
    Free Member

    I’ll probably combine it into one and go for the \3. Just one domain was it?

    GrahamS
    Full Member

    Yeah seems to always just be http://youtu.be , no sub-domains.

    Tom
    Free Member

    OK, youtu.be works. You can now also say [ youtube]9udxbvHiqGw[/youtube]

    [youtube]9udxbvHiqGw[/youtube]

    GrahamS
    Full Member

    Woo hoo – good work Tom!

    Buy yourself a beer on me.

    DezB
    Free Member

    Really, he’s done it? Now to try it on the Tune Association Thread…

Viewing 20 posts - 1 through 20 (of 20 total)

The topic ‘STW WEB BOD: Can you fix the video button to work for short youtube links please’ is closed to new replies.