Disqus now has an embedded comments feature (see here) and was wondering if you will be adding it to the plugin.
Is this in the roadmap?
s9e/mediaembed - Embed videos and third-party content
dadiocoleman I think I'd like that, but it would take a lot of time to make it work properly so I don't think it will ever come to be if I don't find a couple of sponsors for it. The main issue is that Disqus is an embedded commenting system; That means comments' URLs can be almost anything and point to any domain name, which makes it difficult to identify as such.
It would be simpler to create a separate extension that accepts comment URLs from a known list of sources/sites. That's something you may want to consider if that's a feature that's particularly valuable to your forums.
Ignivis This error pops up when I'm trying to install ext-mediaembed in the admin panel. All the other extensions works fine, but they already been installed before I upgraded to beta4 today, but ext-mediaembed I'm trying to install for the first time now.
And?
This don't work in links with ".mp4" in the end, for example?
No, it only embeds content from a number of specific sites.
- Edited
JoshyPHP
Have plans to add new supported sites?
No immediate plans but I regularly add new sites. I take requests but I tend to focus on the most popular and promising sites nowadays, because keeping them all up-to-date is too time-consuming. I infrequently accept paid requests too, for people willing to sponsor the implementation of a media site that isn't popular enough to be included by default.
AllysonSouzaNopSai I've just published an extension titled AutoVideo that does just that.
- Edited
JoshyPHP
Perfect Joshy! Thank you.
Just a suggestion, In Portuguese/Brazilian area, this site is popular:
http://mais.uol.com.br/
Probably keep this up to date is really simple, and I can do this for you. I jut need to understand how your TextFormatter works.
- Edited
Hmm, I ran across a peculiar issue, when disabling this extension embedded links in posts do not revert to active URLs. I was unable to get Flarum to recognize them as links unless I edited the post and repasted the link. It's possible this is more like a bug with Flarum, but I wanted to bring it to your attention.
jordanjay29 I'm aware of it, you could call it a design limitation. The URL in text is replaced with a media element so no link is created for it and if you disable media elements you get the text back but still no link. I don't have an elegant solution to let those revert into links but I'll try to think about it.
JoshyPHP Does this happen at post typing or post creation time? Or post rendering?
jordanjay29 At posting time. It's related to parsing. Basically what happens is that the MediaEmbed plugin says "this span of text (the URL) is mine and nobody else touches it" so the Autolink plugin stays well clear of it because that MediaEmbed guy sounded a bit intense and he might be crazy. You end up with this XML:
<YOUTUBE id="123" url="http://youtu.be/123">http://youtu.be/123</YOUTUBE>
During rendering, YOUTUBE
elements are rendered as an iframe
. If you disable the MediaEmbed plugin, there's no template configured for YOUTUBE
elements anymore so its content is displayed as-is. That behaviour is inherited from XSLT, although you can see the same behaviour in DOM with custom elements.
I've thought about it and I'm going to relax the MediaEmbed plugin's greediness to allow other plugins to use the same text. You'll end up with that XML:
<YOUTUBE id="123" url="http://youtu.be/123"><URL url="http://youtu.be/123">http://youtu.be/123</URL></YOUTUBE>
If the YOUTUBE
element has a template, the whole thing will get replaced but if it doesn't, the URL
element that's inside will be rendered instead and you'll get a link.
Anyway, the main takeaway is that I agree that there should be a link if the MediaEmbed plugin is disabled and I'm going to look into it in the near future.
- Edited
JoshyPHP is there a way to display embedded videos of first post(s) in the discussion list?
- Edited
Not with this extension, no.
JoshyPHP how i can play this video https://2ch.hk/b/src/137019571/14752667626560.webm
weazy There: https://discuss.flarum.org/d/3789-autoimage-autovideo-turn-static-links-into-images-videos
composer require s9e/flarum-ext-autovideo
jordanjay29 The latest release has the link fallback you described. If you disable the extension, videos revert to links. The PR is here: https://github.com/flarum/core/pull/1049