# Hot

**URL:** https://meta.discourse.org/hot.md?page=319

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 320

---

## [圣诞装饰组件 🎄](https://meta.discourse.org/t/christmas-decoration-component/173949)

<div class="topic-metadata">

**Author:** [@meghna](https://meta.discourse.org/u/meghna)\
**回覆:** 52\
**Last updated:** [2026年一月1日 11:07 UTC](https://meta.discourse.org/t/christmas-decoration-component/173949 "2026-01-01T11:07:24Z")

</div>

Adding a bit of festive flair to your forum – I present a Christmas decoration component! :christmas\_tree: This component includes three flairs: Christmas Lights Christmas Hats Christmas Decoration Image Each flai…

---

## [是否可以在喜欢的帖子中搜索？](https://meta.discourse.org/t/is-it-possible-to-search-in-liked-posts/319933)

<div class="topic-metadata">

**Author:** [@rayx](https://meta.discourse.org/u/rayx)\
**回覆:** 2\
**Last updated:** [2024年八月3日 04:35 UTC](https://meta.discourse.org/t/is-it-possible-to-search-in-liked-posts/319933 "2024-08-03T04:35:31Z")

</div>

您好，我认为这是一个常见的请求，但我找不到相关的讨论（我用“discourse search liked posts”进行了搜索）。我经常访问一个由 Discourse 驱动的技术论坛，并习惯于使用“点赞”作为书签。我的“点赞”列表里有超过 1000 篇帖子，我经常需要在这些帖子中搜索（例如，我记得我在某个点赞过的帖子中读过某个话题，但我忘了具体是哪个帖子）。但似乎这是不可能的。有什么建议吗？谢谢。

---

## [允许用户编辑自定义全局侧边栏部分](https://meta.discourse.org/t/let-users-edit-custom-global-sidebar-sections/294957)

<div class="topic-metadata">

**Author:** [@manuel](https://meta.discourse.org/u/manuel)\
**回覆:** 1\
**Last updated:** [2024年二月10日 19:19 UTC](https://meta.discourse.org/t/let-users-edit-custom-global-sidebar-sections/294957 "2024-02-10T19:19:33Z")

</div>

现在，当管理员添加一个自定义侧边栏部分并将其对所有人可见时，它对用户来说就像一个默认菜单部分。 用户可以添加自己的自定义部分，但该功能使用侧边栏底部的独特按钮。他们可能不知道它，然后会努力弄清楚它的实际工作原理。社区经理可能需要添加类似社区手册主题的内容来介绍和解释该功能。 如果管理员可以添加自定义全局部分，预先填充一些有用的用户链接并允许用户编辑它，那么它可能会更直观。编辑操作将不是唯一的，而是遵循编辑侧边栏部分的常见模式： …

---

## [Guidelines for CSS classes using BEM](https://meta.discourse.org/t/guidelines-for-css-classes-using-bem/361851)

<div class="topic-metadata">

**Author:** [@system](https://meta.discourse.org/u/system)\
**回覆:** 0\
**Last updated:** [2025年四月15日 05:48 UTC](https://meta.discourse.org/t/guidelines-for-css-classes-using-bem/361851 "2025-04-15T05:48:23Z")

</div>

Background When writing CSS classes for Discourse components, themes, or plugins, we follow a modified variant of Block Element Modifier (BEM). Following these guidelines will make it much less likely for CSS conflicts t…

---

## [Discourse 的配置即代码选项？](https://meta.discourse.org/t/config-as-code-options-for-discourse/279036)

<div class="topic-metadata">

**Author:** [@jrack](https://meta.discourse.org/u/jrack)\
**回覆:** 12\
**Last updated:** [2026年九月24日 16:26 UTC](https://meta.discourse.org/t/config-as-code-options-for-discourse/279036 "2026-09-24T16:26:47Z")

</div>

所以不谈论带有数据库等的实例部署。 是否有使用某种声明式格式来维护实例的模式？类别、标签、策略等。我曾认为这对我们的……会很好

---

## [分类布局覆盖](https://meta.discourse.org/t/categories-layout-override/131098)

<div class="topic-metadata">

**Author:** [@tshenry](https://meta.discourse.org/u/tshenry)\
**回覆:** 4\
**Last updated:** [2023年十二月21日 20:46 UTC](https://meta.discourse.org/t/categories-layout-override/131098 "2023-12-21T20:46:37Z")

</div>

通常，桌面端分类页面的布局通过全局站点设置进行配置。当此组件被添加到主题中时，它将允许您覆盖该特定主题的分类页面布局。 安装 R…

---

## [如何使用颜色在discourse中突出评论](https://meta.discourse.org/t/how-to-use-colors-to-highlight-comments-in-discourse/310784)

<div class="topic-metadata">

**Author:** [@Eman\_Ahmed](https://meta.discourse.org/u/Eman_Ahmed)\
**回覆:** 2\
**Last updated:** [2024年六月6日 10:35 UTC](https://meta.discourse.org/t/how-to-use-colors-to-highlight-comments-in-discourse/310784 "2024-06-06T10:35:29Z")

</div>

亲爱的各位， 我需要你的支持，以便在讨论中启用颜色，我们可以使用不同的颜色，甚至是蓝色和红色，以突出显示重要的评论

---

## [基于类别的投票限制](https://meta.discourse.org/t/category-based-vote-limits/58486)

<div class="topic-metadata">

**Author:** [@Uninen](https://meta.discourse.org/u/Uninen)\
**回覆:** 13\
**Last updated:** [2023年九月11日 05:58 UTC](https://meta.discourse.org/t/category-based-vote-limits/58486 "2023-09-11T05:58:47Z")

</div>

Is there a way to do category-based vote limits? I would like to have feature requests category with only few votes, but then also a bug tracking category with limitless votes so that a vote would mean “i experienced thi…

---

## [设置 DISCOURSE\_MAXMIND\_LICENSE\_KEY 会导致 docker 镜像/容器构建失败](https://meta.discourse.org/t/setting-discourse-maxmind-license-key-breaks-docker-image-container-build/277564)

<div class="topic-metadata">

**Author:** [@cbreit](https://meta.discourse.org/u/cbreit)\
**回覆:** 22\
**Last updated:** [2024年五月16日 19:06 UTC](https://meta.discourse.org/t/setting-discourse-maxmind-license-key-breaks-docker-image-container-build/277564 "2024-05-16T19:06:01Z")

</div>

嘿，大家好， 在运行基于 Docker 的安装时，设置 DISCOURSE\_MAXMIND\_LICENSE\_KEY 后，镜像创建过程会中止，并出现以下错误： /var/www/discourse/lib/discourse\_ip\_info.rb:48:in \`mmdb\_download'：未定义…

---

## [在Discourse中自己发布广告](https://meta.discourse.org/t/running-your-own-advertisements-in-discourse/361620)

<div class="topic-metadata">

**Author:** [@becl](https://meta.discourse.org/u/becl)\
**回覆:** 3\
**Last updated:** [2025年四月14日 01:26 UTC](https://meta.discourse.org/t/running-your-own-advertisements-in-discourse/361620 "2025-04-14T01:26:55Z")

</div>

我已经安装了Advertising插件，但发现它只允许运行类似Google Ads的广告。我想在我的论坛上运行广告，但我希望是我自己创建的广告，并向客户收取广告位费用。 我不确定该如何着手。我希望在主仪表板和某些类别中运行广告。不同类别的广告也会有所不同。 任何帮助或建议都将不胜感激。

---

## [没有侧边栏，但在新的 Digital Ocean droplet 安装中使用旧的汉堡菜单吗？](https://meta.discourse.org/t/no-sidebar-but-old-hamburger-on-new-digital-ocean-droplet-install/307619)

<div class="topic-metadata">

**Author:** [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**回覆:** 8\
**Last updated:** [2024年五月11日 05:31 UTC](https://meta.discourse.org/t/no-sidebar-but-old-hamburger-on-new-digital-ocean-droplet-install/307619 "2024-05-11T05:31:20Z")

</div>

我一直在遵循官方 Digital Ocean Discourse 滚装的安装指南，用于我个人网站的安装。我刚完成安装，但我注意到两个奇怪的行为： 我的侧边栏缺失，但……

---

## [在日志中出现死锁错误](https://meta.discourse.org/t/getting-deadlock-errors-in-logs/359146)

<div class="topic-metadata">

**Author:** [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**回覆:** 3\
**Last updated:** [2025年三月27日 18:37 UTC](https://meta.discourse.org/t/getting-deadlock-errors-in-logs/359146 "2025-03-27T18:37:49Z")

</div>

Job exception: PG::TRDeadlockDetected: ERROR: deadlock detected DETAIL: Process 29659 waits for ShareLock on transaction 892416679; blocked by process 29650. Process 29650 waits for ShareLock on transaction 892416541; …

---

## [使用 Discourse API 运行 Data Explorer 查询](https://meta.discourse.org/t/run-data-explorer-queries-with-the-discourse-api/120063)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 14\
**Last updated:** [2025年五月6日 17:15 UTC](https://meta.discourse.org/t/run-data-explorer-queries-with-the-discourse-api/120063 "2025-05-06T17:15:01Z")

</div>

:bookmark: 本指南解释了如何使用 Discourse API 创建、运行和管理 Data Explorer 插件的查询。 :person\_raising\_hand: 所需用户级别：管理员 几乎任何可以...

---

## [彻底删除系统中的用户数据](https://meta.discourse.org/t/completely-remove-user-data-from-the-system/310629)

<div class="topic-metadata">

**Author:** [@Crius](https://meta.discourse.org/u/Crius)\
**回覆:** 7\
**Last updated:** [2024年六月18日 13:09 UTC](https://meta.discourse.org/t/completely-remove-user-data-from-the-system/310629 "2024-06-18T13:09:34Z")

</div>

嘿，我们可能需要一种从数据库中彻底删除用户所有痕迹的方法。我不会详述，因为这很敏感，而且由于 GDPR，我们可能必须证明我们不保留任何……

---

## [标题分类导航栏](https://meta.discourse.org/t/header-categories-navbar/249179)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 37\
**Last updated:** [2026年二月15日 13:22 UTC](https://meta.discourse.org/t/header-categories-navbar/249179 "2026-02-15T13:22:58Z")

</div>

:discourse2: 摘要 Header Categories Navbar 是一个简单的组件，它会在站点头部添加一个父级分类链接的菜单，并在需要时添加水平滚动溢出效果。 :eyeglasses: 前…

---

## [为你的 Discourse 主题添加设置](https://meta.discourse.org/t/add-settings-to-your-discourse-theme/82557)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 6\
**Last updated:** [2025年七月8日 19:43 UTC](https://meta.discourse.org/t/add-settings-to-your-discourse-theme/82557 "2025-07-08T19:43:17Z")

</div>

Discourse 允许主题为站点管理员提供“设置”功能，这些设置由主题开发者添加，使站点管理员无需修改任何代码，也不必担心失去对主题的控制，即可通过用户界面自定义主题……

---

## [在未获得用户批准的情况下生成用户API密钥](https://meta.discourse.org/t/generate-user-api-key-without-user-approval/310210)

<div class="topic-metadata">

**Author:** [@BrainFried](https://meta.discourse.org/u/BrainFried)\
**回覆:** 3\
**Last updated:** [2024年六月2日 05:38 UTC](https://meta.discourse.org/t/generate-user-api-key-without-user-approval/310210 "2024-06-02T05:38:14Z")

</div>

我正在使用 Discourse 无头模式，能够通过管理员 API 密钥获取用户信息，但有人建议改为为每个用户生成一个用户 API。于是我在尝试采用该方法，但我不想……

---

## [Discourse AI 内部服务器错误](https://meta.discourse.org/t/discourse-ai-internal-server-error/360835)

<div class="topic-metadata">

**Author:** [@Gabriel\_Devries](https://meta.discourse.org/u/Gabriel_Devries)\
**回覆:** 3\
**Last updated:** [2025年四月8日 04:48 UTC](https://meta.discourse.org/t/discourse-ai-internal-server-error/360835 "2025-04-08T04:48:14Z")

</div>

我正在通过自托管的 docker 在 ubuntu 虚拟机上运行 Discourse。我已经成功安装了 Discourse AI 插件，所有设置都显示在管理员面板上，但是当我尝试使用任何 AI 服务或在管理员面板上测试它们时，我遇到了这些错误。坦白说，我不知道这里发生了什么，我可以用 curl -I 在 docker 中 ping 通 OpenAI 的 API 和 Google 的 API，但实际的 Discourse AI 实现似乎…

---

## [寻找一位Discourse专家（最好在澳大利亚）](https://meta.discourse.org/t/looking-for-a-discourse-expert-ideally-australian-based/360318)

<div class="topic-metadata">

**Author:** [@thulini](https://meta.discourse.org/u/thulini)\
**回覆:** 2\
**Last updated:** [2025年四月4日 12:52 UTC](https://meta.discourse.org/t/looking-for-a-discourse-expert-ideally-australian-based/360318 "2025-04-04T12:52:14Z")

</div>

您好， 我们正在寻找一位 Discourse 专家，帮助我们将 Discourse 社区提升到新的水平。 我们希望将 Discourse 与我们的协会网站解决方案集成。

---

## [标题与话题导航弹出窗口中的关闭按钮重叠](https://meta.discourse.org/t/title-overlaps-close-button-in-topic-navigation-popup/349018)

<div class="topic-metadata">

**Author:** [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**回覆:** 0\
**Last updated:** [2025年一月26日 02:03 UTC](https://meta.discourse.org/t/title-overlaps-close-button-in-topic-navigation-popup/349018 "2025-01-26T02:03:27Z")

</div>

标题与关闭按钮重叠的细微用户体验问题。 上下文示例：时间线

---

## [自动将 WordPress 用户添加到 Discourse 群组](https://meta.discourse.org/t/automatically-add-wordpress-user-to-discourse-group/293321)

<div class="topic-metadata">

**Author:** [@IreneT](https://meta.discourse.org/u/IreneT)\
**回覆:** 4\
**Last updated:** [2024年一月30日 19:30 UTC](https://meta.discourse.org/t/automatically-add-wordpress-user-to-discourse-group/293321 "2024-01-30T19:30:29Z")

</div>

我已将 WP-Discourse 与 Discourse 和 WordPress 会员插件“Wishlist Member”配置在一起，并拥有一个正常运行的社区。目前，我们有一个通用群组（群组：General），我们所有的会员都会自动……

---

## ['|' 干扰表格](https://meta.discourse.org/t/interfering-with-the-table/292758)

<div class="topic-metadata">

**Author:** [@Plabforum](https://meta.discourse.org/u/Plabforum)\
**回覆:** 6\
**Last updated:** [2024年一月24日 13:03 UTC](https://meta.discourse.org/t/interfering-with-the-table/292758 "2024-01-24T13:03:10Z")

</div>

我不知道该如何更好地解释，但遇到了两次这个问题。 如果我想把图片放入表格格式，图片中的这个 :point\_right:t2: ‘|’ 总是会干扰。 一个例子我想要的是什么？并排放在表格中 …

---

## [批量屏蔽来自 /latest 的主题未按预期工作](https://meta.discourse.org/t/bulk-suppressing-topics-from-latest-not-working-as-expected/360279)

<div class="topic-metadata">

**Author:** [@thaidb](https://meta.discourse.org/u/thaidb)\
**回覆:** 3\
**Last updated:** [2025年四月3日 23:44 UTC](https://meta.discourse.org/t/bulk-suppressing-topics-from-latest-not-working-as-expected/360279 "2025-04-03T23:44:25Z")

</div>

大家好， 我目前正在使用 Suppress category from latest 插件来隐藏 /latest 页面上的主题，但仍能在各自的类别中显示它们。我大约有 200 个类别希望从 /latest 中隐藏，只有大约 10 个类别应该在主页上显示主题。 为实现此目的，我尝试在 Rails 控制台中运行以下代码： Category.all.each do |cat| cat.custom\_fields\["suppress\_…

---

## [在安卓手机上，聊天中选择/长按没有反应](https://meta.discourse.org/t/select-long-press-doesn-t-do-anything-in-chat-on-androids/365496)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**回覆:** 3\
**Last updated:** [2025年五月10日 06:01 UTC](https://meta.discourse.org/t/select-long-press-doesn-t-do-anything-in-chat-on-androids/365496 "2025-05-10T06:01:08Z")

</div>

我的 Android 用户报告说他们无法在聊天中发送表情符号回复或回复，因为点击无法打开模态框。此外，他们还无法选择文本。我建议他们尝试安全模式和无组件的测试主题，但这些都没有帮助。 不幸的是，我无法测试这个问题，因为我没有 Android 手机。

---

## [如何创建一个包含解决方案的帮助主题？](https://meta.discourse.org/t/how-to-make-a-help-topic-with-solutions/307947)

<div class="topic-metadata">

**Author:** [@JellyForums](https://meta.discourse.org/u/JellyForums)\
**回覆:** 4\
**Last updated:** [2024年五月14日 19:28 UTC](https://meta.discourse.org/t/how-to-make-a-help-topic-with-solutions/307947 "2024-05-14T19:28:27Z")

</div>

我已广泛搜索帮助主题，但没有找到关于如何制作可以标记为解决方案的主题的教程。我试过Admin tools，但没有看到解决方案主题的教程。谢谢你的帮助……

---

## [DM/频道/话题中 AI 机器人聊天的单独设置](https://meta.discourse.org/t/separate-settings-for-ai-bot-chat-in-dm-channel-topic/330359)

<div class="topic-metadata">

**Author:** [@fbpbdmin](https://meta.discourse.org/u/fbpbdmin)\
**回覆:** 3\
**Last updated:** [2024年十月15日 20:21 UTC](https://meta.discourse.org/t/separate-settings-for-ai-bot-chat-in-dm-channel-topic/330359 "2024-10-15T20:21:43Z")

</div>

{“content”:"功能请求： 为私信/频道/话题讨论分别设置启用/禁用 AI 机器人的选项 问题： 目前，对于一个角色，有“允许聊天”和“允许提及”的设置。 如果允许提及，就可以在频道和话题讨论中与 AI 机器人聊天。 但无法实现在频道中允许 AI 机器人聊天，而在话题讨论中不允许。 在话题讨论中允许 AI 机器人聊天很有用，但话题很容易被这些 AI 生成的内容淹没。 回复机器人的消息会触发 AI 机器人回复……这是…

---

## [隐藏的时间线按钮](https://meta.discourse.org/t/hidden-timeline-button/370240)

<div class="topic-metadata">

**Author:** [@mrmowji](https://meta.discourse.org/u/mrmowji)\
**回覆:** 5\
**Last updated:** [2025年六月15日 10:29 UTC](https://meta.discourse.org/t/hidden-timeline-button/370240 "2025-06-15T10:29:18Z")

</div>

我搜索了这个问题。最接近的是 https://meta.discourse.org/t/timeline-button-hidden-behind-draft/294187。但不一样。问题是时间线按钮根本不显示。我正在使用def …

---

## [全屏模式聊天出现问题](https://meta.discourse.org/t/problem-with-chat-in-fullscreen-mode/292550)

<div class="topic-metadata">

**Author:** [@Roi](https://meta.discourse.org/u/Roi)\
**回覆:** 9\
**Last updated:** [2024年一月23日 12:07 UTC](https://meta.discourse.org/t/problem-with-chat-in-fullscreen-mode/292550 "2024-01-23T12:07:20Z")

</div>

你好， 在构建 aee7197c43 的全屏模式下，聊天在桌面端和平板电脑上显示如下： 在从最新的 Ember 3 构建之一升级之前，它的显示是正常的。

---

## [安装这些插件时重建失败](https://meta.discourse.org/t/rebuild-fails-when-these-plugins-are-present/310455)

<div class="topic-metadata">

**Author:** [@KhoiUSA](https://meta.discourse.org/u/KhoiUSA)\
**回覆:** 9\
**Last updated:** [2024年六月26日 00:30 UTC](https://meta.discourse.org/t/rebuild-fails-when-these-plugins-are-present/310455 "2024-06-26T00:30:58Z")

</div>

您好，我最近在重建我的网站时发现该过程一直出错。在故障排除步骤中，我删除了我网站上的所有插件（所有插件都是官方的），并且网站得以重建。 有人能帮我检查一下我下面使用的官方插件，看看是否有插件在重建过程中出现问题？谢谢。 ## 插件在此处 ## 详情请参阅 https://meta.discourse.org/t/19157 hooks: after\_code: - exec: cd: $home/plug…

---

## [创建新主题时出现内部服务器错误](https://meta.discourse.org/t/internal-server-error-when-creating-new-topic/360719)

<div class="topic-metadata">

**Author:** [@Roi](https://meta.discourse.org/u/Roi)\
**回覆:** 2\
**Last updated:** [2025年四月7日 14:58 UTC](https://meta.discourse.org/t/internal-server-error-when-creating-new-topic/360719 "2025-04-07T14:58:19Z")

</div>

我昨天晚上升级了 Discourse。现在发现创建新主题时会显示内部服务器错误。编辑器仍然存在，所有内容都会保存为草稿，并且新主题仍然会被创建。 在日志中我可以看到： ArgumentError (参数数量错误 (给定 2，预期 1)) app/controllers/posts\_controller.rb:752:in backwards\_compatible\_json' lib/plugin/instance.rb:409:i…

[上一頁](https://meta.discourse.org/hot.md?page=318)

[下一頁](https://meta.discourse.org/hot.md?page=320)
