Discourse 已解决

:discourse2: 摘要 Discourse Solved 允许用户在指定分类的主题中接受解决方案。
:open_book: 安装指南 此插件已随 Discourse 核心 bundled。无需单独安装该插件。

启用 Solved 功能

Solved 插件可以从其设置中启用,访问路径为 admin/plugins 页面:

启用插件后,若要为所有分类启用 Solved 功能,请使用 allow solved on all topics 站点设置。

或者,如果您希望按分类单独应用:

  • 进入您希望启用解决方案的分类,点击分类扳手图标

  • 切换到“设置”选项卡

  • 向下滚动并启用“允许主题作者和工作人员将回复标记为解决方案”

Allow topic owner and staff to mark a reply as the solution

标记解决方案

主题发起人(OP)在每个回复下会有一个“解决方案”按钮,允许/鼓励他们接受某个答案:

对于其他可以接受答案的用户(例如管理员或版主),该选项会以更低调的复选框形式显示:

被接受的答案将在主题的首帖中高亮显示:

包含已接受答案的主题会在主题列表中以勾选框标记:

某些站点可能还希望在主题列表中显示未解决状态的指示器,这可以通过启用 empty_box_on_unsolved 站点设置来实现:

解决后自动关闭主题

在主要的 Solved 管理员设置中,您可以设置一个计时器,在主题获得解决方案后自动关闭该主题,使用 solved topics auto close hours 管理员设置:

或者,也可以在分类扳手菜单的“设置”选项卡中按分类单独设置:

搜索与筛选

搜索

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

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

筛选

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

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

https://meta.discourse.org/c/support?solved=yeshttps://meta.discourse.org/c/support?solved=no

按照以下说明,可以将这些链接添加到特定分类列表上方:

标记解决方案提醒

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

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

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

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

然后保存。:+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 徽章

名称 描述 详细描述 类型 分组
已解决! 有一条回复被标记为解决方案 此徽章授予给有一条回复被标记为主题解决方案的用户。: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: 这些徽章默认处于禁用状态。您可以从 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_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
Option to mark as solved
Query to find out who marked the solution as solved
How to replace the discourse `Topic` with `Question` instead?
[Accepted answer plugin] Add an ability to accept the initial (topmost) post as a solution
Question Answer Plugin
Discourse need a fork to be a Q&A software?
Discourse Solved Quote Customization
Follow up "open" tickets
No option appears to choose better answer
Image zoom is not working
Advice for getting my little game dev community "out there?"
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
(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
Where is Solved data stored in the database?
Too many Crawlers, is that a problem?
Discourse instance supporting entrepreneurs who sell on Amazon
Reordering a topic by ‘most liked’ or threaded replies
How to add this header, colored categories, and sidebar categories?
Looking for examples of Discourse Communities that visually call out answered/closed topics on feeds
Pinning a post to the top of the topic
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:
Topics list filter feature
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
Allow “Mark as Solution” in group messages
Easily create Support categories using the discourse-solved plugin
Question Answer Plugin
What happens next?
Bundling more popular plugins with Discourse core
Configuring auto-bumping for topics
Solved Button Plugin
Notifying members when a Tracked or Watched topic is solved
Horizon: High Context Topic Cards
Horizon Theme
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

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 个赞