# Latest

**URL:** https://meta.discourse.org/latest.md?page=287&period=daily

[最新](https://meta.discourse.org/latest.md) · [类别](https://meta.discourse.org/categories.md) · [标签](https://meta.discourse.org/tags.md)

**Page:** 288

---

## [开发 Discourse 主题和主题组件](https://meta.discourse.org/t/developing-discourse-themes-theme-components/93648)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回复:** 14\
**最近更新：:** [2025 年3 月 18 日 23:33 UTC](https://meta.discourse.org/t/developing-discourse-themes-theme-components/93648 "2025-03-18T23:33:05Z")

</div>

Discourse 主题和主题组件可用于自定义 Discourse 前端的观感和功能。本开发者指南部分旨在提供您开发所需的所有参考资料……

---

## [书签收藏夹 / 文件夹](https://meta.discourse.org/t/bookmark-collections-folders/357858)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**回复:** 3\
**最近更新：:** [2025 年3 月 18 日 23:23 UTC](https://meta.discourse.org/t/bookmark-collections-folders/357858 "2025-03-18T23:23:17Z")

</div>

如果我们可以像 Instagram 和 Facebook 那样为书签创建集合/文件夹，那就太好了。 我看到了这个话题，不幸的是，至少在当时，没有这方面的计划。而且我不确定建议的“解决方案”——给自己发私信——是否是一个好方法。书签应该有自己的页面。如果我给自己发书签私信，但收到很多其他用户的私信，那还是会很混乱。

---

## [为什么有些主题没有钉到我这里？](https://meta.discourse.org/t/why-are-some-topics-unpinned-to-me/357847)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**回复:** 12\
**最近更新：:** [2025 年3 月 18 日 23:01 UTC](https://meta.discourse.org/t/why-are-some-topics-unpinned-to-me/357847 "2025-03-18T23:01:21Z")

</div>

我不止一次看到这个。为什么有些主题即使有置顶图标，却对我来说没有置顶？

---

## [Logs中未找到MaxMindDB GeoLite2-City.mmdb的错误](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685)

<div class="topic-metadata">

**Author:** [@emonunix](https://meta.discourse.org/u/emonunix)\
**回复:** 5\
**最近更新：:** [2025 年3 月 18 日 21:59 UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685 "2025-03-18T21:59:50Z")

</div>

我的 Discourse 实例中出现了一个问题，日志中显示了以下错误： 找不到 MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb)：No such file or directory 2 rb\_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb 看起来 Discourse 无法找到 GeoL…

---

## [在登录页面填写电子邮件字段](https://meta.discourse.org/t/populating-email-field-on-login-page/357616)

<div class="topic-metadata">

**Author:** [@Clemoun](https://meta.discourse.org/u/Clemoun)\
**回复:** 1\
**最近更新：:** [2025 年3 月 18 日 21:37 UTC](https://meta.discourse.org/t/populating-email-field-on-login-page/357616 "2025-03-18T21:37:01Z")

</div>

你好， 我该如何向用户发送登录链接，并确保电子邮件字段已预先填充？ 类似于 www.my-discourse-site.com/login?email=person@gmail.com 这样，当用户点击时，他们的电子邮件（person@gmail.com）就会预先填入登录页面。 谢谢。

---

## [我没有收到任何通知邮件](https://meta.discourse.org/t/im-not-receiving-any-notification-emails/357793)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**回复:** 3\
**最近更新：:** [2025 年3 月 18 日 21:18 UTC](https://meta.discourse.org/t/im-not-receiving-any-notification-emails/357793 "2025-03-18T21:18:53Z")

</div>

我今天早上收到了摘要邮件，但现在我只是在测试回复一个测试账户，然后回复我的管理员，但是没有一个账户收到邮件。 我总是关闭目标账户的浏览器，以避免系统认为我在在线，但这并没有改变任何事情。 我尝试从 /admin/email 发送测试邮件，并在两个账户都收到了，所以这是某个设置没有正确配置。 编辑：我认为问题可能出在这里： 我在哪里配置时间（在本例中设置为 10 分钟）？基本上，我希望在用户没有打开浏览器窗口时立即发送邮件，…

---

## [用户资料和用户管理页面上的旗帜计数不同](https://meta.discourse.org/t/flag-count-different-on-user-profile-and-user-admin-page/357687)

<div class="topic-metadata">

**Author:** [@one1](https://meta.discourse.org/u/one1)\
**回复:** 3\
**最近更新：:** [2025 年3 月 18 日 20:29 UTC](https://meta.discourse.org/t/flag-count-different-on-user-profile-and-user-admin-page/357687 "2025-03-18T20:29:22Z")

</div>

收到报告称，用户个人资料和用户管理页面之间的标记数量不同。例如： 但在用户管理页面上： 我的第一反应是管理页面上的统计数据只是过去 100 天的数据，但没有迹象表明是这种情况。或者“给予/收到的标记”是一个不明显的特定指标吗？ 我找到了这篇帖子关于访问用户管理页面，但我找不到一个页面更详细地解释这些数字的情况。

---

## [用于AI垃圾邮件的最便宜/最好的AI是什么？](https://meta.discourse.org/t/whats-the-cheapest-best-ai-to-use-for-ai-spam/357655)

<div class="topic-metadata">

**Author:** [@trusktr](https://meta.discourse.org/u/trusktr)\
**回复:** 6\
**最近更新：:** [2025 年3 月 18 日 20:20 UTC](https://meta.discourse.org/t/whats-the-cheapest-best-ai-to-use-for-ai-spam/357655 "2025-03-18T20:20:18Z")

</div>

我正在尝试省钱。 :slight\_smile: 有什么推荐的 AI 既便宜又能很好地处理垃圾邮件吗？ 我对比较 AI 经验很少，这也是我第一次在 Discourse 中使用它们；希望有人能分享更多经验。 另外，“支持”这个类别最适合这类问题吗？

---

## [503 错误，无法发布、编辑、点赞等](https://meta.discourse.org/t/503-errors-cant-post-edit-like-etc/289979)

<div class="topic-metadata">

**Author:** [@dylanb](https://meta.discourse.org/u/dylanb)\
**回复:** 4\
**最近更新：:** [2025 年3 月 18 日 19:33 UTC](https://meta.discourse.org/t/503-errors-cant-post-edit-like-etc/289979 "2025-03-18T19:33:36Z")

</div>

I migrated my site to a new instance (Azure to Lightsail, 32gb ram) and am having a host of problems. The site is up and running but not seemingly working. It seems like I’m crashing my instance despite not having much…

---

## [弃用通知：twitter\_summary\_large\_image 已被 x\_summary\_large\_image 取代](https://meta.discourse.org/t/deprecation-notice-twitter-summary-large-image-replaced-with-x-summary-large-image/357686)

<div class="topic-metadata">

**Author:** [@emonunix](https://meta.discourse.org/u/emonunix)\
**回复:** 2\
**最近更新：:** [2025 年3 月 18 日 18:45 UTC](https://meta.discourse.org/t/deprecation-notice-twitter-summary-large-image-replaced-with-x-summary-large-image/357686 "2025-03-18T18:45:34Z")

</div>

您好，社区各位成员： 我在 Discourse 日志中遇到了以下弃用警告： Deprecation notice: 'SiteSetting.twitter\_summary\_large\_image’ has been deprecated. Please use ‘SiteSetting.x\_summary\_large\_image’ instead. (removal in Discourse 3.4) At /var/www/di…

---

## [在主题中覆盖 opengraph 数据的能力](https://meta.discourse.org/t/ability-to-override-opengraph-data-in-topics/357815)

<div class="topic-metadata">

**Author:** [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**回复:** 0\
**最近更新：:** [2025 年3 月 18 日 17:46 UTC](https://meta.discourse.org/t/ability-to-override-opengraph-data-in-topics/357815 "2025-03-18T17:46:32Z")

</div>

如果能够在话题中覆盖 OpenGraph 数据，将会非常棒。例如，在我们的社区中，可能有一个标题为 Version 5.3.2 Updated 的话题，属于正确的类别，因此名称是合理的。 但当链接被分享时，OpenGraph 数据被使用，Version 5.3.2 Updated 就变得不那么合适，因为人们不知道它属于产品A类别。 在这种情况下，如果你能在话题中添加你自己的 OpenGraph HTML，以覆盖在其他地方分享链接时使…

---

## [自定义徽章图片指南](https://meta.discourse.org/t/custom-badge-image-guidelines/357781)

<div class="topic-metadata">

**Author:** [@ganncamp](https://meta.discourse.org/u/ganncamp)\
**回复:** 1\
**最近更新：:** [2025 年3 月 18 日 17:27 UTC](https://meta.discourse.org/t/custom-badge-image-guidelines/357781 "2025-03-18T17:27:48Z")

</div>

我将要求我们的设计团队为我们创建一些自定义徽章图像。 在此之前，了解这些图像应遵循哪些指南会很有用 :sweat\_smile: 显然是正方形。还有其他要求吗？图像格式？分辨率？……？

---

## [有没有办法和Discobot聊天？](https://meta.discourse.org/t/is-there-a-way-to-chat-with-discobot/357658)

<div class="topic-metadata">

**Author:** [@trusktr](https://meta.discourse.org/u/trusktr)\
**回复:** 6\
**最近更新：:** [2025 年3 月 18 日 17:13 UTC](https://meta.discourse.org/t/is-there-a-way-to-chat-with-discobot/357658 "2025-03-18T17:13:27Z")

</div>

例如，我想向AI提问关于Discourse的功能、设置等方面的问题，并以聊天格式获得回复。 目前"Discoveries"搜索功能是否最接近这个需求？它有时会对搜索查询显示单个响应。 也许与Discobot打开聊天私信或频道，可能对进行有用的互动会很有帮助。

---

## [我如何编辑使用 api.addCommunitySectionLink 添加的侧边栏链接？](https://meta.discourse.org/t/how-can-i-edit-sidebar-links-that-are-added-with-api-addcommunitysectionlink/357629)

<div class="topic-metadata">

**Author:** [@manuel](https://meta.discourse.org/u/manuel)\
**回复:** 4\
**最近更新：:** [2025 年3 月 18 日 16:43 UTC](https://meta.discourse.org/t/how-can-i-edit-sidebar-links-that-are-added-with-api-addcommunitysectionlink/357629 "2025-03-18T16:43:47Z")

</div>

我想添加一个带有组件的新侧边栏链接。我正在使用此代码： api.addCommunitySectionLink({ name: "custom-homepage", route: "discovery.custom", title: "Home", text: "Home", icon: "house", }); 这会添加链接，但…

---

## [“组件是使用 gjs 编写的”——但事实并非如此](https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736)

<div class="topic-metadata">

**Author:** [@RGJ](https://meta.discourse.org/u/RGJ)\
**回复:** 7\
**最近更新：:** [2025 年3 月 18 日 16:23 UTC](https://meta.discourse.org/t/component-was-authored-using-gjs-but-it-is-not/357736 "2025-03-18T16:23:15Z")

</div>

在稳定版 3.4.1 上。 我的插件中有这个文件 /assets/javascripts/discourse/controllers/user-feedback.js 然后 /assets/javascripts/discourse/templates/user-feedback.hbs 包含 {{feedback-stream stream=this.model}} 然后是这些文件： /assets/javascript…

---

## [Theme Developer Tutorial: 5. Building and using components](https://meta.discourse.org/t/theme-developer-tutorial-5-building-and-using-components/357800)

<div class="topic-metadata">

**Author:** [@system](https://meta.discourse.org/u/system)\
**回复:** 0\
**最近更新：:** [2025 年3 月 18 日 15:59 UTC](https://meta.discourse.org/t/theme-developer-tutorial-5-building-and-using-components/357800 "2025-03-18T15:59:11Z")

</div>

In the last chapter, we explored how you can render Glimmer Components into plugin outlets, and moved our CustomWelcomeBanner component into its own file. In this chapter, we’ll extend the functionality of the banner to …

---

## [Theme Developer Tutorial: 4. Using Outlets to insert and replace content](https://meta.discourse.org/t/theme-developer-tutorial-4-using-outlets-to-insert-and-replace-content/357799)

<div class="topic-metadata">

**Author:** [@system](https://meta.discourse.org/u/system)\
**回复:** 0\
**最近更新：:** [2025 年3 月 18 日 15:59 UTC](https://meta.discourse.org/t/theme-developer-tutorial-4-using-outlets-to-insert-and-replace-content/357799 "2025-03-18T15:59:10Z")

</div>

Discourse uses the Ember JS Framework for its user interface. On top of Ember, Discourse provides a number of APIs to allow themes to customize the user interface. The most commonly-used API is Plugin Outlets. These out…

---

## [插入加入/离开群组按钮到帖子的简短代码](https://meta.discourse.org/t/short-code-to-insert-join-leave-group-button-into-a-post/63673)

<div class="topic-metadata">

**Author:** [@trudat](https://meta.discourse.org/u/trudat)\
**回复:** 11\
**最近更新：:** [2025 年3 月 18 日 15:31 UTC](https://meta.discourse.org/t/short-code-to-insert-join-leave-group-button-into-a-post/63673 "2025-03-18T15:31:21Z")

</div>

To integrate group memberships more fluidly into the community-building aspects of Discourse posts, it would helpful to have a short-cut for inserting the join group interface directly into any post. For example, it cou…

---

## [为什么为徽标图片使用两个页面，而不是一个？](https://meta.discourse.org/t/why-2-pages-for-the-logo-images-instead-of-1/357742)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**回复:** 5\
**最近更新：:** [2025 年3 月 18 日 14:26 UTC](https://meta.discourse.org/t/why-2-pages-for-the-logo-images-instead-of-1/357742 "2025-03-18T14:26:01Z")

</div>

我正在为我的论坛处理图片，我注意到这个有两个页面，每个页面都有一些独特的设置和描述。例如，在“品牌”中有一个用于 X/Twitter 的位置，但在“站点徽标”中则没有。 为什么不将此重定向到此页面？ /admin/site\_settings/category/branding

---

## [所有品牌形象的Photoshop模板在这里](https://meta.discourse.org/t/photoshop-template-for-all-branding-images-here/357755)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**回复:** 2\
**最近更新：:** [2025 年3 月 18 日 13:49 UTC](https://meta.discourse.org/t/photoshop-template-for-all-branding-images-here/357755 "2025-03-18T13:49:51Z")

</div>

我正在开发自己的论坛，既然我不得不为自己创建一个 Photoshop 文件，为什么不与可能需要它的人分享呢？ 我使用画板来一次性处理所有文件，然后可以“一键”导出所有文件。每个画板都有指南（水平和垂直），与画板中心对齐。 如果您发现任何不起作用或错误的地方，请随时分享。 Discourse Site Logo Template.psd.zip (15.1 KB)

---

## [在主题方面遇到困难](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**回复:** 5\
**最近更新：:** [2025 年3 月 18 日 13:29 UTC](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740 "2025-03-18T13:29:13Z")

</div>

我猜这应该是个简单的任务，但事实并非如此。 在我安装 Discourse 时，我只有黑暗主题。我想要一个浅色主题，所以我只是导出了黑暗主题，然后导入了它（我认为有一个复制按钮会让这个过程更简单快捷）。 当我导入它时，即使我将调色板更改为浅色（默认），当我将浅色主题设置为默认主题时，它仍然是深色的，即使在刷新页面后也是如此。我选择允许用户更改主题，但侧边栏中没有更改它的选项。 我错过了什么吗？

---

## [自动地图](https://meta.discourse.org/t/automated-map/357506)

<div class="topic-metadata">

**Author:** [@Amjed.akasheh](https://meta.discourse.org/u/Amjed.akasheh)\
**回复:** 5\
**最近更新：:** [2025 年3 月 18 日 13:19 UTC](https://meta.discourse.org/t/automated-map/357506 "2025-03-18T13:19:09Z")

</div>

你希望我做什么？地图 你什么时候需要完成？无所谓 你的预算是多少，用美元（$ USD）可以为这个任务提供？我不知道 !-- 我们鼓励在与潜在承包商或客户合作时保持谨慎和进行尽职调查。验证他们的资质，检查以前的作品，确保交易透明且合法。始终记住，你在市场中的安全和保障是你的责任。 --

---

## [Discourse-ip-alert：需要帮助创建的插件](https://meta.discourse.org/t/discourse-ip-alert-need-help-with-created-plugin/357738)

<div class="topic-metadata">

**Author:** [@OrkoGrayskull](https://meta.discourse.org/u/OrkoGrayskull)\
**回复:** 0\
**最近更新：:** [2025 年3 月 18 日 12:31 UTC](https://meta.discourse.org/t/discourse-ip-alert-need-help-with-created-plugin/357738 "2025-03-18T12:31:22Z")

</div>

此插件旨在在用户从可疑 IP 地址登录时，向所有管理员发送电子邮件警报。它通过从最新的身份验证令牌中提取 IP（使用 client\_ip 字段），将此 IP 与站点设置 (ip\_alert\_suspicious\_ips) 中定义的阻止列表进行检查，如果 IP 与任何阻止的模式匹配，则向所有管理员用户发送警告电子邮件。 观察到的错误： 尽管插件代码看起来正确，并且遵循标准的 Discourse 插件模式，但在登录时我仍然遇到通用的“糟…

---

## [让标签更明显](https://meta.discourse.org/t/make-tags-more-evident/357556)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**回复:** 3\
**最近更新：:** [2025 年3 月 18 日 12:03 UTC](https://meta.discourse.org/t/make-tags-more-evident/357556 "2025-03-18T12:03:34Z")

</div>

我注意到标签很容易被误认为是普通文本和标题的一部分，例如这里： 乍一看，可以读成“使用 Discourse 引用”。 如果所有标签都加上井号（#），会不会更好呢，因为人们已经习惯了？甚至可以采用不同的颜色（由管理员自定义）？ 或者可以遵循帖子中使用的相同格式，带有标签图标，但仍然使用自定义颜色：

---

## [Discourse 插件 API 更改：使用 api.registerValueTransformer 为 addPostMenuButton 和 component:topic-list](https://meta.discourse.org/t/discourse-plugin-api-changes-using-api-registervaluetransformer-for-addpostmenubutton-and-component-topic-list/357240)

<div class="topic-metadata">

**Author:** [@omppatil](https://meta.discourse.org/u/omppatil)\
**回复:** 3\
**最近更新：:** [2025 年3 月 18 日 06:16 UTC](https://meta.discourse.org/t/discourse-plugin-api-changes-using-api-registervaluetransformer-for-addpostmenubutton-and-component-topic-list/357240 "2025-03-18T06:16:02Z")

</div>

你好，我正在为本地开发使用版本3.2.0.beta4-dev和插件API版本0.8.7进行插件开发。然而，由于Discourse的近期变化，addPostMenuButton和component:topic-list函数已经被修改。 我如何可以为这些API函数使用api.registerValueTransformer？此外，我应该使用哪个插件API版本来匹配3.2.0.beta4-dev，以确保与api.registerValueT…

---

## [我怎样计算每月活跃用户数？](https://meta.discourse.org/t/how-can-i-count-monthly-active-users/357574)

<div class="topic-metadata">

**Author:** [@alefattorini](https://meta.discourse.org/u/alefattorini)\
**回复:** 2\
**最近更新：:** [2025 年3 月 18 日 11:17 UTC](https://meta.discourse.org/t/how-can-i-count-monthly-active-users/357574 "2025-03-18T11:17:38Z")

</div>

如何将此数字放入数据浏览器或自定义我的“关于”部分？ 现在我有这个，但 7 天对我来说不够。 对于活跃成员，我的意思是刚刚登录的人，没有发帖，没有点赞。 用户访问不是一回事。

---

## [Heap Analytics](https://meta.discourse.org/t/heap-analytics/357304)

<div class="topic-metadata">

**Author:** [@Joe\_F](https://meta.discourse.org/u/Joe_F)\
**回复:** 4\
**最近更新：:** [2025 年3 月 18 日 11:14 UTC](https://meta.discourse.org/t/heap-analytics/357304 "2025-03-18T11:14:30Z")

</div>

大家好！ 我想在我的讨论社区中添加 Heap Analytics 追踪，但一直找不到在哪里添加，有谁知道怎么做吗？ 谢谢，乔

---

## [聊天插件无法理解标签焦点](https://meta.discourse.org/t/chat-plugin-doesnt-understand-tab-focus/357426)

<div class="topic-metadata">

**Author:** [@SkyeDragon](https://meta.discourse.org/u/SkyeDragon)\
**回复:** 3\
**最近更新：:** [2025 年3 月 18 日 09:59 UTC](https://meta.discourse.org/t/chat-plugin-doesnt-understand-tab-focus/357426 "2025-03-18T09:59:20Z")

</div>

基本上，聊天插件不会考虑浏览器标签页当前是否处于聚焦/活动状态。 影响 通知丢失，标题栏未读计数丢失。 重现步骤 在 Firefox 最新版 3.5.0.beta2-dev 中测试 用户 A + B 登录 discourse 并使用聊天插件互相发送私信。 用户 A 打开了聊天窗口，但切换到了另一个标签页。 用户 B 向用户 A 发送消息。 用户 A 的标签页短暂显示“(1)”以表示新消息，但一秒后迅速隐藏。 用户 A 未收到桌面…

---

## [开发中](https://meta.discourse.org/t/developing/356530)

<div class="topic-metadata">

**Author:** [@Amjed.akasheh](https://meta.discourse.org/u/Amjed.akasheh)\
**回复:** 2\
**最近更新：:** [2025 年3 月 18 日 02:23 UTC](https://meta.discourse.org/t/developing/356530 "2025-03-18T02:23:12Z")

</div>

正在寻找一名开发人员，为我添加地图，并进行分类、子分类。通过 Facebook 和 Google 登录

---

## [有关于可定制组件的完整列表吗？](https://meta.discourse.org/t/is-there-a-comprehensive-list-of-customizable-components/357660)

<div class="topic-metadata">

**Author:** [@Justin\_Gonzalez](https://meta.discourse.org/u/Justin_Gonzalez)\
**回复:** 2\
**最近更新：:** [2025 年3 月 18 日 02:16 UTC](https://meta.discourse.org/t/is-there-a-comprehensive-list-of-customizable-components/357660 "2025-03-18T02:16:49Z")

</div>

我们的团队正在准备对我们当前的Discourse社区实例进行设计全面改造。为了加快过程，我们希望找到一个全面的列表（或某种最佳实践文档），能够让我们全面了解所有可自定义的品牌元素。这类文档存在吗？

[上一页](https://meta.discourse.org/latest.md?page=286&period=daily)

[下一页](https://meta.discourse.org/latest.md?page=288&period=daily)
