Loved your addon on Xenforo, so really nice to see you bring it over here so quickly!
You're the man.
Loved your addon on Xenforo, so really nice to see you bring it over here so quickly!
You're the man.
+1 Thanks @JoshyPHP for this extension! Works great
youtube video is not responsive??
None of the embeds are responsive currently. All of them should be in the update next week.
In the meantime you can use CSS to limit iframes to 100% width.
Updated with responsive embeds: https://github.com/s9e/flarum-ext-mediaembed/releases/download/0.2.0/s9e-mediaembed-0.2.0.zip
Codepen would require the same kind of third-party iframe as Twitter. I don't think it would be wise to include by default because it runs users code.
Twitter works for me. If you don't see a tweet below, check out your browser's console for errors maybe?
Hello, i got the same problem than another one here,
Turning on and off the extension didn't do the trick :/
BlackSheep do you use media tags? if yes, please don't. just put link, you don't have to wrap it in anthing.
BlackSheep You didn't close the BBCode properly. It should be [media]...[/media]
Or as ameo said, just post the URL without any BBCode.
JoshyPHP Wow, ok, much much useful. Thanks to both of you !
Are videos from TV guide something that could be integrated?
ameo Not with that kind of links, no. Mostly because that's a link to an article that contains a video and replacing one with the other would make the users miss on some content. IOW, they wouldn't read the article. That's different from, say, a YouTube URL.
You'd need an interface to create a custom BBCode for it or add a custom media site for it. If you want to create an extension for yourself, here's the code for extracting the video's ID from an article link:
$event->configurator->MediaEmbed->add(
'tvguide',
[
'host' => 'tvguide.com',
'scrape' => ['extract' => '#"embed":".*?/embed\\/(?<id>[-\w]+)#'],
'iframe' => [
'width' => 640,
'height' => 360,
'src' => '//www.tvguide.com/videos/embed/{@id}/'
]
]
);
It tranforms links regardless of other extensions. Just post the link, it'll get embedded.
@JoshyPHP I see that you can add sites to the extension manually I am guessing. I am more interested in actually being able to process a regular site and just quickly create a quick info box of either the title or description and a small excerpt of the content. Maybe use the fav icon, or the OG icon or even an image from the site if available and display it in a nice box on the discussion just like many of the media links that are supported.
I am not sure if your extension has it but it would be nice if it does, just like "onebox" from discourse which tries to use a website's OG information tags to make it easier to the scraper or use the title and description for such information.
Anyway just a thought.
I did get to try out the supported sites and they work really nice.