STW WEB BOD: Can yo...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] STW WEB BOD: Can you fix the video button to work for short youtube links please

19 Posts
6 Users
0 Reactions
95 Views
Posts: 31206
Full Member
Topic starter
 

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

(which is the short link for

)

But that short link doesn't actually work with the STW "video" button:

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


 
Posted : 25/09/2013 1:10 pm
Posts: 30656
Free Member
 

[hackneyed joke]

It's coming in the new forum.

[/hackneyed joke]


 
Posted : 25/09/2013 1:11 pm
Posts: 4336
Free Member
 

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


 
Posted : 25/09/2013 1:14 pm
 DezB
Posts: 54367
Free Member
 

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


 
Posted : 25/09/2013 1:16 pm
 DezB
Posts: 54367
Free Member
 

(Quality video though Graham 🙂 )


 
Posted : 25/09/2013 1:18 pm
Posts: 31206
Full Member
Topic starter
 

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 [b][i]"youtu.be/"[/i][/b] with [b][i]"www.youtube.com/watch?v="[/i][/b]


 
Posted : 25/09/2013 1:21 pm
Posts: 0
Free Member
 

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


 
Posted : 25/09/2013 1:23 pm
Posts: 30656
Free Member
 

Heh...

[img] [/img]


 
Posted : 25/09/2013 1:26 pm
 DezB
Posts: 54367
Free Member
 

[i]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[/i]

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


 
Posted : 25/09/2013 1:27 pm
Posts: 31206
Full Member
Topic starter
 

Shhh.. be quiet Ginger.


 
Posted : 25/09/2013 1:52 pm
 DezB
Posts: 54367
Free Member
 


 
Posted : 25/09/2013 2:12 pm
Posts: 31206
Full Member
Topic starter
 

No speakers/headphones?

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

Concerned Kid: [i]"But dad, they're gonna get hurt."[/i]

Scolding Voice: [i]"Shhh.. be quiet Ginger"[/i]

😆

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


 
Posted : 25/09/2013 2:35 pm
 DezB
Posts: 54367
Free Member
 

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


 
Posted : 25/09/2013 2:38 pm
 Tom
Posts: 0
Free Member
 

simply replaces "youtu.be/" with "www.youtube.com/watch?v="
I invite you to do it yourself, as it is Wednesday afternoon 😉

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

[/code]


 
Posted : 25/09/2013 2:46 pm
Posts: 31206
Full Member
Topic starter
 

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:

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

No?


 
Posted : 25/09/2013 3:18 pm
 Tom
Posts: 0
Free Member
 

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


 
Posted : 25/09/2013 3:36 pm
Posts: 31206
Full Member
Topic starter
 

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


 
Posted : 25/09/2013 3:37 pm
 Tom
Posts: 0
Free Member
 

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

[youtube]9udxbvHiqGw[/youtube]


 
Posted : 25/09/2013 4:54 pm
Posts: 31206
Full Member
Topic starter
 

Woo hoo - good work Tom!

Buy yourself a beer on me.


 
Posted : 25/09/2013 5:00 pm
 DezB
Posts: 54367
Free Member
 

Really, he's done it? Now to try it on the Tune Association Thread...


 
Posted : 25/09/2013 5:39 pm

6 DAYS LEFT
We are currently at 95% of our target!