MyBB Community Forums

Full Version: Dailymotion and twitch video in mybb editor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all, i want to ask about insert video in mybb editor, is it a bug to insert video from dailymotion we have to fill in full url

for example this url

https://www.dailymotion.com/video/x6ge666

become this



but when i try to fill dai.ly/x6ge666 which is the short url, it gives me no preview of video?


it just the same with twitch video

https://www.twitch.tv/poejanetwork

anyone can help me out?
There's a bit of a bug in 1.8.15 relating to the [media] MyCode: https://github.com/mybb/mybb/issues/3066

The Twitch link that you provided for example should work in MyBB 1.8.14 (I tested such URLs when improving the MyCode).
Thanks for your reply,
1. Twitch preview doesn'tt work when try to adding video in editor. It's only show the text

2. How to add dailymotion short url to the preg_match so it will work
(03-21-2018, 02:29 AM)bekti Wrote: [ -> ]Thanks for your reply,
1. Twitch preview doesn'tt work when try to adding video in editor. It's only show the text

2. How to add dailymotion short url to the preg_match so it will work

SO it's only in the editor that it doesn't work? We likely need to modify the editor to add support for it then, which hasn't been done yet.

We'll need to add support for the Daily Motion short URL. I'll create an issue on GitHub for 1.8.16 to include it.
hey Euan, it's like the facebook video embed also have a problem

look at this code


case "facebook":
if(isset($input['v']))
{
$id = $input['v']; // http://www.facebook.com/video/video.php?v=123
}
elseif(substr($path[3], 0, 3) == 'vb.')
{
$id = $path[4]; // https://www.facebook.com/fds/videos/vb.123/123/
}
else
{
$id = $path[3]; // https://www.facebook.com/fds/videos/123/
}
break;


the new URL facebook embed code is like this one


https://www.facebook.com/facebook/videos/10157067221301729/
Big Grin
Great, thanks for warning me (I don't use FaceBook). I wish these services would pick one URL and keep to it! Toungue
i find same problem in instagram embed (picture and video)

this is my threads
https://community.mybb.com/thread-216605.html

i hope you will help me, @Euan T

thank you