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?
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
(2018-03-21, 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/
Great, thanks for warning me (I don't use FaceBook). I wish these services would pick one URL and keep to it!