# 回复已关闭主题时提醒管理员/tl4

**URL:** https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912
**Category:** Theme component
**Created:** [2018 年3 月 26 日 22:08 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912 "2018-03-26T22:08:57Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [2018 年3 月 26 日 22:08 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/1 "2018-03-26T22:08:57Z")

</div>

## [Admin Warnings Theme Component](https://github.com/davidtaylorhq/discourse-admin-warnings)

`https://github.com/davidtaylorhq/discourse-admin-warnings`

当管理员在已关闭的主题上点击“回复”时，系统会发出警告。这有助于防止管理员意外继续已关闭或归档的讨论（以免让其他论坛用户感到沮丧！）。

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/4/8/b4838d23214ba42db929cef9ba6a0015f571b096.png)

警告文本可配置且支持翻译。

要安装，请遵循此处的说明：

> [@安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682):
>
> bookmark 本指南介绍如何在 Discourse 中安装和管理主题及主题组件。 person_raising_hand 所需用户级别：管理员 安装和自定义主题可以显著改善您的 Discourse 站点的外观和感觉。您可以通过 Discourse 管理面板轻松导入和管理主题及其组件。 本指南涵盖： 导入新主题和主题组件 将主题组件添加到主题 管理自动更新 更多学习资源的附加资源 安装新主题和主题组件 导航到 管理 \> 外观 \> 主题和组件。使用 主题 选项卡安装主题，或使用 组件 选项卡安装主题组件，然后点击 安装 按钮。 在“安装”对话框中，您可以： 浏览并安装流行的 Discourse 主题和主题组件。 从 Git 仓库 URL 安装。 从本地设备安装。 创建一个新的空白主题或组件。 如果您安装的是完整主题，则操作完成！如果安装的是主题组件，则需要将该主题组件添加到您的活动主题中。 将主题组件添加到主题 如果您想在站点的主题中使用主题组件，则需要执行以下步骤： 安装主题组件。 在…

---

<div class="post-metadata">

### Author: ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)
#### Post date: [2018 年5 月 3 日 13:09 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/2 "2018-05-03T13:09:49Z")

</div>

Thanks! Very useful!

Is there an easy way to extend this so the alert pop up pops up when highlight-quote replying too? I think it goes straight to the reply box as is.

---

<div class="post-metadata">

### Author: ![wolftune](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolftune/32/103569_2.png) [@wolftune](https://meta.discourse.org/u/wolftune)
#### Post date: [2018 年11 月 5 日 17:38 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/3 "2018-11-05T17:38:53Z")

</div>

Awesome thanks!

Just capturing this here so someone capable of helping to implement might see it:

> [@Warn staff when action will override site restriction](https://meta.discourse.org/t/warn-staff-when-action-will-override-site-restriction/57521/12):
>
> extend this to posting in specific categories and non-participating PMs…

That would be great too! If added, maybe this can be renamed or merged into a more general warn-admins theme component for a range of (maybe selectable?) warnings for cases where admins do things in _non-admin_ spaces that would not be allowed were they not admins.

---

<div class="post-metadata">

### Author: ![wolftune](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolftune/32/103569_2.png) [@wolftune](https://meta.discourse.org/u/wolftune)
#### Post date: [2018 年11 月 5 日 19:55 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/4 "2018-11-05T19:55:22Z")

</div>

Maybe the code isn’t set right, but when I try to import this theme-component, it only imports as a full theme and isn’t selectable as a component for other themes…

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018 年11 月 5 日 19:56 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/5 "2018-11-05T19:56:07Z")

</div>

If you scroll back up to the original post you’ll see that Discourse automatically lists replies or topics which link in:

 ![03%20AM](https://global.discourse-cdn.com/meta/original/3X/e/7/e70d8ecb53ae21b9297da9108cbd32c90f37d647.png)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018 年11 月 5 日 19:56 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/6 "2018-11-05T19:56:52Z")

</div>

Yep, it needs to be updated to support a change from the summer. For now you can use the convert button. I will submit a PR for it now though.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018 年11 月 5 日 20:05 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/7 "2018-11-05T20:05:36Z")

</div>

I’ve submitted a PR, but looking back @Johani actually already submitted this PR which does the same thing:

[https://github.com/davidtaylorhq/discourse-admin-warnings/pull/1](https://github.com/davidtaylorhq/discourse-admin-warnings/pull/1)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [2018 年11 月 5 日 20:09 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/8 "2018-11-05T20:09:12Z")

</div>

My bad, I completely missed your PR @Johani - sorry! The change is now merged, thanks @Stephen

---

<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: [2020 年2 月 5 日 15:09 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/9 "2020-02-05T15:09:22Z")

</div>

你好，David，回复已关闭的话题时，这是否也会警告等级为 4 的版主用户？

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [2020 年2 月 5 日 15:10 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/10 "2020-02-05T15:10:36Z")

</div>

是的，应该可以——它会通知任何试图回复已关闭主题的人。我可能应该为这个组件起个更好的名字……

---

<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: [2020 年2 月 5 日 15:12 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/11 "2020-02-05T15:12:22Z")

</div>

太棒了，谢谢！这非常管用，因为我们经常遇到高级用户回复已关闭的话题。感谢你们如此出色的插件！

---

<div class="post-metadata">

### Author: ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)
#### Post date: [2020 年6 月 7 日 12:41 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/12 "2020-06-07T12:41:36Z")

</div>

我觉得这个可能需要更新？（在某个更新后停止工作，但没注意到具体是哪一个）。

---

<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: [2020 年11 月 19 日 02:47 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/13 "2020-11-19T02:47:27Z")

</div>

我正在运行最新的测试通过的 Discourse，该组件仍然正常工作。

您是否在运行测试版？

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2026 年7 月 22 日 18:29 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/20 "2026-07-22T18:29:19Z")

</div>

@david 我已经提交了一个 PR 来修复这个问题，有空的话能帮忙看看吗？

> <https://github.com/davidtaylorhq/discourse-admin-warnings/pull/6>
>
> This refactors the component to get it working again. I've restructured it to us…e composer popups and also include a button so someone with permissions can choose to open/unarchive a topic if desired. 
> 
> \<img width="800" alt="image" src="https://github.com/user-attachments/assets/fff21314-c34d-43f2-972b-36ecdfc97e40" /\>
> 
> \<img width="800" alt="image" src="https://github.com/user-attachments/assets/c537c1f1-2860-46f1-84d1-cf93f33dfbf4" /\>

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [2026 年7 月 22 日 18:57 UTC](https://meta.discourse.org/t/warn-admins-tl4-when-replying-to-closed-topics/83912/21 "2026-07-22T18:57:50Z")

</div>

看起来很棒——谢谢！
