Discourse 已解决

:discourse2: 摘要 Discourse Solved 允许话题作者和工作人员将回复标记为话题的解决方案。
:open_book: 安装指南 此插件已包含在 Discourse 核心中。无需单独安装该插件。

虽然 Discourse Solved 可用于多种场景,但本文档主要聚焦于支持或问答分类这一核心用例。

:discourse2: 注意: Discourse Solved 不适用于免费套餐。

设置支持分类

创建新分类时,选择 支持 类型即可在该分类中启用 Discourse Solved。

分类名称样式 字段将预设合理的默认值,如有需要可手动修改。

注意: 编辑现有分类时,分类类型 字段允许您添加或移除分类类型。分类类型可以组合使用,因此您可以同时使用标记答案为解决方案和投票等功能(通过 Discourse 话题投票)。

支持 选项卡中,您可以调整该分类或社区中所有支持分类的默认设置。

分类设置

这些设置仅影响当前分类。

  • 自动关闭已解决的话题:设置后,已解决的话题将在最后一次回复后的指定时长后自动关闭。设置为 0 可禁用此功能。
  • 当工作人员标记解决方案时通知话题作者:选中后,当工作人员将某条回复标记为解决方案时,话题作者将收到通知。
  • 在话题列表中为未解决的话题显示空复选框:选中后,未解决的话题将在话题列表中显示空复选框。已解决的话题则显示已勾选的复选框,从而有助于区分已解决和未解决的话题。
  • 启用共享问题:选中后,用户可以点击 +1 按钮表示他们也受到该问题的影响。有关此功能的更多信息请参见下文。

站点设置

这些设置影响站点上所有支持分类:

  • 共享问题标签:您可以将共享问题按钮的标签从 +1 更改为您希望使用的任何文本。
  • 显示按解决状态筛选:启用后,将在分类顶部添加“已解决/未解决”筛选器。
  • 在搜索中优先显示已解决的话题:启用后,已解决的话题在站点搜索中将优先于未解决的话题。
  • 显示标记为已解决的用户:启用后,已解决的话题将显示是谁将其标记为已解决。

标记解决方案

话题作者和站点工作人员可以点击 解决方案 按钮,将回复标记为问题的解决方案。

随后,该答案将在话题的首帖中高亮显示,方便访问。

已标记解决方案提醒

对于可以标记解决方案的话题,当满足以下条件时,将显示“您的问题是否已得到解答”的弹出消息:

  • 话题尚未被接受答案
  • 话题至少有一条来自其他用户的回复
  • 话题作者已登录且能够接受某条回复作为答案
  • 话题已存在至少 7 天

如果您希望阻止此弹出消息显示,可以在主题组件中使用以下 CSS 代码将其隐藏:

.topic-navigation-outlet.no-answer {
    display: none;
}
如何将其添加到站点的详细说明
  • 进入 /admin/customize/themes
  • 点击 安装,然后选择 创建新主题
  • 为其命名,并选择“组件”
  • 创建
  • 将其添加到您的主题中
  • 点击 编辑 CSS/HTML 按钮,将代码粘贴到 通用 选项卡中

然后保存。:+1:

共享问题

当启用 启用共享问题 时,成员可以点击未解决话题首帖中的 +1 按钮,表示他们遇到了相同的问题。了解更多。

选择后,该成员将被设置为 关注 该话题。当话题被解决时,他们将收到通知。如果成员不希望收到所关注话题被解决的通知,可以在通知偏好设置中禁用 通知我关注的 topic 被解决 设置。

已解决/未解决筛选器

当启用 显示按解决状态筛选 时,成员可以根据话题是否已解决进行筛选。

您还可以通过在 URL 中添加参数来筛选已解决/未解决的话题。例如:

https://meta.discourse.org/c/support?solved=yesSupport - Discourse Meta

搜索

Solved 插件提供了一些用于搜索已解决或未解决话题的高级筛选器,可在 话题位置 下拉菜单中找到:

这将在您的搜索中添加 status:solvedstatus:unsolved

设置

下表列出了 Discourse Solved 的站点设置。分类设置请参见上文。

名称 描述
solved enabled 启用 Solved 插件,允许指定分类中的用户为话题选择解决方案
show who marked solved 显示是谁将话题标记为已解决。
allow solved on all topics 允许用户在所有话题上选择解决方案(未勾选时,解决方案可按分类或标签启用)
accept all solutions allowed groups 被允许在任何话题上接受解决方案的组(即使不是原始发帖人)
solved quote length 在首帖下显示解决方案时引用的字符数
solved topics auto close hours 话题被标记为已解决后,在最后一次回复后的 (n) 小时内自动关闭话题。设置为 0 可禁用自动关闭。
show filter by solved status 显示下拉菜单以按解决状态筛选话题列表
disable solved education message 禁用已解决话题的教育消息
accept solutions topic author 允许话题作者接受解决方案
solved add schema markup 在 HTML 中添加 QAPage 架构标记,以便搜索引擎更容易在搜索结果中显示解决方案
prioritize solved topics in search 在搜索结果中优先显示已解决的话题。
enable solved tags 允许用户选择解决方案的标签

已解决徽章

:information_source: 这些徽章默认处于禁用状态。您可以在管理员设置中的 徽章 区域启用它们。

名称 描述 详细描述 类型 分组
已解决! 有一条回复被标记为解决方案 此徽章授予将一条回复标记为话题解决方案的用户。:white_check_mark: 做得好。: +1: :3rd_place_medal: 社区
指导顾问 有 10 条回复被标记为解决方案 此徽章授予将 10 条回复标记为话题解决方案的用户。:white_check_mark: 您确实是社区成员的重要助力。 :2nd_place_medal: 社区
万事通 有 50 条回复被标记为解决方案 此徽章授予将 50 条回复标记为话题解决方案的用户。:white_check_mark: 您确实精通此道。:clap: :1st_place_medal: 社区
解决方案机构 有 150 条回复被标记为解决方案 此徽章授予将 150 条回复标记为话题解决方案的用户。:white_check_mark: 出色工作。:slightly_smiling_face: 您正式成为“解决方案机构”。:brain: :1st_place_medal: 社区
开发历史

:information_source: 截至 2025 年 5 月 29 日,解决方案数据存储于两个表中:

  • discourse_solved_solved_topics 表中的一条记录表示 topic_id 对应的话题已有解决方案,并跟踪自动关闭计时器信息。
  • discourse_solved_topic_answers 表中的一条记录存储解决方案帖子本身的 answer_post_idaccepter_user_id,以及指向 discourse_solved_solved_topics 表中话题 id 列的 solved_topic_id

此更改是在 Discourse PR #39806 中引入的。

旧版 discourse_solved_solved_topics 表中的 answer_post_idaccepter_user_id 列将在未来被移除。

感谢 Western Digital 资助本插件的开发!

162 个赞
Solved Button Plugin
What is this checkbox icon in the topic list?
How do you enable a tick mark?
Mark as Solution feature?
Can't find "Allow topic owner and staff to mark a reply as the solution" Setting
Mark all topics as solved specific category
Pop-up message after selecting the best answer
Query to find out who marked the solution as solved
How to replace the discourse `Topic` with `Question` instead?
Option to mark as solved
Image zoom is not working
Question Answer Plugin
Discourse need a fork to be a Q&A software?
No option appears to choose better answer
[Accepted answer plugin] Add an ability to accept the initial (topmost) post as a solution
Follow up "open" tickets
Discourse Solved Quote Customization
Moderating the forum
Titles in SVG inserted by a theme component get overwritten with page title after tab switch
Trust Level Wishlist Items
A feature request related to this plugin. Pointed questions or rewarded questions
Feature: endorse button to add single-click endorsements
Send email notifications for small actions
Comment on a question instead of answering it
Topics list filter feature
(Ab)using bumped_at to achieve Reddit like sorting
Volunteer Activities - a simple setup for non-hierarchical collaboration
Hello Community Experts- are we able to configure discussions to be threads AND questions?
Implementing KCS
Trust Level Permissions Reference
Can I view a list of solved and unsolved topics in a category
Too many Crawlers, is that a problem?
Discourse instance supporting entrepreneurs who sell on Amazon
Reordering a topic by ‘most liked’ or threaded replies
Looking for examples of Discourse Communities that visually call out answered/closed topics on feeds
How to replace the discourse `Topic` with `Question` instead?
Please update 'Understanding Discourse Trust Levels' — or is there a different doc?
Best practices for "revisit and clarify the top 100 most visited topics."
Is it possible to have a badge for 100 solutions?
Is there a plugin for "response posts?"
Discourse Gamification
New Leaderboard/User Directory Features :tada:
Do these new badges come bundled with the plugin?
How do I make "accept answer" the first item in the post menu
How can I show topics that have not received an answer yet?
Error when updating Discourse to the new version (need urgent support)?
Plugins to Enhance user Engagement
Building a Mentoring Scheme for Members in Discourse
The default badge queries
Creating a community culture of marking topics as solved
Soft close for a topic by OP
Using DATE_TRUNC for Data Aggregation
Creating a 'stickypost' for forum threads
Handling Null Values with COALESCE
Is there a component so when a topic is marked as Solved, the topic gets locked and a custom message is posted with it?
Is there a component so when a topic is marked as Solved, the topic gets locked and a custom message is posted with it?
"Solved" bug or intentional?
"Solved" bug or intentional?
Use AI to identify which post should have marked solution and did not
Marked as solved, Vote Replenishing & Querying
Solved Topic and Moderator Response Stats by Category
Cohort Analysis Report - Monthly User Activity by Posts and Solutions
Solved and Unsolved Topic Stats with Date and Tag Parameters
Instantly close topic when marked as Solved and leave a custom message
Discourse Automation
Questions Solved and Currently Assigned Topics by User per Month
Managing Forum Moderators - Metrics & Reporting
Pinning a post to the top of the topic
How to make a help topic with solutions?
Solved Topic Badge
Using user cards to quickly view information about others
How are you increasing response rate in a community support forum?
Inconsistent marking of Topics as ☑️ Solved, Completed, or Fixed here on meta.discourse.org
When goes to a category /latest doesn’t show the actual latest
Easily create Support categories using the discourse-solved plugin
Horizon Theme
What happens next?
Bundling more popular plugins with Discourse core
Configuring auto-bumping for topics
Solved Button Plugin
Question Answer Plugin
Horizon: High Context Topic Cards
Pinning a post to the top of the topic
How to add this header, colored categories, and sidebar categories?
Where is Solved data stored in the database?
Allow “Mark as Solution” in group messages
Notifying members when a Tracked or Watched topic is solved
Advice on a support forum
Answer in a post
Google Structured Data -- Invalid Article Schema
Solution icon does not show in posts
How can I fix or pin posts inside a topic
Discourse to Power Q & A Site?
Admin/mod ability to insert a post wherever
Reward sign on avatar (or similar)
Solved plugin: post menu button now hidden at far right, used to be on the left?
Discourse for helpdesk use cases?
Introduction and question about how to best mark topics as "Answer"
Automatic Second-Post Wiki?
How can I turn discourse to Q&A based website?
Plugin: 'Ask to Answer' Mechanism
How To Mark a Topic As Resolved?
Is there any plugin for downvoting questions and replies in Discourse
Deleted posts can be counted as unread
What is SQL Badge Query for invited >25 People?
Add Badge to Solve answer
The best way to answer customers?
Using query strings to filter topic views
Badge not being applied, sql error
Generating Support Metrics (with Assign and Solved plugins)
A question re the Solved plugin and Badge SQL
Thoughts on a plugin which turns discourse into stackoverflow
Advice for getting my little game dev community "out there?"

image

如果能为已解决的帖子使用更醒目的图标,那就太好了。用和字体颜色相同的图标很难区分已解决/未解决的帖子。像帖子本身那样漂亮的绿色勾号会更醒目。

1 个赞

您可以通过 Solved Topic Badge 来更改它。

3 个赞

太好了,看起来完美!

2 篇帖子已拆分为新主题:使未解决筛选器与 status:unsolved 搜索行为相同

嘿,

如果在分类的顶部栏(我们有“最新”、“未读”、“热门”的地方)上有一个“已解决/未解决”的切换开关,那就太好了。

谢谢!

@Anat_Srulovitch :wave:

这是你的意思吗?

4 个赞

太好了,就是这样!非常感谢!我没注意到那段文字 :slight_smile:

1 个赞

一条帖子被拆分到新主题中: 功能请求:在群组私信收件箱中使用已解决插件

您好,我使用该插件来关闭我们的群组和玩家搜索,我想知道是否可以更改“已解决”和“未解决”的措辞?

您可以参考 https://meta.discourse.org/t/customize-text-in-discourse/36092。这能帮到您吗?

4 个赞

啊,谢谢,我没明白我需要使用搜索。非常感谢,那应该能行。

5 个赞

一篇帖子已拆分为新主题:功能请求:在选择解决方案后自动回复主题

是否可以在用户端添加一个偏好设置开关,以便他们可以从主话题列表中隐藏“已解决”的话题?

您可以通过将过滤后的 URL 放入侧边栏作为自定义链接来快速访问,例如 https://yourcommunity.com/c/category-name?solved=no

它通过 Show filter by solved status(显示按已解决状态过滤)设置启用:

The image displays an option to show a dropdown filter by solved status for a topic list. (Captioned by AI)

然后,该过滤器下拉菜单仅出现在已启用 Solved 插件的类别中。

现在我明白了,您可能不想在 Latest 列表中显示这些?对此没有设置。

编辑:实际上,您也可以在主列表中使用 URL 选项。https://yourcommunity.com/?solved=no

2 个赞

升级到 Discourse 3.4.0 后,“solved”插件的复选框对齐出现问题,如下图所示。有什么办法可以修复吗?

3 个赞

作为一个功能请求,这个插件能否定期发送电子邮件,要求人们将他们的话题标记为已解决?

有很多用户只访问论坛一次来解决特定问题,之后几周我们都不会再见到他们。他们也看不到弹出式提醒

我想象一下,一周后会有一个电子邮件提醒:“嘿,您打开了以下话题,它们似乎仍未解决,如果已解决,能否请您进去标记出解决答案?”

2 个赞

您可能会对这个附加插件感兴趣

5 个赞

太好了,这正是我需要的,非常感谢!:raising_hands:

3 个赞

不客气。这个插件我之前就注意到了。有人说它最终可能会合并到已解决的插件中。想象一下,一旦团队有时间,会是什么样子。

2 个赞