Flarum Details BBCode

Details BBCode for Flarum.

pages_front

Installation

Run following command via SSH while you're in Flarum root folder:

composer require sijad/flarum-ext-details

Usage

[details=Summary]Hidden Content[/details]
5 days later

Hi Sijad, thanks for Details !
It seems not be possible to hide images with this bbcode, it's normal? Or could you add this feature?

ciao!

    Hiob it should works with both auto-media and images

    [details=Title]![]({image url})[/details]

    Mm, it didn't work on my flarum, maybe it's an incompatibilty with one other extension..
    Sometime it's just impossible to open the spoiler (need reload the page). I try to find where comes from this issue. ?

    You can see an exemple on this post https://nefald.fr/forum/d/4471-rove-kosmos/7
    The BBcode look like this (we use Flagrow Image Uploader ) :
    [details] ![image https://nefald.fr/forum/assets/images/2779-9uH2qKUJy3Moz7V0.jpeg](https://nefald.fr/forum/assets/images/2779-9uH2qKUJy3Moz7V0.jpeg) [/details]

    I tried with no alt message or with title for details's BBCode, it didn't affect the result.
    Thanks Sijad ?

      Hiob It's working perfectly for me when I look at your example, only suggestion I could possibly give is to refresh your cache? (SHIFT & F5)

      Yeah, I already purged my cache, without success. It might be a problem under Firefox on Ubuntu 16.04... I will notice my members on this issue.
      I've just install Chromium and it works like a charm. Thanks !

        @theredlocknetwork @Hiob sorry about that, I didn't test it on firefox, this should be fixed now, please update with composer

        composer update sijad/flarum-ext-details

          sijad Wonderful! It's works, thanks sijad. ?

          6 days later

          Hello @sijad! You can tell me why in Firefox you code dont works correctly?

          As i see in you sources, you have this line of code:

          if (!$.fn.details.support) $('#app').addClass('no-details')

          You can tell me what is happening here?) If this class was added to app, details dont work correctly in Firefox, on my Ubuntu machine.

          Ow, I understood what the problem was.

          I created two pull-requests to you repo on Github, @sijad ? Please, check it.

            New version is available ?
            few problem has been fixed in this version, thanks to @Believer for helping.

            you can update via composer:

            composer update sijad/flarum-ext-details
            2 months later

            Hi, i try install it, but when use [details=Summary]Hidden Content[/details], it only show text "Hidden Content" like normal text, do i need config something ?

              TrongLe no config needed, please try removing all .js files in your assets folder and re-enable the extension.

                same error after do it ? or it's conflict with another ext ? hiix hix

                sijad Hi,

                i'm check in db:
                <r><p><DETAILS title="Summary"><s>[details=Summary]</s>Hidden Content<e>[/details]</e></DETAILS></p></r>

                It's already save , but can't display

                  TrongLe I'm not sure why this happening, can you please try with another browser?

                    sijad i try but it still not working for me ;(
                    Can you help me debug it, try on localhost it working, but on my server not working, crazy ....