# 如何最好地向用户显示来自插件的自定义通知

**URL:** https://meta.discourse.org/t/what-is-the-best-way-to-display-custom-notice-to-users-from-plugin/180562
**Category:** Development
**Created:** [2021年二月21日 00:02 UTC](https://meta.discourse.org/t/what-is-the-best-way-to-display-custom-notice-to-users-from-plugin/180562 "2021-02-21T00:02:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hyd504](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hyd504/32/177122_2.png) [@hyd504](https://meta.discourse.org/u/hyd504)
#### Post date: [2021年二月21日 00:02 UTC](https://meta.discourse.org/t/what-is-the-best-way-to-display-custom-notice-to-users-from-plugin/180562/1 "2021-02-21T00:02:08Z")

</div>

我正在开发一个插件，用于防止用户在创建新话题后的一段时间内再次创建新话题。由于每位用户的等待时间不同，提示信息将不是通用的，而是针对每位用户有所不同。请问从插件角度实现这一功能的最佳方法是什么？具体该如何操作？

我喜欢这些提示信息的样式，是否有办法为用户创建类似的提示信息：

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/2/5247278493f9ca704cfe675cb7dc78b01bcdd0c7.png)

---

<div class="post-metadata">

### Author: ![hyd504](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hyd504/32/177122_2.png) [@hyd504](https://meta.discourse.org/u/hyd504)
#### Post date: [2021年二月21日 00:17 UTC](https://meta.discourse.org/t/what-is-the-best-way-to-display-custom-notice-to-users-from-plugin/180562/2 "2021-02-21T00:17:46Z")

</div>

目前我正在考虑使用插件中的 **top-notices** 出口覆盖配合 if 条件。不知道是否有更好的方法。
