• Extensions
  • Blog - Adds a blog section to your community

MikeJones
I've not tested yet, but according to main post you can set this view as your homepage, and it does work on original posts.

We are thrilled that you all like our plugin. We've now contributed two free plugins and we will keep maintaining those to keep the spirit alive. (And thank you Glowing Blue!)

I hit an error when I enabled it on my forum (beta 13)

Warning: explode() expects parameter 2 to be string, array given in /usr/share/nginx/flarum/vendor/v17development/flarum-blog/src/Listeners/CreateBlogMetaOnDiscussionCreate.php on line 23

Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /usr/share/nginx/flarum/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 
Stack trace: 
#0 /usr/share/nginx/flarum/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() 
#1 /usr/share/nginx/flarum/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() 
#2 /usr/share/nginx/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Laminas\Diactoros\Response\HtmlResponse)) 
#3 /usr/share/nginx/flarum/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() 
#4 /usr/share/nginx/flarum/public/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in /usr/share/nginx/flarum/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 24
    • [deleted]

    • Edited

    @JasperVriends is this extension compatible with FoF/Gamification ?

    I see the below in the console

    Uncaught TypeError: n.ranks(...).reverse is not a function
        at e.<anonymous> (addUserInfo.js:103)
        at e.t.<computed> (extend.js:27)
        at e.t.<computed> [as view] (extend.js:25)
        at e.render (Component.js:100)
        at e.n.headerItems (CommentPost.js:134)
        at e.t.<computed> (extend.js:25)
        at e.t.<computed> (extend.js:25)
        at e.t.<computed> (extend.js:25)
        at e.t.<computed> (extend.js:25)
        at e.t.<computed> [as headerItems] (extend.js:25)
    3addUserInfo.js:103 Uncaught TypeError: n.ranks(...).reverse is not a function
        at e.<anonymous> (addUserInfo.js:103)
        at e.t.<computed> (extend.js:27)
        at e.t.<computed> [as view] (extend.js:25)
        at e.render (Component.js:100)
        at e.n.headerItems (CommentPost.js:134)
        at e.t.<computed> (extend.js:25)
        at e.t.<computed> (extend.js:25)
        at e.t.<computed> (extend.js:25)
        at e.t.<computed> (extend.js:25)
        at e.t.<computed> [as headerItems] (extend.js:25)

    Seems to also conflict with @clarkwinkelmann "Who Read" extension :-(

      @[deleted] @mekici The release below should fix your issues 🙂

      Release v0.1.2

      Thank you for reporting bugs and feedback!

      Changelog:

        • [deleted]

        • Edited

        JasperVriends some things I've noticed. I'll raise GitHub issues for them, but wanted to outline them here for brevity purposes

        • having the ability to include the hero section on the blog page would be great. It looks odd when discussions are loaded that have a header, and the blog page doesn't.
        • there doesn't appear to be any div class applied to the avatar and bio section which makes customisation almost impossible as there is no div specific to target
        • no support for FoF/nightmode. Easily resolved with custom css, but...

        I absolutely love this extension and it's groundbreaking in the sense that it takes flarum into a new dimension. I'm going to be using this extensively, so am happy to offer tips, suggestions, etc.

        EDIT - GitHub issues raised

        For anyone needing fixes for fof/nightmode the following LESS will fix the blog section.

        /*
         * Blog Dark Mode Fixes
         */
        .dark {
            .FlarumBlogItem .FlarumBlog-Article .FlarumBlog-Article-Container .FlarumBlog-Article-Post {
                background-color: #14191f;
            }
            .FlarumBlog-Article-Categories {
                background-color: #14191f;
            }
            .BlogItemPage {
                background-color: #14191f;
            }
            .FlarumBlogItem .FlarumBlog-Article .FlarumBlog-Article-Container .FlarumBlog-Article-Comments {
                background-color: #14191f;
                box-shadow: 1px 3px 9px 0px #000000;
            }
            .FlarumBlogItem .FlarumBlog-Article .FlarumBlog-Article-Author .FlarumBlog-Article-Author-Info {
                 background: #14191f;
                 box-shadow: 1px 3px 9px 0px #000000;
             }
             .BlogCategories {
                 background: #14191f;
                 box-shadow: 1px 3px 9px 0px #000000;
             }
             .FlarumBlogItem .FlarumBlog-Article .FlarumBlog-Article-Container .FlarumBlog-Article-Content {
                 background: #14191f;
                 box-shadow: 1px 3px 9px 0px #000000;
             }
             .App.BlogOverviewPage {
                 background: #14191f;
             }
        }

        You can copy and past this direct into the Flarum appearance settings.