Great contribution sijad !

Some recommendations:

  • package namesijad/flarum-spoiler although optional to do so, should actually be sijad/flarum-ext-spoiler in order to match the Flarum convention.
  • you might need to add the dependency for the bbcode extension, add under require: "flarum-ext-bbcode": "^0.1.0-beta.3"

    luceos thanks
    1- done
    2- flarum-ext-bbcode is not required. they both changes s9e/TextFormatter configure to enable some BBCode. so basically flarum-ext-bbcode is not really required at all. now if you think it's better to add that please let me know.
    thanks again

    Useful extension, but I think more css styles should be added

      sijad I think adding color to text is a big one that's missing - ex. [color="blue]Blue text[/color]. Seems like s9e\TextFormatter supports that but it's not enabled in Flarum currently.

      Of course getting some of these as formatting controls into the composer window without cluttering it up too much would be nice as well. Something lite like http://summernote.org/. The emoji suggestions by typing colon+letter there are really nice.

      a month later

      sijad awesome. Can you post a sample of the new style?

        This is one of those wickedly awesome extensions. Thank you for it! ? ?

        5 days later

        chirag it will update core, although, it is limited to 'beta' releases by default.

        So, If you have 'beta3' it will update to 'beta4',
        But if you have 'beta4' it won't update.

          Davis it will also update dependencies and libraries that Flarum relies on.

            jordanjay29 if you're going to be picky about updating you better be testing it on a non production machine first then upload the composer.lock and do composer install.

            If not, composer update is fine in most cases. Worst case senerio, you just figure out what's causing the issue and downgrade it.

              jordanjay29 when I say non-production, I mean a machine that isn't hosting the instance.

              AlexanderRusov It's possible the CSS didn't get updated properly. You may try clearing the .js and .css files in your assets directory (leave the other files), and then hard refresh (CTRL+F5) your browser page.

              On a clean install, I can see the arrows just fine, fyi.

              Hey sijad, when I tried to install the extension I got an error:

              Problem 1
                  - Installation request for sijad/flarum-spoiler ^0.1.1 -> satisfiable by sijad/flarum-spoiler[0.1.1].
                  - sijad/flarum-spoiler 0.1.1 requires flarum/core ^0.1.0-beta.3 -> no matching package found.
              
              Potential causes:
               - A typo in the package name
               - The package is not available in a stable-enough version according to your minimum-stability setting
                 see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
              
              Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
              
              Installation failed, deleting ./composer.json.

              I used the following code:

              php composer.phar require sijad/flarum-spoiler

                That didn't work santiagobiali.

                I got a new error

                  [InvalidArgumentException]                                                                               
                  Could not find package sijad/flarum-ext-spoiler at any version for your minimum-stability (stable). Che  
                  ck the package spelling or your minimum-stability                                                        
                                                                                                                           
                
                require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...

                  DonaldLouch that's wired, I did a clean install and the extension installed successfully with composer require sijad/flarum-spoiler

                  santiagobiali the Github hook is enabled, but I think I missed something here, I'll fix that, thanks for heads up

                    So I think I found the problem, sijad!

                    I am having problems accessing the root folder of where I have installed Flarum with composer.

                    7 days later

                    I fixed it! My composer files were out of date!!!

                      15 days later

                      When i open spoiler i get second arrow at bottom.

                      9 days later