Is there any plugin show number of guests and members(show username)?

AI-generated summary

The discussion revolves around displaying the number of online guests and members on a forum, including usernames. johnmurphy asks if there’s a plugin to show total online users, distinguishing between guests and members, referencing a visual example. pfaffman suggests using a theme component with the ‘who’s online’ plugin but notes it doesn’t count anonymous users. RGJ humorously suggests generating fake numbers using randomization. johnmurphy seeks guidance on modifying the plugin to display usernames instead of avatars and to incorporate the count of online members into a custom component, asking for tutorials or ideas. He also shares code from the plugin’s template and mentions encountering errors when trying to manipulate the count variable with arithmetic operations.

Hi all
Is there any plugin help me show like this image


*image: have 18894 user online: 16029 guest and 2604 members
or is there any way i can do?
P/s: i found whos-online plugin but it just show member(avatar)

I think that you could create a theme component to use with who’s online.

thank you
who’s online only show member online(not guest) and i see theme component only custom html and css. so i have to custom who’s online plugin, is it right?

Oh. Sorry. Yes, it doesn’t count anonymous users. I’m not sure how ready it would be to add that. You could use it to add just a count of the online users, but not anonymous users.

Those numbers are often totally unsubstantiated anyway. Just create a theme component that takes the number of online users reported by the who’s online plugin and multiply that by 5+2*Math.random() or so to “get” the number of guest users.

thank for yours help!
Can i change who’s online plugin display(show username instead of avatar) and get the number of online members to multiply with component? or i have to custom plugin to do this?
do you have any ideal or tutorials?

i read docs and found this code can custom

<script type="text/x-handlebars" data-template-name="javascripts/components/whos-online">
    {{#if shouldDisplay }}
        <div id="whos-online" class={{if isLong "collapsed"}}>
            <span title={{i18n "whos_online.tooltip" count=siteSettings.whos_online_active_timeago}}>
            {{#if hasUsers }}
                {{i18n "whos_online.title" count=count}}
            {{else if hasCount }}
                {{i18n "whos_online.count_only" count=count}}
            {{else}}
                {{i18n "whos_online.no_users"}}
            {{/if}}
            </span>
            {{#if hasUsers }}
            {{#each users as |user|}}
                {{whos-online-avatar user=user}}
            {{/each}}
            {{/if}}
        </div>
    {{/if}}
</script>

but have errors when i try to edit count variable with operator(±*/) :frowning:
how can i edit this ?