# 能否限制用户在一个特定类别的主题中最多回复一次？

**URL:** <https://meta.discourse.org/t/can-i-restrict-users-to-reply-at-most-once-in-the-topics-in-a-certain-category/260395>\
**Category:** Support\
**Tags:** slow-mode\
**Created:** [2023年四月3日 15:21 UTC](https://meta.discourse.org/t/can-i-restrict-users-to-reply-at-most-once-in-the-topics-in-a-certain-category/260395 "2023-04-03T15:21:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeybunnie](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@honeybunnie](https://meta.discourse.org/u/honeybunnie)\
**Post date:** [2023年四月3日 15:21 UTC](https://meta.discourse.org/t/can-i-restrict-users-to-reply-at-most-once-in-the-topics-in-a-certain-category/260395/1 "2023-04-03T15:21:52Z")

</div>

我是个新手。我想限制用户在一个特定类别的主题中最多回复一次。我不知道是否有插件或功能可以实现这一点。我想到的一种方法是隐藏用户已经回复过的主题的回复按钮。但我不知道如何编写 CSS 代码。或者大家有什么更好的方法来实现这个目标吗？谢谢！

---

<div class="post-metadata">

**Author:** ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)\
**Post date:** [2023年四月3日 23:41 UTC](https://meta.discourse.org/t/can-i-restrict-users-to-reply-at-most-once-in-the-topics-in-a-certain-category/260395/2 "2023-04-03T23:41:20Z")

</div>

有一个设置，但您需要批准回复。这在 Category\settings 中

 ![Screenshots_2023-04-03-20-39-27](https://global.discourse-cdn.com/meta/original/4X/f/c/e/fce3a700ea98f95418ff9dfeac3a42704949678b.png)

慢速模式可能会限制每分钟发帖次数。但不确定这是否会影响最后一条帖子或 x 用户发布的最后一条帖子。

---

<div class="post-metadata">

**Author:** ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)\
**Post date:** [2023年四月4日 00:09 UTC](https://meta.discourse.org/t/can-i-restrict-users-to-reply-at-most-once-in-the-topics-in-a-certain-category/260395/3 "2023-04-04T00:09:54Z")

</div>

此帖子可能有助于解决部分 CSS 问题。您只需要添加一个检查用户是否已发帖/回复一次的条件。

> [@Limit one post per person?](https://meta.discourse.org/t/limit-one-post-per-person/80072/4?u=heliosurge):
>
> Your use case can be achieved with CSS. Change .category-NAME to the category you’re targeting. .category-NAME { // hide reply buttons button.reply, .timeline-footer-controls button.create, .topic-footer-main-buttons button.create { display: none; } // just in case &:not(.staff) & { .topic-post:not(:first-of-type), .time-gap { display: none; } } } This will remove any reply button from the posts in the selected category. The use case in the OP requires somet…

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [2023年四月4日 01:37 UTC](https://meta.discourse.org/t/can-i-restrict-users-to-reply-at-most-once-in-the-topics-in-a-certain-category/260395/4 "2023-04-04T01:37:38Z")

</div>

慢速模式是按用户划分的：

> ![image](https://global.discourse-cdn.com/meta/original/4X/1/0/9/109208d5925d4473bc1ad0be4299d1482830c956.png)

（宽度不足以显示 26298h）

> ![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/4X/f/c/0/fc03e6c29e3c61189657ed40677e0e08d849a745_2_690x40.png)

😃  
您可以在[此处](https://try.discourse.org/t/this-post-should-only-let-you-reply-once/1426)试用，直到下次重置：

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/0/a/60a7ae6043b951af63e011d60c642c323e1540f0.png)

---

<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:** [2023年六月8日 09:50 UTC](https://meta.discourse.org/t/can-i-restrict-users-to-reply-at-most-once-in-the-topics-in-a-certain-category/260395/5 "2023-06-08T09:50:24Z")

</div>

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