Current time: 04-19-2014, 04:36 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MyCode] Youtu.be shortlink
06-02-2011, 05:56 AM (This post was last modified: 06-20-2011 12:23 AM by fea.)
Post: #1
[MyCode] Youtu.be shortlink
before anything else MyBB 1.6s video embed code looks like this
Code:
[video=youtube] ** youtube long link here ** [/video]
when used with shortlinks ( youtu.be )
our result:




url differences:
Quote:long link: http://www.youtube.com/watch?v=Y8s5G0nSvco
short link: (new) http://youtu.be/Y8s5G0nSvco
( short link hd also available )

you can also modify the shortlink by adding "/watch?v=" in between the
Code:
youtu.be(add it here)vidID

below is an example of a modified short link
Code:
http://youtu.be/watch?v=Y8s5G0nSvco

also the current video embed code for youtube in MyBB 1.6s will work with the modified short link

see here: post #6 by wethegreenpeople

view video embed code for the link above click here <-- please do not click submit after viewing [Image: uOQp8.gif]

modified short link will work regardless if there is an &xxx after the vidID
but having modifiedShorLink&xxx may NOT WORK all the time.

Warning:
Do not modify short links by adding 'www' right after the 'http' protocol
if you do this, you will be redirected to Google's 404 page.




## Setup for Youtu.be shortlink MyCode ##

Regular Expression:
Code:
\[ysl\]http://youtu.be/(.*?)\[/ysl\]

Replacement:
Code:
<param name="movie" value="http://www.youtube.com/v/$1&amp;fs=1&amp;source=uds" /></param>
<div style="text-align: center;">
<embed height="390" src="http://www.youtube.com/v/$1&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash" width="520" allowscriptaccess="always" allowfullscreen="true"></embed></div>

screenshot below: ( post feedback if it works, or not? )
[Image: HSWBJ.png]

[Image: 45.gif]
[ youtu.be MyCode ] *also in HD
Find all posts by this user
Quote this message in a reply
08-15-2011, 11:03 AM
Post: #2
RE: [MyCode] Youtu.be shortlink
Where can we get the shortlinks?

JWPlayer MyCode Embed v3
Google Document MyCode
SlideShare MyCode
Visit this user's website Find all posts by this user
Quote this message in a reply
08-30-2011, 02:17 AM
Post: #3
RE: [MyCode] Youtu.be shortlink
(08-15-2011 11:03 AM)acrox999 Wrote:  Where can we get the shortlinks?

Click the share button on the video.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication