Discourse 已解决

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

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

设置支持类别

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

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

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

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

类别设置

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

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

站点设置

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

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

标记解决方案

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

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

共享问题

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

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

已解决/未解决筛选器

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

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

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

搜索

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

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

筛选器

您还可以使用站点设置 show_filter_by_solved_status 在话题列表页面启用筛选器下拉菜单。

已标记解决方案提醒

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

  • 话题没有已接受的答案
  • 话题至少有一条来自其他用户的回复
  • 话题作者已登录并能够将回复接受为答案
  • 话题存在至少 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:

设置

名称 描述
solved enabled 启用 solved 插件,允许用户为话题选择解决方案
allow solved on all topics 允许用户在所有话题中选择解决方案(当未勾选时,解决方案可按类别或标签单独启用)
accept all solutions allowed groups 允许在任何话题上接受解决方案的用户组(即使不是原帖作者)
empty box on unsolved 在未解决的话题旁边显示空框
solved quote length 在第一篇帖子下方显示解决方案时引用的字符数
solved topics auto close hours 话题被标记为已解决后,在最后一次回复后 (n) 小时自动关闭话题。设置为 0 以禁用自动关闭
show filter by solved status 显示下拉菜单,按解决状态筛选话题列表
notify on staff accept solved 当帖子被工作人员标记为解决方案时,向话题创建者发送通知
disable solved education message 禁用已解决话题的教育消息
accept solutions topic author 允许话题作者接受解决方案
solved add schema markup 向 HTML 添加 QAPage 模式标记
prioritize solved topics in search 在搜索结果中优先显示已解决的话题。
enable solved tags 允许用户选择解决方案的标签

Solved 徽章

名称 描述 详细描述 类型 分组
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: 这些徽章默认情况下将被禁用。您可以从 admin/badges 页面启用它们。

:discourse2: 由我们托管?此插件在我们的所有托管层级中均可用 Solved | Discourse - Civilized Discussion


开发历史

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