0.1.1

  • Fixed flarum/core version requirement

Updating

composer require fof/formatting ^0.1.1
    9 days later

    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.

      010101 This extension only enables TextFormatter plugins. What plugins do you have enabled? I can't remember what extension I tested, but the video I tested did work just fine. Are there any errors in the JS console?

        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.

          datitisev Could be a iOS Google Chrome issue. I had trouble getting a .mov video to play on another site just now. YouTube videos embed just fine. I’m going to blame the browser for now and move on.

          a month later

          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.

                datitisev on one hand I think keeping it simple is best in terms of our goals for FoF, however I also believe that playing the quality proxy with the textformatter library will pay off in the long run, what do you think?

                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.

                    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