# 回复：会员能否看到自己的ID？

**URL:** <https://meta.discourse.org/t/re-is-there-a-way-for-members-to-see-their-own-id/211836>\
**Category:** Support\
**Created:** [2021年十二月11日 19:09 UTC](https://meta.discourse.org/t/re-is-there-a-way-for-members-to-see-their-own-id/211836 "2021-12-11T19:09:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)\
**Post date:** [2021年十二月11日 19:09 UTC](https://meta.discourse.org/t/re-is-there-a-way-for-members-to-see-their-own-id/211836/1 "2021-12-11T19:09:52Z")

</div>

您好 Rafael，

继：

> [@Is there a way for members to see their own id?](https://meta.discourse.org/t/is-there-a-way-for-members-to-see-their-own-id/121731/5):
>
> You can add the User ID to every post with a simple customization: \<script type="text/discourse-plugin" version="0.5"\> api.decorateWidget('post-meta-data:after', dec =\> { return dec.rawHtml(`\<div class="post-info user-id"\>User #${dec.attrs.user_id}\</div\>`); }); \</script\> You can preview it [Theme Creator](https://theme-creator.discourse.org/theme/Falco/post-user-id). Yeah, it needs some CSS to not be so ugly

这个主题是否仍然可用？

我有一个需求，希望用户能够看到他们自己的 ID（我们将将其用作他们的俱乐部会员 ID），这可能会对我们有用。

不确定该链接是否仍然有效？

---

<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:** [2021年十二月13日 15:02 UTC](https://meta.discourse.org/t/re-is-there-a-way-for-members-to-see-their-own-id/211836/2 "2021-12-13T15:02:35Z")

</div>



---

<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:** [2021年十二月13日 15:03 UTC](https://meta.discourse.org/t/re-is-there-a-way-for-members-to-see-their-own-id/211836/3 "2021-12-13T15:03:15Z")

</div>

我建议尝试将代码片段添加到主题组件中，然后检查它是否有效。
