0.1.1
- Fixed flarum/core version requirement
Updating
composer require fof/formatting ^0.1.1
composer require fof/formatting ^0.1.1
Does anyone have a problem with mp4 video URLs converting to nothing but blank space? Or is that just me? Maybe I have an extension conflict or a little troll living in my server.
Hello! I'm wondering which is the difference between s9-MediaEmebd and this extension? or is the same?
neogeo The mediaembed extension enables the MediaEmbed plugin in TextFormatter. This extension let's you enable MediaEmbed and more plugins that exist in TextFormatter, such as Autoimage and Autovideo.
The functionality is the same, but here you can enable more than just one plugin per extension, and let's you enable some more plugins as well.
Please, could you include these?
https://instaud.io for audio
https://sendvid.com for video
Truly awesome and works flawlessly.
neogeo The extension currently uses the default settings for the TextFormatter plugins, of which MediaEmbed is one of. You can look at https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Sites/ for the list of default supported sites.
I'm not sure if I want to (or will) add configuration options to this extension, as they'd be specific to each plugin.
datitisev Just FYI about this suggestion to JoshyPHP. You may want to make a decision on adding configuration options or not, and put that in the OP.
jordanjay29 I feel like I'm being dumb, but your message is not registering in ma brain . Could you clarify, please?
datitisev There's a lot of user requests for specific sites in that thread. If JoshyPHP marks his mediaembed extension abandoned in favor of yours, those requests are likely to come here (see the example above).
If you're not going to support them, it'd be best to decide now before you have a flood of them.
jordanjay29 Ah, I see. The issue is that I haven't decided what to do yet. I wanted to keep this extension simple, but if I start adding configuration options, then I can also add other plugins that require configuration.
For YouTube embed videos extension:
I think would be cool and more clean if you can remove the related videos with the ?rel=0 or &rel=0 parameter.
neogeo That would require, as mentioned earlier, configuration options. The embed templates are all provided by the TextFormatter MediaEmbed plugin by default, with no configuration required.
As mentioned in https://discuss.flarum.org/d/18535-add-mannualy-website-for-s9e-mediaembed/4, you would probably want to change the template yourself following the instructions at https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Change_template/ to change the YouTube template.
If I add the possibility to configure MediaEmbed extensively, then I'd probably have to add it for the rest of the plugins. I think the best way to configure the plugins for now is just to use the Flarum root extend.php
feature that was introduced in beta 8.
you would probably want to change the template yourself following the instructions at https://s9etextformatter.readthedocs.io/Plugins/MediaEmbed/Change_template/ to change the YouTube template.
datitisev Thanks for reply. Do you know which/where is this file/path to modify it? I can't found it...
neogeo In beta 8, a feature was added that lets you have an extend.php file on the Flarum root folder, similar to extensions. This extend.php file always loads, and unlike an extension, doesn't have to be enabled. It works the same as an extension's extend.php
.
You may have to create the file if you didn't create it when migrating from beta 7 to beta 8.
datitisev for me is difficult use the extend.php file for that (I'm not programmer)
I just prefer add the ?rel=0
parameter after the youtube url video. So I imagine there is a template created for that inside the extension... but I can't find the exact file to modify on .../vendor/s9e/text-formatter/src