# 게스트와 멤버 수(사용자 이름 포함)를 표시하는 플러그인이 있나요?

**URL:** https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360
**Category:** Support
**Created:** [2월 25, 2022, 8:15오전 UTC](https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360 "2022-02-25T08:15:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![johnmurphy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnmurphy/32/251124_2.png) [@johnmurphy](https://meta.discourse.org/u/johnmurphy)
#### Post date: [2월 25, 2022, 8:15오전 UTC](https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360/1 "2022-02-25T08:15:38Z")

</div>

여러분 안녕하세요  
이 이미지처럼 표시되게 해주는 플러그인이 있을까요?

 ![image_2022_02_25T04_03_09_662Z](https://global.discourse-cdn.com/meta/original/3X/b/b/bb5b1bb0ebd677d189cd98d6125f346556dfb70d.png)  
\*이미지 내용: 현재 **18894** 명의 사용자가 온라인: **16029** 명의 게스트와 **2604** 명의 멤버  
혹은 제가 직접 구현할 수 있는 방법이 있을까요?  
참고: whos-online 플러그인을 찾았지만, 멤버(아바타)만 표시하더군요.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2월 25, 2022, 10:43오전 UTC](https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360/2 "2022-02-25T10:43:27Z")

</div>

온라인 사용자 목록과 함께 사용할 테마 컴포넌트를 만들 수 있다고 생각합니다.

---

<div class="post-metadata">

### Author: ![johnmurphy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnmurphy/32/251124_2.png) [@johnmurphy](https://meta.discourse.org/u/johnmurphy)
#### Post date: [2월 28, 2022, 4:46오전 UTC](https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360/4 "2022-02-28T04:46:09Z")

</div>

감사합니다.  
온라인 사용자 목록에 게스트가 아닌 회원만 표시되도록 하고 싶은데, 테마 구성 요소로는 커스텀 HTML과 CSS만 사용할 수 있는 것 같습니다. 그렇다면 온라인 사용자 플러그인을 직접 커스텀해야 하는 건가요?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2월 28, 2022, 10:45오전 UTC](https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360/5 "2022-02-28T10:45:50Z")

</div>

아, 죄송합니다. 맞아요, 익명 사용자는 계산되지 않아요. 그 기능을 추가할 준비가 되어 있을지 확신은 없어요. 온라인 사용자 수만 표시하는 용도로는 사용할 수 있지만, 익명 사용자까지 포함하긴 어렵습니다.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2월 28, 2022, 11:40오전 UTC](https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360/6 "2022-02-28T11:40:24Z")

</div>

그 수치는 대개 근거가 전혀 없는 경우가 많습니다. 그냥 ‘온라인 사용자’ 플러그인이 보고하는 온라인 사용자 수를 인자로 받는 테마 컴포넌트를 만들고, `5+2*Math.random()` 같은 값으로 곱해서 게스트 사용자 수를 "추정"해 보세요.

---

<div class="post-metadata">

### Author: ![johnmurphy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnmurphy/32/251124_2.png) [@johnmurphy](https://meta.discourse.org/u/johnmurphy)
#### Post date: [3월 1, 2022, 7:20오전 UTC](https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360/7 "2022-03-01T07:20:19Z")

</div>

도와주셔서 감사합니다!  
온라인 상태 표시 플러그인(who’s online)의 표시 방식을 변경할 수 있나요? (아바타 대신 사용자 이름 표시) 그리고 온라인 멤버 수를 특정 값과 곱해서 표시할 수도 있나요? 아니면 이 기능을 구현하려면 커스텀 플러그인을 직접 만들어야 하나요?  
관련 아이디어나 튜토리얼이 있으신가요?

---

<div class="post-metadata">

### Author: ![johnmurphy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnmurphy/32/251124_2.png) [@johnmurphy](https://meta.discourse.org/u/johnmurphy)
#### Post date: [3월 1, 2022, 8:55오전 UTC](https://meta.discourse.org/t/is-there-any-plugin-show-number-of-guests-and-members-show-username/219360/8 "2022-03-01T08:55:42Z")

</div>

문서를 읽어보니 이 코드를 커스터마이즈할 수 있다는 걸 알게 되었습니다.

```plaintext
<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>

```

하지만 연산자(±\*/)를 사용하여 count 변수를 수정하려고 하면 오류가 발생합니다 ☹  
이것을 어떻게 수정할 수 있을까요?
