# 覆盖暂停原因

**URL:** <https://meta.discourse.org/t/override-suspension-reasons/400297>\
**Category:** Marketplace\
**Created:** [2026年四月9日 11:50 UTC](https://meta.discourse.org/t/override-suspension-reasons/400297 "2026-04-09T11:50:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iehsan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iehsan/32/550054_2.png) [@iehsan](https://meta.discourse.org/u/iehsan)\
**Post date:** [2026年四月9日 11:50 UTC](https://meta.discourse.org/t/override-suspension-reasons/400297/1 "2026-04-09T11:50:50Z")

</div>

你好，我想在 Discourse 中修改用户封禁原因（改为约 10 个固定的、硬编码的原因，且不保存到数据库），同时不修改核心代码，而是通过创建插件或组件来实现。你能帮我编写代码吗？我的 Discourse 版本是 3.5.2。

---

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2026年四月9日 11:57 UTC](https://meta.discourse.org/t/override-suspension-reasons/400297/2 "2026-04-09T11:57:04Z")

</div>

> [@iehsan](#):
>
> 你能帮我写代码吗？我的 Discourse 版本是 3.5.2。

如果你是在请求别人为你完成工作，请将此话题移至 #marketplace。

---

<div class="post-metadata">

**Author:** ![iehsan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iehsan/32/550054_2.png) [@iehsan](https://meta.discourse.org/u/iehsan)\
**Post date:** [2026年四月9日 12:11 UTC](https://meta.discourse.org/t/override-suspension-reasons/400297/4 "2026-04-09T12:11:49Z")

</div>

请给我一些建议，谢谢。

---

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2026年四月9日 12:17 UTC](https://meta.discourse.org/t/override-suspension-reasons/400297/5 "2026-04-09T12:17:29Z")

</div>

我已经帮你移动了。

你的预算是多少？还是你在寻求免费服务？

---

<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:** [2026年四月9日 12:24 UTC](https://meta.discourse.org/t/override-suspension-reasons/400297/6 "2026-04-09T12:24:21Z")

</div>

> [@iehsan](#):
>
> （用大约 10 个固定的、硬编码的原因替换它们，这些原因不保存到数据库中）

那么，你建议将它们存储在哪里，以便能够显示呢？我想它们可以放在主题设置中，但这实际上仍然在数据库中。不过，拥有 10 个硬编码的原因并不能解决原因如何与用户关联的问题。我想可以使用自定义字段。这仍然在数据库中，但不需要更改架构。

> [@iehsan](#):
>
> 你能帮我写代码吗？我的 Discourse 版本是 3.5.2。

可能不行。为旧版本开发插件非常困难。在旧版本的 Discourse 上安装插件也很困难。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2026年五月9日 12:24 UTC](https://meta.discourse.org/t/override-suspension-reasons/400297/7 "2026-05-09T12:24:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
