# 如何在用户资料中创建自定义活动标签？

**URL:** https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047
**Category:** Development
**Created:** [2025年四月9日 10:29 UTC](https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047 "2025-04-09T10:29:41Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![SubStrider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/substrider/32/512604_2.png) [@SubStrider](https://meta.discourse.org/u/SubStrider)
#### Post date: [2025年四月9日 10:29 UTC](https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047/1 "2025-04-09T10:29:41Z")

</div>

我一直在尝试插件开发，虽然我已经能够让插件设置出现在管理员设置页面上，但我不太确定如何让 UI 元素出现在 Discourse UI 中。

如果有人能给我指明相关的文档，或者指出任何现有插件中可以参考的文件，那就太好了。

附注：  
我正试图整体修改这些部分。

1. 在帖子中，用户名下方（主题元数据）的用户信息区域添加一个自定义字符串。
2. 在帖子控制区域添加一个按钮来打开一个表单。
3. 在用户个人资料活动页面添加一个自定义选项卡。
4. 在用户卡片和用户摘要统计信息中添加一些自定义摘要信息。

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047)._
