Discourse 已解决

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

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

:discourse2: 注意: Discourse Solved 在免费计划中不可用。

设置支持类别

创建新类别时,选择 support 类型以在该类别中启用 Discourse Solved。

类别名称样式 字段将预设为合理的默认值,如有需要您可以覆盖它们。

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

支持 选项卡上,您可以调整此类别或社区中任何支持类别的一些默认设置。

类别设置

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

  • 自动关闭已解决主题:启用后,已解决的回复将在最后一条回复后的此时间段后自动关闭。设置为 0 以禁用此设置。
  • 工作人员标记解决方案时通知主题创建者:选中后,当工作人员将回复标记为解决方案时,主题创建者将收到通知。
  • 在主题列表中未解决主题旁边显示空复选框:选中后,在主题列表中未解决主题旁边显示空复选框。已解决的主题显示为选中状态,这有助于区分已解决和未解决的主题。
  • 启用共享问题:选中后,用户可以点击 我也遇到 按钮,表示他们也受到该问题的影响。有关此功能的更多信息,请参阅下文。

站点设置

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

  • 共享问题标签:您可以将共享问题按钮标签从 我也遇到 更改为您想要的任何其他文本。
  • 显示按解决状态筛选:启用后,在类别顶部添加已解决/未解决筛选器。
  • 在搜索中优先显示已解决主题:启用后,已解决主题在站点搜索中将优先于未解决主题。
  • 显示谁标记了解决方案:启用后,已解决主题将显示谁将该主题标记为已解决。

标记解决方案

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

然后,答案将在主题的第一篇帖子中高亮显示,以便轻松访问。

标记解决方案提醒

在可以标记解决方案的主题上,当满足以下条件时,将显示“您的问题解决了吗”弹出消息:

  • 主题没有已接受的答案
  • 主题至少有一条来自其他用户的回复
  • 主题作者已登录并能够接受回复作为答案
  • 主题存在至少 7 天

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

.topic-navigation-outlet.no-answer {
    display: none;
}
有关如何将其添加到站点的额外详细信息
  • 转到 /admin/customize/themes
  • 点击 安装 然后点击 创建新项
  • 给它起个名字,并选择“组件”。
  • 创建
  • 将其添加到您的主题
  • 点击 编辑 CSS/HTML 按钮并将代码粘贴到 常规 选项卡中

然后保存。:+1:

共享问题

当启用 启用共享问题 时,成员可以在未解决主题的第一篇帖子中点击 我也遇到 按钮,以表明他们遇到了相同的问题。了解更多。

选择此选项后,该成员将被设置为 跟踪 该主题。当主题解决时,他们将收到通知。如果成员不希望收到他们跟踪的主题解决时的通知,他们可以在通知偏好设置中禁用 当我跟踪的主题获得解决方案时通知我 设置。

已解决/未解决筛选器

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

您还可以通过向 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 允许在任何主题上接受解决方案的组(即使不是 OP)
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_topicsanswer_post_idaccepter_user_id 将在未来被移除。

感谢西部数据资助此插件的开发!

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?"