MyBB Community Forums
[MyCode] shortlink - Printable Version

+- MyBB Community Forums (
+-- Forum: Resources (
+--- Forum: MyCodes (
+--- Thread: [MyCode] shortlink (/thread-95617.html)

[MyCode] shortlink - fea - 2011-06-02

before anything else MyBB 1.6s video embed code looks like this
[video=youtube] ** youtube long link here ** [/video]
when used with shortlinks ( )
our result:

url differences:
Quote:long link:
short link: (new)
( short link hd also available )

you can also modify the shortlink by adding "/watch?v=" in between the it here)vidID

below is an example of a modified short link

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.

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 shortlink MyCode ##

Regular Expression:

<param name="movie" value="$1&amp;fs=1&amp;source=uds" /></param>
<div style="text-align: center;">
<embed height="390" src="$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]

RE: [MyCode] shortlink - acrox999 - 2011-08-15

Where can we get the shortlinks?

RE: [MyCode] shortlink - Warrior01 - 2011-08-30

(2011-08-15, 11:03 AM)acrox999 Wrote: Where can we get the shortlinks?

Click the share button on the video.

RE: [MyCode] shortlink - rusty_ox - 2021-05-02

I need to change "http" to "https" to make it works for me.
  • sandbox test:


I found any leading white space is causing problem, here is the fix:


This fix also cover http as well.