# Development

**URL:** https://meta.discourse.org/c/dev/7.md?page=45

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

**Page:** 46

---

## [隐藏特定分类的面包屑](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524)

<div class="topic-metadata">

**Author:** [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)\
**回覆:** 5\
**Last updated:** [2023年六月26日 01:20 UTC](https://meta.discourse.org/t/hide-category-breadcrumb-from-a-specific-category/269524 "2023-06-26T01:20:00Z")

</div>

如何从特定类别隐藏整个类别面包屑部分？ 我想隐藏整个部分： 我尝试了以下方法，但不起作用： body\[class\*=\\u0026#39;category-myCategorySlug-\\u0026#39;\] ol.category-brea\\u0026hellip;

---

## [通过其他用户组使一个组可见](https://meta.discourse.org/t/make-a-group-visible-by-user-with-a-other-group/269059)

<div class="topic-metadata">

**Author:** [@ledadu](https://meta.discourse.org/u/ledadu)\
**回覆:** 3\
**Last updated:** [2023年六月24日 15:29 UTC](https://meta.discourse.org/t/make-a-group-visible-by-user-with-a-other-group/269059 "2023-06-24T15:29:29Z")

</div>

示例： 主组（他自己可见）： group\_1（group\_1中的用户可见） 到目前为止…… 我的请求在这里： 子组： sub\_group\_1（仅group\_1中的用户可见） 目标是仅……

---

## [显示浏览量而非回复](https://meta.discourse.org/t/show-views-instead-of-replies/187146)

<div class="topic-metadata">

**Author:** [@Tiago\_Amaral](https://meta.discourse.org/u/Tiago_Amaral)\
**回覆:** 5\
**Last updated:** [2023年六月24日 04:18 UTC](https://meta.discourse.org/t/show-views-instead-of-replies/187146 "2023-06-24T04:18:25Z")

</div>

大家好，我想知道是否有人尝试过在主页上显示浏览量而不是回复数。 我已经能够使用 CSS 隐藏回复数，但我很难尝试显示它……

---

## [我有一个react应用，我想实现SSO功能。但我总是收到一个nonce错误](https://meta.discourse.org/t/i-have-a-react-app-and-i-want-to-implement-the-sso-feature-but-i-always-get-a-nonce-error/269393)

<div class="topic-metadata">

**Author:** [@Mohammad\_Ghandour](https://meta.discourse.org/u/Mohammad_Ghandour)\
**回覆:** 0\
**Last updated:** [2023年六月23日 14:01 UTC](https://meta.discourse.org/t/i-have-a-react-app-and-i-want-to-implement-the-sso-feature-but-i-always-get-a-nonce-error/269393 "2023-06-23T14:01:27Z")

</div>

所以我已经检查了启用 discourse connect，并成功指定了 discourse connect url 和设置了 discourse connect secret。 在 discourse connect url 的页面上，我正在执行以下操作： functio…

---

## [自定义 CSS/HTML](https://meta.discourse.org/t/custom-css-html/269362)

<div class="topic-metadata">

**Author:** [@denvergeeks](https://meta.discourse.org/u/denvergeeks)\
**回覆:** 12\
**Last updated:** [2023年六月23日 11:06 UTC](https://meta.discourse.org/t/custom-css-html/269362 "2023-06-23T11:06:36Z")

</div>

我很失望，因为（我想是去年）自定义 CSS/HTML 字段已被移除，除了默认主题之外的所有主题。我发现的一个解决方法是修改默认主题，然后使用导出…

---

## [集成类似GPT3的机器人？](https://meta.discourse.org/t/integrating-gpt3-like-bots/242665)

<div class="topic-metadata">

**Author:** [@philip\_rhoades](https://meta.discourse.org/u/philip_rhoades)\
**回覆:** 61\
**Last updated:** [2023年五月10日 06:07 UTC](https://meta.discourse.org/t/integrating-gpt3-like-bots/242665 "2023-05-10T06:07:35Z")

</div>

各位， 我看到有一些关于在各种级别上将机器人集成到 Discourse 中的有趣话题，但我没有看到任何关于集成像 GPT-3、BlenderBot 等大型记忆模型 AI 机器人的话题。有没有……

---

## [是否可以通过 API 获取所有用户的电子邮件？](https://meta.discourse.org/t/is-there-a-way-to-get-all-emails-of-users-with-the-api/131077)

<div class="topic-metadata">

**Author:** [@alank](https://meta.discourse.org/u/alank)\
**回覆:** 5\
**Last updated:** [2019年十月15日 17:32 UTC](https://meta.discourse.org/t/is-there-a-way-to-get-all-emails-of-users-with-the-api/131077 "2019-10-15T17:32:51Z")

</div>

我看到过这个链接：有没有办法从 API 获取用户电子邮件地址？ 不过，我们需要通过 Discourse API 在另一个服务中验证某个电子邮件是否存在于 Discourse 站点上。我们可以搜索用户名…

---

## [最新列表作为网格视图](https://meta.discourse.org/t/latest-list-as-grid-view/268790)

<div class="topic-metadata">

**Author:** [@daemon](https://meta.discourse.org/u/daemon)\
**回覆:** 12\
**Last updated:** [2023年六月22日 15:00 UTC](https://meta.discourse.org/t/latest-list-as-grid-view/268790 "2023-06-22T15:00:27Z")

</div>

您好！ 我目前正在开发自己的“博客”主题，并希望将最新的视图设置为网格样式（就像此处的主题类别一样）。 我知道有几个组件可以实现此目的，但我的帖子中没有图片……

---

## [获取 DButton 的 @label 属性以正常显示](https://meta.discourse.org/t/get-dbutton-label-attribute-to-display-properly/269262)

<div class="topic-metadata">

**Author:** [@Abraham\_Olaobaju](https://meta.discourse.org/u/Abraham_Olaobaju)\
**回覆:** 2\
**Last updated:** [2023年六月22日 12:52 UTC](https://meta.discourse.org/t/get-dbutton-label-attribute-to-display-properly/269262 "2023-06-22T12:52:40Z")

</div>

r…

---

## [Discourse 数据库带模拟数据](https://meta.discourse.org/t/discourse-database-with-dummy-data/269247)

<div class="topic-metadata">

**Author:** [@gassim](https://meta.discourse.org/u/gassim)\
**回覆:** 2\
**Last updated:** [2023年六月22日 11:12 UTC](https://meta.discourse.org/t/discourse-database-with-dummy-data/269247 "2023-06-22T11:12:59Z")

</div>

你好 我想知道是否有任何在线的 Discourse 数据库包含我可以下载的模拟数据。如果您有包含模拟数据的数据库，您愿意与我分享吗？ 我为什么需要一个模拟数据库？Discours…

---

## [将最大帖子长度设置增加到 150k 以上](https://meta.discourse.org/t/increase-the-max-post-length-setting-above-150k/269069)

<div class="topic-metadata">

**Author:** [@salbertelli](https://meta.discourse.org/u/salbertelli)\
**回覆:** 6\
**Last updated:** [2023年六月21日 18:18 UTC](https://meta.discourse.org/t/increase-the-max-post-length-setting-above-150k/269069 "2023-06-21T18:18:02Z")

</div>

您好，我们正在使用 Discourse v3.0.3，并且 max\_post\_length 设置为默认最大值 150,000 个字符。然而，我们有几位技术专家从现场提供解决方案回复……

---

## [如何自定义仪表板？](https://meta.discourse.org/t/how-to-customize-the-dashboard/269004)

<div class="topic-metadata">

**Author:** [@Joart](https://meta.discourse.org/u/Joart)\
**回覆:** 8\
**Last updated:** [2023年六月20日 15:34 UTC](https://meta.discourse.org/t/how-to-customize-the-dashboard/269004 "2023-06-20T15:34:29Z")

</div>

我想自定义仪表板，但我不知道该怎么做。在黑暗模式下，我有一个对比度问题…… 我们如何访问画布标签的 CSS？

---

## [在 api.onPageChange 事件中获取当前路由名称](https://meta.discourse.org/t/get-current-route-name-in-api-onpagechange-event/269019)

<div class="topic-metadata">

**Author:** [@ksavani](https://meta.discourse.org/u/ksavani)\
**回覆:** 2\
**Last updated:** [2023年六月20日 12:47 UTC](https://meta.discourse.org/t/get-current-route-name-in-api-onpagechange-event/269019 "2023-06-20T12:47:04Z")

</div>

大家好， 我想在api.onpagechange事件中获取当前路由的名称。 api.onPageChange((url, title) =\>{ console.log("当前路由名称") }); 在上面的函数中，我想要当前路由的名称……

---

## [如何根据深色或浅色模式更改 CSS 项？](https://meta.discourse.org/t/how-to-change-css-item-based-on-dark-or-light-mode/268631)

<div class="topic-metadata">

**Author:** [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**回覆:** 11\
**Last updated:** [2023年六月18日 18:35 UTC](https://meta.discourse.org/t/how-to-change-css-item-based-on-dark-or-light-mode/268631 "2023-06-18T18:35:52Z")

</div>

我搜索时似乎没有找到明确的答案，但我想为深色和浅色分别更改一个 CSS 项目。 在 Discourse 中完成此操作的最佳方法是什么？

---

## [如何创建只有管理员才能使用的主题？](https://meta.discourse.org/t/how-to-create-a-theme-which-only-administrators-can-use/268500)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**回覆:** 17\
**Last updated:** [2023年六月17日 16:52 UTC](https://meta.discourse.org/t/how-to-create-a-theme-which-only-administrators-can-use/268500 "2023-06-17T16:52:05Z")

</div>

如何创建只有管理员才能使用的主题？

---

## [在每个类别/标签旁边添加帖子数量](https://meta.discourse.org/t/add-number-of-posts-next-to-each-category-tag/268619)

<div class="topic-metadata">

**Author:** [@OsaIsacson](https://meta.discourse.org/u/OsaIsacson)\
**回覆:** 0\
**Last updated:** [2023年六月16日 13:02 UTC](https://meta.discourse.org/t/add-number-of-posts-next-to-each-category-tag/268619 "2023-06-16T13:02:56Z")

</div>

我想获取每个类别/标签下的帖子数量的变量。 Docs 目前正在这样做： …但我是否需要进入 Docs 仓库并搜寻那段代码？或者这个变量或（敢于……

---

## [为'Header Submenus'组件添加点击支持](https://meta.discourse.org/t/add-click-support-to-header-submenus-component/268503)

<div class="topic-metadata">

**Author:** [@Scott\_Hurrey](https://meta.discourse.org/u/Scott_Hurrey)\
**回覆:** 1\
**Last updated:** [2023年六月15日 20:52 UTC](https://meta.discourse.org/t/add-click-support-to-header-submenus-component/268503 "2023-06-15T20:52:50Z")

</div>

我正在使用 Header submenus 主题组件来样式化我们的标题以匹配我们其他的开发者属性。标题中有一个顶级的‘Community’项目，但使用该插件后，顶级条目没有 href 属性……

---

## [如何通过API获取群组的用户列表和简介的最佳方法](https://meta.discourse.org/t/best-way-to-get-via-api-a-list-of-users-from-a-group-and-their-bios/268332)

<div class="topic-metadata">

**Author:** [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**回覆:** 7\
**Last updated:** [2023年六月14日 20:07 UTC](https://meta.discourse.org/t/best-way-to-get-via-api-a-list-of-users-from-a-group-and-their-bios/268332 "2023-06-14T20:07:52Z")

</div>

我想做一个API调用，该调用可以返回给定用户组中的用户列表，以及他们的个人简介。我不想陷入为获取每个用户的个人简介而必须为每个用户进行新API调用的境地。 是否……

---

## [运行AI有任何费用吗？](https://meta.discourse.org/t/are-there-any-fees-for-running-ai/275742)

<div class="topic-metadata">

**Author:** [@Drew-ART](https://meta.discourse.org/u/Drew-ART)\
**回覆:** 9\
**Last updated:** [2023年六月14日 17:51 UTC](https://meta.discourse.org/t/are-there-any-fees-for-running-ai/275742 "2023-06-14T17:51:00Z")

</div>

这太棒了，我迫不及待想试试！ 是否有任何费用需要支付，或者社区规模有限制，以防止发送过多请求并需要支付费用来维持其运行？ 我知道这是一个敏感的话题……

---

## [将移动导航替换为类别下拉菜单](https://meta.discourse.org/t/replace-mobile-navigation-with-category-dropdown/268170)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**回覆:** 7\
**Last updated:** [2023年六月14日 17:13 UTC](https://meta.discourse.org/t/replace-mobile-navigation-with-category-dropdown/268170 "2023-06-14T17:13:45Z")

</div>

在手机上，我该如何移除最近、最新、最佳和类别，改为我论坛拥有的所有类别？

---

## [没有可用的 gem 版本](https://meta.discourse.org/t/no-gem-version-works/268148)

<div class="topic-metadata">

**Author:** [@wont93](https://meta.discourse.org/u/wont93)\
**回覆:** 3\
**Last updated:** [2023年六月13日 11:00 UTC](https://meta.discourse.org/t/no-gem-version-works/268148 "2023-06-13T11:00:22Z")

</div>

我尝试在本地开发环境中安装 newrelic。以下是我尝试过的 gem 版本列表： newrelic\_rpm-8.1.0 newrelic\_rpm-8.4.0 newrelic\_rpm-8.8.0 newrelic\_rpm-8.12.0 newrelic\_rpm-8.13.0 newrelic\_rpm-8.13.1 newrelic…

---

## [序列化器中重写 include\_\* 方法](https://meta.discourse.org/t/overriding-include-methods-in-serializers/268138)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**回覆:** 6\
**Last updated:** [2023年六月13日 09:33 UTC](https://meta.discourse.org/t/overriding-include-methods-in-serializers/268138 "2023-06-13T09:33:07Z")

</div>

嘿 @david， 关于这次弃用的原因，我有个快速的问题 弃用通知：不应直接使用 add\_to\_serializer 来覆盖 include\_\*? 方法 背景：DEV：改进 add\_to\_serializer incl……

---

## [如何仅对特定类别启用反应？](https://meta.discourse.org/t/how-to-enable-reactions-only-for-certain-categories/267029)

<div class="topic-metadata">

**Author:** [@Ralf\_Stockmann](https://meta.discourse.org/u/Ralf_Stockmann)\
**回覆:** 3\
**Last updated:** [2023年六月13日 09:16 UTC](https://meta.discourse.org/t/how-to-enable-reactions-only-for-certain-categories/267029 "2023-06-13T09:16:59Z")

</div>

哪种方法最适合按类别启用/禁用此功能？我们希望在社交内网的某些选定区域拥有更复杂的“类似 polis”机制，但又不想影响我们…

---

## [如何点击按钮时执行服务器端代码？](https://meta.discourse.org/t/how-to-execute-server-side-code-when-clicking-a-button/265795)

<div class="topic-metadata">

**Author:** [@Yogesh\_Kbizsoft](https://meta.discourse.org/u/Yogesh_Kbizsoft)\
**回覆:** 9\
**Last updated:** [2023年五月22日 05:58 UTC](https://meta.discourse.org/t/how-to-execute-server-side-code-when-clicking-a-button/265795 "2023-05-22T05:58:50Z")

</div>

我该如何做类似的事情， 当我点击一个自定义按钮时，我想运行一些服务器端代码。 例如，点击一个按钮，我想运行文件 Jobs/Secheduled/test\_job.rb 或者我能否运行此文件中的代码……

---

## [在其他应用程序中根据标题和搜索词搜索帖子结果时出现 CORS 错误](https://meta.discourse.org/t/having-cors-error-while-searching-post-results-based-on-title-and-search-term-in-other-application/267935)

<div class="topic-metadata">

**Author:** [@Sudhanshu\_Dasgupta](https://meta.discourse.org/u/Sudhanshu_Dasgupta)\
**回覆:** 0\
**Last updated:** [2023年六月11日 13:49 UTC](https://meta.discourse.org/t/having-cors-error-while-searching-post-results-based-on-title-and-search-term-in-other-application/267935 "2023-06-11T13:49:17Z")

</div>

在我的应用程序中，我有一个搜索栏，当用户输入内容时，他会从我们的讨论论坛中获得帖子作为结果，但在从其他应用程序主机设置 dicuss 后，它会给出 cors 错误。有人能帮帮我吗……

---

## [1个管理员API密钥的2个组ID](https://meta.discourse.org/t/2-group-ids-for-1-admin-api-key/267956)

<div class="topic-metadata">

**Author:** [@not-ethan](https://meta.discourse.org/u/not-ethan)\
**回覆:** 0\
**Last updated:** [2023年六月11日 20:09 UTC](https://meta.discourse.org/t/2-group-ids-for-1-admin-api-key/267956 "2023-06-11T20:09:47Z")

</div>

我需要对两个组具有读写权限，并希望密钥只拥有必要的权限。我尝试了 \`\<组 a 的名称\>,\<组 b 的名称\>\` 和 \`13,53\`，但都不奏效。我是否只需要使用 2 个 d...

---

## [给每个回复数加1？](https://meta.discourse.org/t/add-1-to-every-reply-count/267807)

<div class="topic-metadata">

**Author:** [@carbonrich](https://meta.discourse.org/u/carbonrich)\
**回覆:** 3\
**Last updated:** [2023年六月9日 17:15 UTC](https://meta.discourse.org/t/add-1-to-every-reply-count/267807 "2023-06-09T17:15:11Z")

</div>

在最近的可用性测试中出现的另一件事…… 我注意到一些用户对某些主页号码感到困惑，特别是回复列中的“0”，它表示一个未回复的主题。我很感激我们……

---

## [在 Inkscape 和 Photoshop 中制作的图标无法通过 CSS 更改颜色](https://meta.discourse.org/t/icons-made-in-inkscape-and-photoshop-do-not-have-colors-changed-via-css/267408)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**回覆:** 7\
**Last updated:** [2023年六月9日 13:47 UTC](https://meta.discourse.org/t/icons-made-in-inkscape-and-photoshop-do-not-have-colors-changed-via-css/267408 "2023-06-09T13:47:19Z")

</div>

我制作了一些图标放在我的论坛上，我用Photoshop制作了这些图标，但是当我通过CSS更改它们的颜色时，它们不会改变，我从谷歌网站下载的所有其他图标都会改变，除了我……

---

## [Model-Based Testing 实验](https://meta.discourse.org/t/experiments-with-model-based-testing/267737)

<div class="topic-metadata">

**Author:** [@larrytheliquid](https://meta.discourse.org/u/larrytheliquid)\
**回覆:** 0\
**Last updated:** [2023年六月8日 22:35 UTC](https://meta.discourse.org/t/experiments-with-model-based-testing/267737 "2023-06-08T22:35:51Z")

</div>

大家好，Discourse 社区！:slight\_smile: 我一直在从事一项名为 Colimit 的技术，该技术可以帮助人们将基于模型的测试应用于他们的 Web/浏览器/DOM 前端、API 后端，甚至 ORM 模型或视图模型。如果您……

---

## [在页脚部分添加Logo](https://meta.discourse.org/t/adding-logos-in-footer-section/267365)

<div class="topic-metadata">

**Author:** [@Michele\_Butturini](https://meta.discourse.org/u/Michele_Butturini)\
**回覆:** 30\
**Last updated:** [2023年六月8日 18:47 UTC](https://meta.discourse.org/t/adding-logos-in-footer-section/267365 "2023-06-08T18:47:30Z")

</div>

您好， 我想添加支持我管理的论坛的大学的徽标：https://fspm.discourse.group 正如您在底部看到的，我已经设法添加了它们，但我希望： 为每个徽标添加链接 sp...

[上一頁](https://meta.discourse.org/c/dev/7.md?page=44)

[下一頁](https://meta.discourse.org/c/dev/7.md?page=46)
