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

**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:** 1\
**Showing post:** 3

<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…

---

_[View the full topic](https://meta.discourse.org/t/can-i-restrict-users-to-reply-at-most-once-in-the-topics-in-a-certain-category/260395)._
