# Solved Button Plugin

**URL:** https://meta.discourse.org/t/solved-button-plugin/28129
**Category:** Feature
**Tags:** rfc, spec
**Created:** [April 30, 2015, 6:44am UTC](https://meta.discourse.org/t/solved-button-plugin/28129 "2015-04-30T06:44:15Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 9, 2015, 8:56pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/41 "2015-06-09T20:56:43Z")

</div>

Note, solved button is now deployed on meta.

I enabled it on the “support” category, if you are the OP you will see an accept answer button unless the topic is closed.

To enable it you need to edit the category to “allow accepted answers”, by default no categories allow them (I may add a site setting override here, to globally enable)

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [June 9, 2015, 10:21pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/42 "2015-06-09T22:21:08Z")

</div>

> [@sam](#):
>
> I enabled it on the “support” category, if you are the OP you will see an accept answer button unless the topic is closed.

Please OP use it and show us the power of this plugin 😃

---

<div class="post-metadata">

### Author: ![strager](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@strager](https://meta.discourse.org/u/strager)
#### Post date: [June 9, 2015, 10:27pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/43 "2015-06-09T22:27:50Z")

</div>

Here’s an example: [https://meta.discourse.org/t/maproutes-and-i18n-errors-in-the-error-log/24242](https://meta.discourse.org/t/maproutes-and-i18n-errors-in-the-error-log/24242)

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [June 10, 2015, 12:26am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/44 "2015-06-10T00:26:37Z")

</div>

Exciting… Happy to deploy for live testing as soon you feel it’s ready.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [June 10, 2015, 1:52pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/45 "2015-06-10T13:52:18Z")

</div>

> [@sam](#):
>
> Note, solved button is now deployed on meta.

1. Should there be some kind of confirmation if OP changes which post is the accepted answer? It seemed way too easy to do by mistake and the UI doesn’t make it terribly obvious that clicking that check button changed the answer. (Green background for the post?)

2. Can staff (moderators/admins) also select accepted answers?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 10, 2015, 3:10pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/46 "2015-06-10T15:10:12Z")

</div>

> [@downey](#):
>
> Can staff (moderators/admins) also select accepted answers?

Yes they can, I suppressed the button you must press the `...` to see it.

> [@downey](#):
>
> Should there be some kind of confirmation if OP changes which post is the accepted answer? It seemed way too easy to do by mistake and the UI doesn’t make it terribly obvious that clicking that check button changed the answer. (Green background for the post?)

I stripped the green background for now, it can easily be added with a css rule. I will look at adding a confirmation if you _change_ the answer from an existing one, but not for the initial accept.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [June 10, 2015, 3:25pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/47 "2015-06-10T15:25:52Z")

</div>

It seems relatively common that the “best” solution changes over time…  
… how best might the change in the “best” answer be handled.

I’ve seen this on StackOverflow…

… and other places .e.g. The best oil for an engine is “Brand X, Model W14” then later “Brand X” does away with the “Model W14” product and an alternative oil is best.

---

<div class="post-metadata">

### Author: ![nahtnam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nahtnam/32/122073_2.png) [@nahtnam](https://meta.discourse.org/u/nahtnam)
#### Post date: [June 11, 2015, 1:49am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/48 "2015-06-11T01:49:13Z")

</div>

I see that the plugin is being used here on meta. Is the source code available somewhere?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [June 11, 2015, 1:52am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/49 "2015-06-11T01:52:39Z")

</div>

You’ve been looking for “solved” haven’t you? 😉

The repo is at

[https://github.com/discourse/discourse-accepted-answer](https://github.com/discourse/discourse-accepted-answer)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 11, 2015, 1:59am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/50 "2015-06-11T01:59:55Z")

</div>

Yeah that is a pretty bad name @sam, it really should be solved or solution.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 11, 2015, 8:03am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/51 "2015-06-11T08:03:34Z")

</div>

will get it fixed but not sure what name makes most sense

`discourse-solutions`  
`discourse-solved`  
`discourse-accepted-answers`

none of them are particularly spectacular.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 11, 2015, 9:12am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/52 "2015-06-11T09:12:59Z")

</div>

Seems pretty clear to me

![](https://global.discourse-cdn.com/meta/original/3X/d/1/d10183196a062bfb4c70435252784386a6011677.png)

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [June 11, 2015, 1:15pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/53 "2015-06-11T13:15:06Z")

</div>

Still think the green background is a good move. As it stands now for long topics, it’s painful to try to scan the page for the correct reply.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 11, 2015, 2:28pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/54 "2015-06-11T14:28:30Z")

</div>

your call the CSS class is there so you can style it as you wish, we are moving away for loud backgrounds for our default styles so its a sane default.

---

<div class="post-metadata">

### Author: ![calmh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/calmh/32/115466_2.png) [@calmh](https://meta.discourse.org/u/calmh)
#### Post date: [June 15, 2015, 7:49am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/55 "2015-06-15T07:49:15Z")

</div>

Is there some magic required to enable this? I’ve added the plugin (discourse-solved) and rebuilt the web container (separate web and data), which is otherwise running 1.3.2. The plugin is listed among the other plugins under Admin → Plugins, but I’m not seeing any new settings on the category setting dialog to enable it…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 15, 2015, 7:50am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/56 "2015-06-15T07:50:28Z")

</div>

edit the category you want to enable it for, go to settings, enable solutions by ticking “Allow users to accept answers”

---

<div class="post-metadata">

### Author: ![calmh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/calmh/32/115466_2.png) [@calmh](https://meta.discourse.org/u/calmh)
#### Post date: [June 15, 2015, 7:52am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/57 "2015-06-15T07:52:01Z")

</div>

This is what I see on the edit category dialog:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/f/2f9f7781a3a5a31855bd756104739d24044ed336.png) 

But it looks installed, right?

 ![](https://global.discourse-cdn.com/meta/original/3X/9/a/9a03d5ad445f61d0a7ca26fc380413d63159383a.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 15, 2015, 7:52am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/58 "2015-06-15T07:52:45Z")

</div>

you must be on absolute latest for this to work.

---

<div class="post-metadata">

### Author: ![calmh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/calmh/32/115466_2.png) [@calmh](https://meta.discourse.org/u/calmh)
#### Post date: [June 15, 2015, 7:56am UTC](https://meta.discourse.org/t/solved-button-plugin/28129/59 "2015-06-15T07:56:38Z")

</div>

Ah. That’s too bad. 😞 I was hoping that it being a plugin, it would work with a two week old Discourse. 😉

---

<div class="post-metadata">

### Author: ![PJH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pjh/32/39071_2.png) [@PJH](https://meta.discourse.org/u/PJH)
#### Post date: [June 15, 2015, 3:17pm UTC](https://meta.discourse.org/t/solved-button-plugin/28129/60 "2015-06-15T15:17:27Z")

</div>

Bug: Missing translation..

![](https://global.discourse-cdn.com/meta/original/3X/3/6/369ea1c171f0303a0bb2bbb5fafc8b8faf6c9a49.png)

(Taken after a hard-refresh, on [this thread](https://meta.discourse.org/t/js-timeout-on-upgrade-to-1-4-0b2/29926), just to make sure…)

[Previous page](https://meta.discourse.org/t/solved-button-plugin/28129.md?page=2)

[Next page](https://meta.discourse.org/t/solved-button-plugin/28129.md?page=4)
