Antonio jordanjay29 I feel so embarrassed, you're right, I didn't check if were the correct IP and I was connecting me via ssh to another of my sites where is not installed Flarum. Now the extension is correctly installed. Thank you very much for your support ?
Zeokat I want to use only the bbcode [media] because i want direct links as they are and not embed them directly. Is possible deactivate the embeding of the direct links?
JoshyPHP No, if you post a URL in plain text you let the software decide how to present it. If you specifically want to create a link, you can use markup, e.g. [url]https://www.youtube.com/watch?v=FlsCjmMhFmw[/url]
Zeokat JoshyPHP Yes, the problem is that i have more than 200 posts with plain URLs that i want that they remain as links and not embed them. If i install the plugin and activate it, the autoembed will break the contents when plain urls are something that can be embeded ?
JoshyPHP Installing the extension now should not affect posts that were submitted before it was installed. For new posts you'd need to create an extension that disables the MediaEmbed plugin at parsing time with $event->parser->disablePlugin('MediaEmbed').
Bruno7kp MikeJones Yes, this is really bothering me. At least the links with the extension at the end (.gif, .png, etc) should only show the image. Other than that, the plugin is awesome. ?
Kryonoglou Ok I found the solution! Type: composer require s9e/flarum-ext-mediaembed:0.3.2 To the putty.
JoshyPHP There's no user configuration for it, you'd need to program in PHP. If you want to post a link and not have it transformed, use explicit markup, e.g. [url]http://example.org[/url]
ckubs JoshyPHP I know, and probably there is no need for a settings page. I my case I was wondering if deleting something from MediaPack/Renderer file would do the trick. I want that just to keep embeddable only the most common sites.
Kryonoglou Hey, I try to found the code but cannot. Please can you give a "class" name to the iframe? This is good for us because we can customize it with borders and etc. class=”mediaembed” or something..
JoshyPHP Kryonoglou You can already select the relevant elements using the data-s9e-mediaembed attribute, e.g. [data-s9e-mediaembed] { border: solid 1px red; } ckubs If you want to write PHP for it, your best option is to fork the extension and just enable the sites you really want. https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Synopsis/#example
ckubs JoshyPHP Thank you! I'm not a developer but with the docs I'll probably be able to achieve what I need. And maybe also add a JS that lazy loads the youtube videos.
poVoq Has anyone made it to work with Etherpad and/or Ethercalc? I guess the Iframe custom code should work, but maybe someone can share their code if they have done it already?
jordanjay29 hassanalvi20 This is not the place for testing. And you have an open discussion already on your upload question.
matteocontrini Hi, are there any cons to disabling this extension? Will it break previous posts that contained links? Other than disabling the embed-preview, of course
JoshyPHP The videos should turn back into links. Worst case scenario, they'll turn back into normal text.
poVoq Can anyone confirm it working with Beta8.1? You can install & enable it, but Youtube videos don't seem to be turned into embedded videos on my forum.