Discourse 已解决

:discourse2: Summary Discourse Solved allows users to accept solutions on topics in designated categories.
:open_book: Install Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.

Enabling Solved

The Solved plugin can be enabled from its settings, accessed from your admin/plugins page:

After enabling the plugin, to switch on Solved for all categories use the allow solved on all topics site setting.

Alternatively, if you’d like to apply it per category instead:

  • Go to the category you’d like to enable solutions in and click on the Category Wrench

  • Switch to the Settings tab

  • Scroll down and enable Allow topic owner and staff to mark a reply as the solution

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

Marking the Solutions

The OP (topic creator) will have a 'Solution` button on each reply that allows/encourages them to accept an answer:

And for other users who can accept an answer (eg. admin or moderators) the same option will show as a more discreet checkbox:

Accepted answers are then highlighted in the first post of the topic:

And topics with accepted answers are marked in the topic list with a checked box:

Some sites might also benefit from an unsolved indicator on topic lists as well, which can be enabled using the empty_box_on_unsolved site setting:

Auto-close topic once solved

From the main Solved admin settings you can set a timer to close a topic once it has received a solution using the solved topics auto close hours admin setting:

Alternatively, one can be set per category from the category wrench menu on the Settings tab:

Search & Filters

Search

The Solved plugin comes with some extra Advanced Search filters for solved or unsolved topics, which can be found in the “Where topics” dropdown:

Which will add status:solved or status:unsolved to your Search.

Filters

You can also enable a filter dropdown in topic list pages using the site setting show_filter_by_solved_status

You can also filter solved/unsolved topics by adding a parameter to the URL. For example:

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

These links could be added above a specific category list by following these instructions:

Marked Solution Reminder

On topics where solutions are able to be marked, a “Has your question been answered” popup message will display when the following criteria is met:

  • The topic does not have an accepted answer
  • The topic has at least one reply from another user
  • The author of the topic is logged in and able to accept a reply as an answer
  • The topic has existed for at least 7 days

If you want to prevent this popup message from being displayed, you can use the following CSS in a theme component to hide it:

.topic-navigation-outlet.no-answer {
    display: none;
}
Extra details on how to add this to your site
  • Go to /admin/customize/themes
  • Click on install and then create new
  • Give it a name, and select ‘component’.
  • Create
  • Add it to your theme
  • Click on the Edit CSS/HTML button and paste the code into the Common tab

And save. :+1:

Settings

Name Description
solved enabled Enable solved plugin, allow users to select solutions for topics
allow solved on all topics Allow users to select solutions on all topics (when unchecked, solutions can be enabled per category or tag)
accept all solutions allowed groups Groups that are allowed to accept solutions on any topic (even when not OP)
empty box on unsolved Display an empty box next to unsolved topics
solved quote length Number of characters to quote when displaying the solution under the first post
solved topics auto close hours Auto close topic (n) hours after the last reply once the topic has been marked as solved. Set to 0 to disable auto closing
show filter by solved status Show a dropdown to filter a topic list by solved status
notify on staff accept solved Send notification to the topic creator when a post is marked as solution by a staff
disable solved education message Disable education message for solved topics
accept solutions topic author Allow the topic author to accept a solution
solved add schema markup Add QAPage schema markup to HTML
prioritize solved topics in search Prioritize solved topics in search results.
enable solved tags Tags that will allow users to select solutions

Solved Badges

Name Description Long Description Type Grouping
Solved! Have a reply marked as a Solution This badge is granted for having a reply marked as a Solution to a topic. :white_check_mark: Nice job. :+1: :3rd_place_medal: Community
Guidance Counsellor Have 10 replies marked as Solutions This badge is granted for having 10 of your replies marked as Solutions to topics. :white_check_mark: You are a true asset to your fellow community members. :2nd_place_medal: Community
Know-it-All Have 50 replies marked as Solutions This badge is granted for having 50 of your replies marked as Solutions to topics. :white_check_mark: You really know your stuff. :clap: :1st_place_medal: Community
Solution Institution Have 150 replies marked as Solutions This badge is granted for having 150 of your replies marked as Solutions to topics. :white_check_mark: Excellent work. :slightly_smiling_face: You are officially a Solution Institution. :brain: :1st_place_medal: Community

:information_source: These badges will be disabled by default. You can enable them from your admin/badges page

:discourse2: Hosted by us? This plugin is available on all of our hosting tiers Solved | Discourse - Civilized Discussion


Development History

:information_source: As of Mar 27, 2025, you will need to use the discourse_solved_solved_topics database table to determine solved topics on your Discourse site. This table was introduced in the discourse-solved PR #352.

Thank you to Western Digital for funding the development of this plugin!

Last edited by @david 2025-07-22T13:15:05Z

Check documentPerform check on document:
162 个赞

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