# Question Answer Plugin

**URL:** https://meta.discourse.org/t/question-answer-plugin/56032
**Category:** Plugin
**Tags:** deprecated
**Created:** [January 19, 2017, 4:43pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032 "2017-01-19T16:43:47Z")
**Posts on this page:** 20
**Page:** 5

<div class="post-metadata">

### Author: ![McBlu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcblu/32/91128_2.png) [@McBlu](https://meta.discourse.org/u/McBlu)
#### Post date: [March 11, 2018, 3:29pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/88 "2018-03-11T15:29:25Z")

</div>

Hey @angus,

Here is some discussion that I thought you might be interested in:

> [@There has got to be a way to have a scoring based on the civility of a post, rather than just popularity](https://meta.discourse.org/t/there-has-got-to-be-a-way-to-have-a-scoring-based-on-the-civility-of-a-post-rather-than-just-popularity/82728/4):
>
> First of all your concept rocks. We are trying to do something similar in the US with local politics. I was reading your website thinking, “Amen to that, brother.” Second of all, I really like where you are going with promoting civil discussion. Let’s face it there are enough personal attacks and incivility in politics as it is and I’ve learned that not everyone has the skills to conduct civil discourse. After reading your topic, I am inspired to really brainstorm about how to do this. You c…

---

<div class="post-metadata">

### Author: ![Miro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miro/32/66156_2.png) [@Miro](https://meta.discourse.org/u/Miro)
#### Post date: [March 28, 2018, 9:49am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/90 "2018-03-28T09:49:30Z")

</div>

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

Not sure how to use this tag?

---

<div class="post-metadata">

### Author: ![McBlu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcblu/32/91128_2.png) [@McBlu](https://meta.discourse.org/u/McBlu)
#### Post date: [March 28, 2018, 3:35pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/91 "2018-03-28T15:35:51Z")

</div>

Wondering Miro if that tag is for when you haven’t enabled the plug-in for a particular category but you do want one topic in the category in question to have the question-and-answer toggle active? Betting it is something like that…?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [March 28, 2018, 10:03pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/92 "2018-03-28T22:03:26Z")

</div>

Yup @McBlu is right. You can use that setting to create a QA topic outside of a QA category. e.g.

[https://discourse.angusmcleod.com.au/t/question-outside-of-a-qna-category/346](https://discourse.angusmcleod.com.au/t/question-outside-of-a-qna-category/346)

---

<div class="post-metadata">

### Author: ![Miro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miro/32/66156_2.png) [@Miro](https://meta.discourse.org/u/Miro)
#### Post date: [March 29, 2018, 5:51am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/93 "2018-03-29T05:51:04Z")

</div>

Yes, it took me some time.

Made forum section with Q&A.

But in any section I could start as a Question if in tags add “question” .  
Before that; first need to enable tags.

Thanks…

---

<div class="post-metadata">

### Author: ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)
#### Post date: [May 9, 2018, 5:32pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/94 "2018-05-09T17:32:39Z")

</div>

The string:

> Enable QnA style for topics in this category.

should be “Make all topics in this category QnA”, since if a category has this checked, then you cannot make a topic “normal”, or am I missing something?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 10, 2018, 12:34am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/95 "2018-05-10T00:34:08Z")

</div>

> [@joshm](#):
>
> should be “Make all topics in this category QnA”, since if a category has this checked, then you cannot make a topic “normal”

Yes, you’re right. Apologies for the confusion.

[https://github.com/angusmcleod/discourse-question-answer/commit/a6bc2b485a59d87732c158b97316d6798aba684e](https://github.com/angusmcleod/discourse-question-answer/commit/a6bc2b485a59d87732c158b97316d6798aba684e)

---

<div class="post-metadata">

### Author: ![adrianbblk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianbblk/32/87512_2.png) [@adrianbblk](https://meta.discourse.org/u/adrianbblk)
#### Post date: [June 9, 2018, 9:22pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/96 "2018-06-09T21:22:57Z")

</div>

As a suggestion, I think an “I have the same question” button would be great.

Many users just reply to a question with.“I have the same question”, and that’s load a topic too much for no reason and sometimes it makes other users to not open it because are thinking the answer was already posted. Also posted on [Discourse Solved (Accepted answer plugin)](https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [June 14, 2018, 3:32am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/97 "2018-06-14T03:32:08Z")

</div>

What do you see as the distinction between a ‘I have the same question’ button and the like button?

---

<div class="post-metadata">

### Author: ![adrianbblk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrianbblk/32/87512_2.png) [@adrianbblk](https://meta.discourse.org/u/adrianbblk)
#### Post date: [June 14, 2018, 6:47am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/98 "2018-06-14T06:47:53Z")

</div>

I’m guessing that users think of the Like button what they are using it on Facebook. (Like anything). I already explained that I have a lot of replies like. “I have this question too, I’m looking for an answer too”. And so on. Even doesn’t matter what the like button means, but how users use. Please like things just because…

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [June 15, 2018, 1:27am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/99 "2018-06-15T01:27:21Z")

</div>

Sorry, maybe I should have been a bit clearer in my question.

> [@adrianbblk](#):
>
> Many users just reply to a question with.“I have the same question”

Do you mean this is likely to happen, or are you using this plugin and finding that people are posting ‘I have this question too’ on QnA topics?

If it’s actually happening in topics with this plugin, then perhaps we need a solution for it. If not, then let’s see what happens in practice.

I recently added some updates to this plugin to make the QnA paradigm clearer. Perhaps they will help for this issue too (i.e. by making it clear that posts in the topics are either answers or comments on answers).

- Answer-specifc and comment-specific reply buttons

- QnA-specific topic map

 ![Screenshot%20at%20Jun%2015%2011-24-31](https://global.discourse-cdn.com/meta/original/3X/e/e/eec0c7b468562d62d57707c61ff838beab219b66.png)

---

<div class="post-metadata">

### Author: ![meyersh](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@meyersh](https://meta.discourse.org/u/meyersh)
#### Post date: [June 19, 2018, 6:46pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/100 "2018-06-19T18:46:44Z")

</div>

We were building discourse with the Q&A plugin just fine a few weeks ago. But now we get this error:

rake aborted!  
NoMethodError: undefined method `is_category_topic?' for #&lt;Topic:0x00559bd9efe488&gt; /discourse-build/plugins/discourse-question-answer/lib/qa_helper.rb:5:in `qa\_enabled’  
/discourse-build/plugins/discourse-question-answer/lib/qa\_post\_edits.rb:21:in `qa\_enabled’

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [June 20, 2018, 4:26am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/101 "2018-06-20T04:26:15Z")

</div>

hm, I have not encountered this error when building my sandbox with the Q&A plugin.

Also `is_category_topic?` is a method of the `Topic` class in core Discourse, so I’m not sure why it would be `undefined` on what seems to be an instance of the `Topic` class.

Do you have any other third party plugins installed?

Does this only happen when running `./launcher rebuild app`?

In any event, I’ve added a check that should handle your situation.

[https://github.com/angusmcleod/discourse-question-answer/commit/89fee2fb5ede156435ef790ee0790c6315291cf4](https://github.com/angusmcleod/discourse-question-answer/commit/89fee2fb5ede156435ef790ee0790c6315291cf4)

---

<div class="post-metadata">

### Author: ![meyersh](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@meyersh](https://meta.discourse.org/u/meyersh)
#### Post date: [June 20, 2018, 7:07pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/102 "2018-06-20T19:07:23Z")

</div>

This is happening during a plugin install. We have other 3rd party plugins: poll, lazyYT, discourse-oauth, and a couple others.

I will try it again with your check. Thanks for the quick response. Will let you know how goes.

---

<div class="post-metadata">

### Author: ![meyersh](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@meyersh](https://meta.discourse.org/u/meyersh)
#### Post date: [June 21, 2018, 1:45am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/103 "2018-06-21T01:45:58Z")

</div>

The fix worked! Thank you!

---

<div class="post-metadata">

### Author: ![kinto\_d](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kinto_d/32/100776_2.png) [@kinto\_d](https://meta.discourse.org/u/kinto_d)
#### Post date: [July 10, 2018, 7:33am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/104 "2018-07-10T07:33:24Z")

</div>

Is there anybody who got a problem after install this plugin?  
After i checked production log in my server, it says

```
undefined method `vote_count' for #<Post:0x00007fe54c498548>

```

I’m using Discourse version v2.1.0.beta2 +194, and only installed official ads plugin with default docker manager plugin.

Thanks

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [July 10, 2018, 7:46am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/105 "2018-07-10T07:46:43Z")

</div>

Perhaps this is due to this?

[https://github.com/discourse/discourse/commit/96aca6d7e6dc3c05d761098a19f96b82d2783b1c](https://github.com/discourse/discourse/commit/96aca6d7e6dc3c05d761098a19f96b82d2783b1c)

---

<div class="post-metadata">

### Author: ![kinto\_d](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kinto_d/32/100776_2.png) [@kinto\_d](https://meta.discourse.org/u/kinto_d)
#### Post date: [July 10, 2018, 9:34am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/106 "2018-07-10T09:34:28Z")

</div>

I’ve tried the plugin with code changes that removed “vote\_count” attribute, and somehow it works.

But vote counter become “undefined”

---

<div class="post-metadata">

### Author: ![kinto\_d](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kinto_d/32/100776_2.png) [@kinto\_d](https://meta.discourse.org/u/kinto_d)
#### Post date: [July 10, 2018, 9:40am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/107 "2018-07-10T09:40:17Z")

</div>

I do not understand why the Post model has the vote\_count attribute, even though Discourse doesn’t has a feature that votes on a post.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [July 10, 2018, 11:00am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/108 "2018-07-10T11:00:58Z")

</div>

@kinto_d Yes, as @Stranik suggestions, it’s because `vote_count` was just removed from core.

@tgxworld What would you suggest as the best strategy to deal with existing use of `vote_count` by this plugin?

I would investigate it more closely myself, but I’m currently without a laptop.

[Previous page](https://meta.discourse.org/t/question-answer-plugin/56032.md?page=4)

[Next page](https://meta.discourse.org/t/question-answer-plugin/56032.md?page=6)
