# Wiki

**URL:** https://meta.discourse.org/c/wiki/177.md?page=3

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

**Page:** 4

---

## [新用户指南](https://meta.discourse.org/t/nueva-guia-de-usuario/152471)

<div class="topic-metadata">

**Author:** [@jurl](https://meta.discourse.org/u/jurl)\
**回覆:** 0\
**Last updated:** [2020年五月23日 17:16 UTC](https://meta.discourse.org/t/nueva-guia-de-usuario/152471 "2020-05-23T17:16:05Z")

</div>

For anyone it could be useful translated to Spanish, no images or links admitted, sorry! ¡Bienvenido! Como nuevo usuario de Discourse, esperamos que encuentres este sitio intuitivo y claramente estructurado, pero …

---

## [用于更新Discourses的Ansible剧本](https://meta.discourse.org/t/ansible-playbook-for-updating-discourses/119268)

<div class="topic-metadata">

**Author:** [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**回覆:** 16\
**Last updated:** [2024年十月10日 02:50 UTC](https://meta.discourse.org/t/ansible-playbook-for-updating-discourses/119268 "2024-10-10T02:50:45Z")

</div>

Hi Meta, While there seem to be a few playbooks around for provisioning Discourse, there didn’t seem to be any for doing updates/upgrades, so in response to my own personal need I’ve created one. https://github.com/pac…

---

## [管理与理解用户偏好](https://meta.discourse.org/t/managing-understanding-user-preferences/327479)

<div class="topic-metadata">

**Author:** [@HamMan2118](https://meta.discourse.org/u/HamMan2118)\
**回覆:** 3\
**Last updated:** [2024年九月24日 01:14 UTC](https://meta.discourse.org/t/managing-understanding-user-preferences/327479 "2024-09-24T01:14:44Z")

</div>

本教程介绍了如何访问用户偏好设置菜单、理解每个选项的含义以及根据自己的喜好进行修改。 摘要 本文档涵盖： 访问用户偏好设置菜单 理解用户偏好设置 管理用户偏好设置 访问用户偏好设置菜单 有三种方法可以做到这一点。 选择论坛右上角的个人资料照片，然后选择人像图标，然后选择 :gear: 偏好设置 在 URL 栏中输入以下内容： https://forum.domain/my/preferences/account …

---

## [自定义用户状态](https://meta.discourse.org/t/custom-user-statuses/327163)

<div class="topic-metadata">

**Author:** [@HamMan2118](https://meta.discourse.org/u/HamMan2118)\
**回覆:** 0\
**Last updated:** [2024年九月19日 00:48 UTC](https://meta.discourse.org/t/custom-user-statuses/327163 "2024-09-19T00:48:40Z")

</div>

摘要 本文档涵盖： 自定义用户状态是什么 如何添加、修改和删除自定义用户状态。 自定义用户状态说明 自定义用户状态是一项功能，用户可以设置自定义状态和图标，以显示在他们的个人资料以及帖子中的头像旁边。作为会员，您可以使用此功能让社区知道您是否无法访问、正在度假或想分享您的感受。 自定义用户状态在帖子中显示如下： 打开自定义用户状态菜单 请按照以下步骤打开自定义用户状态菜单。每个步骤都附有图片。 ▶ 1.) 点击网站右上角…

---

## [在插件中添加一个自定义的每用户设置](https://meta.discourse.org/t/add-a-custom-per-user-setting-in-a-plugin/94048)

<div class="topic-metadata">

**Author:** [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**回覆:** 27\
**Last updated:** [2023年十二月20日 18:49 UTC](https://meta.discourse.org/t/add-a-custom-per-user-setting-in-a-plugin/94048 "2023-12-20T18:49:07Z")

</div>

I just went through this process and experienced a bunch of trial and error, so I thought I’d document my findings to help the next developer to come along. The things I needed: Register your custom field type (mine …

---

## [教程：解决Cloudflare SSL "无效的SSL证书" 错误](https://meta.discourse.org/t/tutorial-resolving-cloudflare-ssl-invalid-ssl-certificate-error/325361)

<div class="topic-metadata">

**Author:** [@nwnuyhs](https://meta.discourse.org/u/nwnuyhs)\
**回覆:** 0\
**Last updated:** [2024年九月6日 18:37 UTC](https://meta.discourse.org/t/tutorial-resolving-cloudflare-ssl-invalid-ssl-certificate-error/325361 "2024-09-06T18:37:00Z")

</div>

问题描述 在使用 Cloudflare SSL 保护您的网站时，您可能会遇到以下情况： 访问 example.com 正常 访问 www.example.com 时出现“无效的 SSL 证书”错误 原因分析 此问题通常是由于 Cloudflare SSL 规则配置不正确引起的。 解决方案 要解决此问题，请按照以下步骤更改您的 SSL/TLS 加密模式： 登录您的 Cloudflare 账户 选择您正在处理的域名 转到 SSL…

---

## [使用 \`create-discourse-plugin\` gem 自动化 Discourse 插件设置](https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013)

<div class="topic-metadata">

**Author:** [@gabriel](https://meta.discourse.org/u/gabriel)\
**回覆:** 7\
**Last updated:** [2024年八月27日 18:26 UTC](https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013 "2024-08-27T18:26:52Z")

</div>

:mega: 此插件现已与 Discourse 核心捆绑在一起。无需使用此 gem。 创建新插件，请使用： rake plugin:create\[plugin-name\] 自从我开始开发 Discourse 插件以来，我一直觉得整体设置可以更简单。我们在创建插件时应该有更好的整体开发体验。 本着这种精神，我利用业余时间创建了这个名为 create-discourse-plugin 的 gem。 它有什么作用？ 它会根据您…

---

## [系统管理员指数](https://meta.discourse.org/t/sysadmins-index/322725)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2024年八月21日 14:22 UTC](https://meta.discourse.org/t/sysadmins-index/322725 "2024-08-21T14:22:24Z")

</div>

Migrating to Discourse SMF2: Migrate an SMF2 forum to Discourse Vanilla: Migrate a Vanilla forum to Discourse PunBB: Migrate a PunBB forum to Discourse Kunena 3: Migrate a Kunena 3 forum to Discourse Phorum: Migrate a P…

---

## [用户索引](https://meta.discourse.org/t/users-index/322729)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2024年八月21日 14:25 UTC](https://meta.discourse.org/t/users-index/322729 "2024-08-21T14:25:18Z")

</div>

Edge 浏览器搜索弹出窗口：Annoying search pop-up when using Edge browser 聊天和发帖（中文）：🇨🇳 Chatting and Posting - Better Together 群聊与发帖：双剑合璧 FAQ 翻译（中文）：🇨🇳 Chinese Translation of FAQ 使用守則 中文翻譯 新用户提示（法语）：🇫🇷 Trucs et astuces pour nouveaux…

---

## [开发者指数](https://meta.discourse.org/t/developer-index/322723)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2024年八月21日 14:15 UTC](https://meta.discourse.org/t/developer-index/322723 "2024-08-21T14:15:43Z")

</div>

Discourse 开发环境设置：(outdated) Guide to Setting Up Discourse Development Environment - GitHub Codespace NSFW 内容模糊：Our solution for blurring NSFW content 特定语言的代码块：Setup Code blocks that stand out, per-language backgrounds 主…

---

## [解决由 Cloudflare 自动压缩引起的 "SyntaxError: Unexpected identifier #..."](https://meta.discourse.org/t/resolving-syntaxerror-unexpected-identifier-caused-by-cloudflare-auto-minify/311390)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**回覆:** 0\
**Last updated:** [2024年六月10日 13:14 UTC](https://meta.discourse.org/t/resolving-syntaxerror-unexpected-identifier-caused-by-cloudflare-auto-minify/311390 "2024-06-10T13:14:05Z")

</div>

Cloudflare 的 ‘自动压缩’ 功能会破坏 Discourse 的最新版本。在浏览器控制台中，您会看到类似以下的错误： Uncaught SyntaxError: Unexpected identifier '#...' Cloudflare 已意识到此问题，并在其仪表板中添加了此消息： \*\*注意：\*\*请注意，此功能可能与某些较新的 CSS 和 JS 语言功能不完全兼容，这可能会影响网站的功能。 不幸的是，尽管存在此…

---

## [设置 Power Automate 以使用 discourse-chat-integration 插件发送 Microsoft Teams 通知](https://meta.discourse.org/t/set-up-power-automate-to-send-microsoft-teams-notifications-using-the-discourse-chat-integration-plugin/322340)

<div class="topic-metadata">

**Author:** [@crossheadscrewdriver](https://meta.discourse.org/u/crossheadscrewdriver)\
**回覆:** 0\
**Last updated:** [2024年八月19日 21:36 UTC](https://meta.discourse.org/t/set-up-power-automate-to-send-microsoft-teams-notifications-using-the-discourse-chat-integration-plugin/322340 "2024-08-19T21:36:01Z")

</div>

此 howto 描述了如何设置 discourse-chat-integration 中包含的 Power Automate 提供程序。 安装 如果尚未安装，请安装 discourse-chat-integration 插件。 设置 Microsoft Teams Power Automate 使用的网络钩子可以直接从 Power Automate 或通过 Microsoft Teams 创建。您必须为要发送更新到的每个 Micro…

---

## [在 Azure 上设置 Discourse](https://meta.discourse.org/t/setup-discourse-on-azure/89550)

<div class="topic-metadata">

**Author:** [@blake](https://meta.discourse.org/u/blake)\
**回覆:** 4\
**Last updated:** [2024年八月18日 15:01 UTC](https://meta.discourse.org/t/setup-discourse-on-azure/89550 "2024-08-18T15:01:53Z")

</div>

This guide is for those who are interested in self-hosting a Discourse site in Azure and will walk you through the initial Azure Portal details needed to get your Linux VM created so that you can then follow the regular …

---

## [如何使用 Make 将 Discourse 连接到数百个应用程序](https://meta.discourse.org/t/how-to-connect-discourse-with-hundreds-of-apps-using-make/180181)

<div class="topic-metadata">

**Author:** [@Integromat](https://meta.discourse.org/u/Integromat)\
**回覆:** 34\
**Last updated:** [2024年八月14日 16:45 UTC](https://meta.discourse.org/t/how-to-connect-discourse-with-hundreds-of-apps-using-make/180181 "2024-08-14T16:45:39Z")

</div>

You can now integrate Discourse using Make. Make is a no-code integration platform where you can easily connect almost any app or API to Discourse. The Discourse app on Make has a number of modules (actions, triggers, an…

---

## [使用 DreamHost SMTP 发送外发邮件](https://meta.discourse.org/t/use-dreamhost-smtp-for-outgoing-email/44074)

<div class="topic-metadata">

**Author:** [@Scriblet](https://meta.discourse.org/u/Scriblet)\
**回覆:** 7\
**Last updated:** [2024年八月7日 20:54 UTC](https://meta.discourse.org/t/use-dreamhost-smtp-for-outgoing-email/44074 "2024-08-07T20:54:17Z")

</div>

Hi guys, I’m a noob, but I just got Discourse (running on Digital Ocean) to use Dreamhost SMTP for sending mail and what I figured out SHOULD help you guys with things beyond Dreamhost. You got to figure out your homie …

---

## [在 Amazon Web Services (AWS) 上使用 Lightsail、SES 和 Route 53 安装 Discourse](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343)

<div class="topic-metadata">

**Author:** [@th21](https://meta.discourse.org/u/th21)\
**回覆:** 4\
**Last updated:** [2024年八月7日 15:41 UTC](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343 "2024-08-07T15:41:41Z")

</div>

:information\_source: 本主题涵盖了如何使用官方安装说明，并使用 AWS 服务作为 DNS 提供商（Route 53）、邮件提供商（SES）和云服务器提供商（Lightsail）来安装 Discourse。 云服务器 Lightsail 1 GB 内存的默认配置对于小型 Discourse 社区来说已经足够。对于大型社区，我们建议使用 2 GB 内存。 ^ $5/月即可获得满足 Discourse 最…

---

## [使用 discourse-chat-integration 插件设置 Gitter 通知](https://meta.discourse.org/t/set-up-gitter-notifications-using-the-discourse-chat-integration-plugin/69220)

<div class="topic-metadata">

**Author:** [@jafeth.diazc](https://meta.discourse.org/u/jafeth.diazc)\
**回覆:** 1\
**Last updated:** [2024年八月7日 10:48 UTC](https://meta.discourse.org/t/set-up-gitter-notifications-using-the-discourse-chat-integration-plugin/69220 "2024-08-07T10:48:08Z")

</div>

This howto describes how to set up the Gitter provider included in discourse-chat-integration. Install If you haven’t already, install the discourse-chat-integration plugin Setup Gitter Open the Gitter room you’d lik…

---

## [🇨🇳 How to clear storage space in Discourse | Discourse 清理存储空间的方法](https://meta.discourse.org/t/how-to-clear-storage-space-in-discourse-discourse/246836)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 2\
**Last updated:** [2024年七月29日 07:35 UTC](https://meta.discourse.org/t/how-to-clear-storage-space-in-discourse-discourse/246836 "2024-07-29T07:35:28Z")

</div>

Discourse 使用一段时间以后会发现硬盘空间占用非常多。 主要是因为 Docker Image 的问题，如果升级次数越多，空间占用越多。 运行下面的命令： ./launcher cleanup 能够帮助你清理 Discourse 占用的空间。 如下面代码所示： \[root@WWW discourse\]# ./launcher cleanup WARNING! This will remove all stopped c…

---

## [🇨🇳 How to back up Discourse to S3 | Discourse 如何备份到 S3](https://meta.discourse.org/t/how-to-back-up-discourse-to-s3-discourse-s3/245552)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 8\
**Last updated:** [2024年七月26日 15:47 UTC](https://meta.discourse.org/t/how-to-back-up-discourse-to-s3-discourse-s3/245552 "2024-07-26T15:47:39Z")

</div>

Discourse 与 S3 是对好基友，如果你对 S3 比较熟悉的话，那么对你来说帮助会非常大。 很多人的虚拟主机空间是有限并且资源也是有限的。 使用 S3 进行备份能够更好的利用空间。 你可以按照下面的步骤进行配置： 设置备份频率 进入 admin \> backup，然后设置 backup\_frequency 为 1。这个是参数是表示备份的频率，默认为 7 。 1 表示的是每天进行备份一次。 7 表示的是每 7 天进行备…

---

## [自定义 WP Discourse 模板的结构](https://meta.discourse.org/t/customize-the-structure-of-wp-discourse-templates/50754)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**回覆:** 5\
**Last updated:** [2024年七月26日 09:43 UTC](https://meta.discourse.org/t/customize-the-structure-of-wp-discourse-templates/50754 "2024-07-26T09:43:58Z")

</div>

The WP Discourse plugin uses HTML templates to add markup to Discourse comments for publishing on WordPress and to WordPress posts for publishing on Discourse. The text content of these templates can be customized on the…

---

## [将Phorum论坛迁移到Discourse](https://meta.discourse.org/t/migrate-a-phorum-forum-to-discourse/128814)

<div class="topic-metadata">

**Author:** [@enigmaty](https://meta.discourse.org/u/enigmaty)\
**回覆:** 4\
**Last updated:** [2024年七月11日 13:38 UTC](https://meta.discourse.org/t/migrate-a-phorum-forum-to-discourse/128814 "2024-07-11T13:38:55Z")

</div>

If you have an old Phorum forum and thinking to migrate to Discourse, then this tutorial is for you. The process is straightforward and we will be using the official Phorum Importer script. Let’s get started. On a high …

---

## [🇨🇳 Discourse Official Install Guide | Discourse 云平台安装](https://meta.discourse.org/t/discourse-official-install-guide-discourse/197803)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 10\
**Last updated:** [2024年七月10日 02:24 UTC](https://meta.discourse.org/t/discourse-official-install-guide-discourse/197803 "2024-07-10T02:24:01Z")

</div>

本文档是根据 discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub 页面中的内容进行翻译的。 翻译的原文发布在：Discourse 云平台安装 - Discourse - iSharkFly ， 欢迎参与讨论。 云平台安装 在基于云平台的 Discourse 安装通常不会超过 30 分钟，哪怕你没有任何有关 Rails 或 Linux shell…

---

## [配置 WP Discourse Webhook](https://meta.discourse.org/t/configure-wp-discourse-webhooks/311552)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**回覆:** 0\
**Last updated:** [2024年六月11日 11:49 UTC](https://meta.discourse.org/t/configure-wp-discourse-webhooks/311552 "2024-06-11T11:49:06Z")

</div>

您可以使用 webhook 在 Discourse 和 WordPress 之间同步数据，并丰富您的集成。如果您对如何设置 webhook 或它们的工作方式有疑问，请回复此主题。 设置 WP Discourse 首先在 WP Discourse 中设置一个端点： 导航到 WordPress 管理后台的 WP Discourse \> Webhooks。 选择您要启用的端点（见下文）。 设置一个“Webhook 密钥”，如果尚未设置。 …

---

## [撤销更改时间戳](https://meta.discourse.org/t/undo-change-timestamp/78966)

<div class="topic-metadata">

**Author:** [@yanokwa](https://meta.discourse.org/u/yanokwa)\
**回覆:** 3\
**Last updated:** [2018年一月25日 16:54 UTC](https://meta.discourse.org/t/undo-change-timestamp/78966 "2018-01-25T16:54:06Z")

</div>

One of our mods changed the timestamp as a way to unbump a topic and I wanted to revert that change because. I wrote a rake task that does this. It’s a small thing, but why not share? # /var/www/discourse/lib/tasks/set\_…

---

## [🇨🇳 Synchronizing DiscourseConnect user data using sync\_sso \[Java\] | 使用 sync\_sso 同步 DiscourseConnect 用户数据 \[Java\]](https://meta.discourse.org/t/synchronizing-discourseconnect-user-data-using-sync-sso-java-sync-sso-discourseconnect-java/309367)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 0\
**Last updated:** [2024年五月25日 05:25 UTC](https://meta.discourse.org/t/synchronizing-discourseconnect-user-data-using-sync-sso-java-sync-sso-discourseconnect-java/309367 "2024-05-25T05:25:39Z")

</div>

最近有一个使用 SSO 把已有的用户同步到 Discourse 的需求。 所以，我就根据官方针对 PHP 实现（Sync DiscourseConnect user data with the sync\_sso route - developers - Discourse Meta ）写了一个有关 Java 的实现。 实现的方法很简单，但是需要用到一些额外的包，最重要的是 Apache commons codec 和 Okhttp。 …

---

## [提示：测试入站电子邮件时使用虚假用户帐户](https://meta.discourse.org/t/tip-when-testing-inbound-email-with-fake-user-accounts/288363)

<div class="topic-metadata">

**Author:** [@ToddZ](https://meta.discourse.org/u/ToddZ)\
**回覆:** 1\
**Last updated:** [2024年五月23日 20:35 UTC](https://meta.discourse.org/t/tip-when-testing-inbound-email-with-fake-user-accounts/288363 "2024-05-23T20:35:39Z")

</div>

…记得使用假账户电子邮件地址的别名发送。 我花了令人尴尬的时间来排查入站电子邮件，因为 Discourse 拒绝了我发送的来自假用户的每一封电子邮件回复。几周前我首次测试时，它本来工作得很好…… 我终于意识到，在 Gmail 中，我一直忘记将我的“发件人”地址切换到假 Discourse 账户的别名：my.name+DiscourseTest@gmail.com 拍额头 我有点分心了，因为在“拒绝”列表里显示的错误是 Email…

---

## [为 Docker 容器添加标签](https://meta.discourse.org/t/add-a-label-to-the-docker-container/230254)

<div class="topic-metadata">

**Author:** [@Grunskin](https://meta.discourse.org/u/Grunskin)\
**回覆:** 8\
**Last updated:** [2024年五月23日 19:03 UTC](https://meta.discourse.org/t/add-a-label-to-the-docker-container/230254 "2024-05-23T19:03:37Z")

</div>

在我写了一篇关于如何为 discourse 容器添加标签的帖子时，我找到了解决方法，所以我想在这里分享一下，以便人们在谷歌搜索时能更容易找到。 我想给我的 discourse 容器添加一个标签，这样 Watchtower 就不会每次都尝试更新它。 我忽略了 launcher 脚本打印的帮助信息，没有注意到 --docker-args。 要添加我想要的标签，我必须使用以下命令启动它： ./launcher start app --…

---

## [🇨🇳 500 error when upgrading Discourse | Discourse 升级时候 500 错误](https://meta.discourse.org/t/500-error-when-upgrading-discourse-discourse-500/308473)

<div class="topic-metadata">

**Author:** [@honeymoose](https://meta.discourse.org/u/honeymoose)\
**回覆:** 2\
**Last updated:** [2024年五月19日 16:35 UTC](https://meta.discourse.org/t/500-error-when-upgrading-discourse-discourse-500/308473 "2024-05-19T16:35:35Z")

</div>

在对 Discourse 升级的时候，得到系统的错误： 这个错误比较诡异，直接就 500 错误了，没有办法查看其他的提示信息。 后来通过服务器上的日志，我们看到： 看这个情况应该是没有安装成功。 错误原因 针对上面的错误原因，官方的解释是可以到服务器上去运行 rebuild 命令。 cd /var/discourse ./launcher rebuild app 随后我们看到 Discourse 在从服务器上获取…

---

## [WP Discourse 过滤器和操作](https://meta.discourse.org/t/wp-discourse-filters-and-actions/307211)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**回覆:** 0\
**Last updated:** [2024年五月8日 06:47 UTC](https://meta.discourse.org/t/wp-discourse-filters-and-actions/307211 "2024-05-08T06:47:50Z")

</div>

These are all actions and filters provided by the WP Discourse plugin. Examples are illustrative only. You will need to test and validate the example on your own instance before using it in production. Filters For a gen…

---

## [恢复（取消删除）用户的所有帖子](https://meta.discourse.org/t/restore-undelete-all-posts-by-a-user/304643)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 0\
**Last updated:** [2024年四月19日 16:50 UTC](https://meta.discourse.org/t/restore-undelete-all-posts-by-a-user/304643 "2024-04-19T16:50:12Z")

</div>

如果您想恢复/取消删除用户删除的所有帖子，您可以这样做： u=User.find\_by\_username('=username='); moderator=User.find\_by\_username('=moderator='); deleted\_posts = Post.with\_deleted.where(user\_id: u.id).where("deleted\_at is not null"); deleted\_pos…

[上一頁](https://meta.discourse.org/c/wiki/177.md?page=2)

[下一頁](https://meta.discourse.org/c/wiki/177.md?page=4)
