Discourse 已解决

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

虽然 Discourse Solved 可用于多种用例,但本文档主要侧重于支持或问答类别的主要用例。

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

设置支持类别

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

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

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

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

类别设置

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

  • Auto close solved topics(自动关闭已解决的主题):启用后,已解决的主题将在最后一次回复后的这段时间内自动关闭。设置为 0 以禁用此设置。
  • Notify topic creator when staff marks a solution(工作人员标记答案时通知主题创建者):选中后,当工作人员将回复标记为答案时,主题创建者将收到通知。
  • Display an empty checkbox next to unsolved topics in the topic list(在主题列表中未解决的主题旁边显示空复选框):选中后,在主题列表中未解决的主题旁边显示空复选框。已解决的主题显示为已勾选的框,这有助于区分已解决和未解决的主题。
  • Enable shared issues(启用共享问题):选中后,用户可以点击 Me too 按钮,表示他们也受到该问题的影响。有关此功能的更多信息,请参阅下文。

站点设置

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

  • Shared issue label(共享问题标签):您可以将共享问题按钮标签从 Me too 更改为您想要使用的任何其他文本。
  • Show filter by solved status(显示按解决状态筛选):启用后,在类别顶部添加已解决/未解决筛选器。
  • Prioritize solved topics in search(在搜索中优先显示已解决的主题):启用后,在站点搜索中,已解决的主题将优先于未解决的主题。
  • Show who marked solved(显示谁标记为已解决):启用后,已解决的主题将显示谁将该主题标记为已解决。

标记答案

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

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

已标记答案提醒

在允许标记答案的主题上,当满足以下条件时,将显示“Has your question been answered”(您的问题是否已得到解答)弹出消息:

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

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

.topic-navigation-outlet.no-answer {
    display: none;
}
有关如何将其添加到站点的额外详细信息
  • 转到 /admin/customize/themes
  • 点击 install(安装),然后点击 create new(创建新项)
  • 为其命名,并选择 ‘component’(组件)。
  • Create(创建)
  • 将其添加到您的主题中
  • 点击 Edit CSS/HTML(编辑 CSS/HTML)按钮,并将代码粘贴到 Common tab(常规选项卡)中

然后保存。:+1:

共享问题

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

选择此选项后,该成员将被设置为 Tracking(跟踪)该主题。当主题解决时,他们将收到通知。如果成员不希望收到他们跟踪的主题解决时的通知,他们可以在通知首选项中禁用 Notify me when a topic I'm tracking gets a solution(当我跟踪的主题获得答案时通知我)设置。

已解决/未解决筛选器

当启用 Show filter by solved status(显示按解决状态筛选)时,成员可以按主题是否已解决进行筛选。

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

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

搜索

Solved 插件附带了一些用于已解决或未解决主题的额外高级筛选器,可以在 Where topics(主题位置)下拉菜单中找到:

这将在您的搜索中添加 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: 这些徽章默认情况下是禁用的。您可以在管理设置中的 Badges(徽章)区域启用它们。

名称 描述 长描述 类型 分组
Solved! 有回复被标记为答案 此徽章授予给有回复被标记为主题答案的用户。:white_check_mark: 干得好。:+1: :3rd_place_medal: 社区
Guidance Counsellor 有 10 条回复被标记为答案 此徽章授予给有 10 条您的回复被标记为主题答案的用户。:white_check_mark: 您是社区成员的真正资产。 :2nd_place_medal: 社区
Know-it-All 有 50 条回复被标记为答案 此徽章授予给有 50 条您的回复被标记为主题答案的用户。:white_check_mark: 您真的很有本事。:clap: :1st_place_medal: 社区
Solution Institution 有 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 将在未来被移除。

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