# 成员是否有办法查看自己的ID？

**URL:** <https://meta.discourse.org/t/is-there-a-way-for-members-to-see-their-own-id/121731>\
**Category:** Support\
**Created:** [2019年六月30日 22:27 UTC](https://meta.discourse.org/t/is-there-a-way-for-members-to-see-their-own-id/121731 "2019-06-30T22:27:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2019年七月1日 02:27 UTC](https://meta.discourse.org/t/is-there-a-way-for-members-to-see-their-own-id/121731/5 "2019-07-01T02:27:44Z")

</div>

> [@OpenRavel](#):
>
> 我想知道他们是否有实际可行的方法。

你可以通过一个简单的自定义，在每个帖子中添加用户 ID：

```plaintext
<script type="text/discourse-plugin" version="0.5">
  api.decorateWidget('post-meta-data:after', dec => {
    return dec.rawHtml(`<div class="post-info user-id">用户 #${dec.attrs.user_id}</div>`);
  });
</script>

```

你可以在这里预览效果：[https://theme-creator.discourse.org/theme/Falco/post-user-id。](https://theme-creator.discourse.org/theme/Falco/post-user-id%E3%80%82)  
是的，它需要一些 CSS 样式，否则看起来太丑了。

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-for-members-to-see-their-own-id/121731)._
