Yes thats why I wrote what I wrote above... just display it somewhere else 🙂

Thanks for the great idea. 👍

It's fine the bar display below the first post if the post is not too long. If long post, the bar better be on top or under main title.

I got 2 issues, this bar won't load, it won't show up when I enter a post, but it will once I refresh the page. And the bar of a post may show the data of another post. Please help 💟

10 days later

Very nice and thank you! I recall a lot of topics in the past where folks were looking for an extension similar to one available on Discourse. This looks to be just that, well done!

A nice follow up, probably better suited for a different extension would be link tracking where each link click is basically tracked and display below the summary to show popular links shared in the discussion.

Personally I like it below the post, but perhaps it could be a user option whether to always display below the post, display below first post if there are less than X number of characters, or always display below discussion header.

One issue I found, when navigating into the discussion from the discussion list the user count is less, and when I perform a page refresh or navigate to the page directly the user count is significantly higher.

A second issue appeared as a result, when there are a large number of users all avatars are displayed. It might be best to have an option to limit the number of avatars and then show something like + 100 more. Perhaps it could sort the users by their activity in the thread so posters show up first?

    13 days later
    25 days later

    This show viewed users as wrong. When I go to link as direct it shows 2 users but there is more than 2. It shows more than 2 when I go to discussion from homepage and it is true number.

    When I go to discussion by direct link

    When I go to discussion from homepage discussion list

      14 days later

      Nothing to explain..

      most probably, this extension is colliding with Forum Widgets..

        datlechin
        Flarum core 1.3.1
        PHP version: 8.0.22
        MySQL version: 8.0.30-0ubuntu0.20.04.2
        Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, imagick, imap, intl, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
        +------------------------------------------+---------+--------+
        | Flarum Extensions | | |
        +------------------------------------------+---------+--------+
        | ID | Version | Commit |
        +------------------------------------------+---------+--------+
        | flarum-suspend | v1.3.1 | |
        | flarum-subscriptions | v1.3.1 | |
        | flarum-tags | v1.3.0 | |
        | flarum-sticky | v1.3.0 | |
        | flarum-likes | v1.3.0 | |
        | afrux-forum-widgets-core | v0.1.7 | |
        | fof-user-directory | 1.2.3 | |
        | fof-follow-tags | 1.1.5 | |
        | nearata-signup-confirm-password | v3.0.0 | |
        | fof-oauth | 1.2.2 | |
        | flarum-markdown | v1.3.0 | |
        | zerosonesfun-elint | 3.4 | |
        | v17development-user-badges | v1.1.0 | |
        | the-turk-stickiest | 2.0.3 | |
        | sycho-discussion-canonical-url | 0.1.1 | |
        | ramesh-dada-increase-title | 1.0.0 | |
        | nearata-internal-links-noreload | v2.0.1 | |
        | miniflar-top-like-givers-widget | 0.1.0 | |
        | mickmelon-coloured-usernames | 0.1.1 | |
        | justoverclock-thread-read-time | 0.1.7 | |
        | justoverclock-staff-members-widget | 0.1.3 | |
        | justoverclock-popular-tags | 0.1.3 | |
        | justoverclock-og-meta-tag | 0.1.0 | |
        | justoverclock-last-registered-users | 0.1.5 | |
        | justoverclock-hot-discussions | 0.1.2 | |
        | justoverclock-hashtag | 1.0.1 | |
        | justoverclock-auto-post-count-badge | 0.1.9 | |
        | jslirola-login2seeplus | v0.2 | |
        | isaced-email-verification-switch | 1.0.0 | |
        | ianm-synopsis | 1.2.0 | |
        | ianm-follow-users | 1.1.1 | |
        | glowingblue-redis-setup | 1.2.0 | |
        | glowingblue-password-strength | 3.1.0 | |
        | fof-username-request | 1.0.1 | |
        | fof-user-bio | 1.1.0 | |
        | fof-upload | 1.2.3 | |
        | fof-sitemap | 1.0.3 | |
        | fof-share-social | 1.1.0 | |
        | fof-secure-https | 1.1.0 | |
        | fof-recaptcha | 1.1.0 | |
        | fof-reactions | 1.1.0 | |
        | fof-nightmode | 1.3.3 | |
        | fof-links | 1.1.1 | |
        | fof-geoip | 1.0.1 | |
        | fof-gamification | 1.4.5 | |
        | fof-doorman | 1.1.1 | |
        | fof-default-group | 1.1.0 | |
        | fof-best-answer | 1.2.2 | |
        | flarum-statistics | v1.3.0 | |
        | flarum-mentions | v1.3.1 | |
        | flarum-lock | v1.3.0 | |
        | flarum-lang-hindi | 0.1.6 | |
        | flarum-lang-german | 1.3.1 | |
        | flarum-lang-french | v3.8.0 | |
        | flarum-lang-english | v1.3.0 | |
        | flarum-flags | v1.3.0 | |
        | flarum-emoji | v1.3.0 | |
        | flarum-bbcode | v1.3.0 | |
        | ffans-clipboardjs | v1.0.0 | |
        | davwheat-custom-sidenav-links | 1.0.1 | |
        | davwheat-ads | 1.2.0 | |
        | datlechin-offline-indicator | v0.1.0 | |
        | datlechin-discussion-count | v0.1.0 | |
        | datlechin-add-like-controls | v1.0.6 | |
        | clarkwinkelmann-popular-discussion-badge | 1.1.0 | |
        | clarkwinkelmann-circle-groups | 1.0.1 | |
        | clarkwinkelmann-bookmarks | 1.0.0 | |
        | blomstra-usercard-stats | 0.1.2 | |
        | blomstra-user-filter | 0.1.4 | |
        | blomstra-sort-order-toggle | 0.2.0 | |
        | blomstra-secondary-tags-toggler | 0.2.3 | |
        | blomstra-cache-assets | 0.5 | |
        | askvortsov-rich-text | v2.1.7 | |
        | afrux-top-posters-widget | v0.1.4 | |
        | afrux-online-users-widget | v0.1.6 | |
        | afrux-news-widget | v0.1.1 | |
        | acpl-my-tags | 1.2.0 | |
        | acpl-lscache | 0.4.1 | |
        +------------------------------------------+---------+--------+
        Base URL: https://primetechieforum.com
        Installation path: /var/www/html
        Queue driver: redis
        Mail driver: smtp
        Debug mode: off

          mys Can you enable Discussion Overview? so that I can check where is affected from.

          I checked locally but I don't see the same error as you

          • mys replied to this.
          • mys likes this.

            enabled please check the site

            datlechin Hello there, please solve the issue. I cannot keep it open for long time, users experience wll be hampered.

              mys i'm using this extension with mine, and apparently works

              @datlechin but i see so many error in console:

              TypeError: e.slug is not a function
                  at Function.<anonymous> (routes.ts:48:24)
                  at Function.e [as discussion] (routes.ts:46:15)
                  at Function.<anonymous> (routes.ts:57:24)
                  at Function.e [as post] (routes.ts:56:9)
                  at s.view (DiscussionOverview.tsx:28:35)
                  at Function.a (render.js:30:16)
                  at render.js:482:45
                  at p (render.js:419:9)
                  at render.js:488:9
                  at p (render.js:419:9)