# 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:** 12

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [April 22, 2020, 6:47pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/230 "2020-04-22T18:47:14Z")

</div>

This is a policy that covers all Pavilion plugins.

Sorry for the confusion. What we are saying is any high or critical severity issue identified by the fifth day will be rectified hopefully by the 7th. Then you can update the plugin ONLY and things should work again. The main takeaway is that there may be a small lag involved before a fix is issued, hence the difference in those two numbers (5 versus 7).

If the bug is SO bad that you have to remove the plugin, obviously that will require a rebuild to replace it and Discourse will get updated too. We’ll deal with those occasions when they crop up. Hopefully those will be very unusual.

---

<div class="post-metadata">

### Author: ![Venkat\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/venkat_k/32/177588_2.png) [@Venkat\_K](https://meta.discourse.org/u/Venkat_K)
#### Post date: [April 23, 2020, 10:20pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/231 "2020-04-23T22:20:42Z")

</div>

@mbcahyono @merefield

I am getting this error when installing the plugin from git, please assist.

 ![Screen Shot 2020-04-23 at 5.17.29 PM](https://global.discourse-cdn.com/meta/original/3X/5/f/5fbaf754286edf0fed0340599b75677eac56c8b2.png)

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [April 23, 2020, 10:34pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/232 "2020-04-23T22:34:53Z")

</div>

It seems you’re trying to install it as a theme. This is a plugin, not a theme. Please follow this guide:

> [@Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-in-discourse/19157):
>
> warning This guide assumes that you have a self-hosted standard installation. We only support the standard method of install here, so these instructions assume you have a [standard install](https://meta.discourse.org/t/142537?silent=true). warning This guide only applies to self-hosted Discourse instances. If you are using a managed hosting service, the available plugins are controlled by your hosting provider. For example, on our hosting [these specific plugins](https://www.discourse.org/plugins) are available by hosting tier. information_source As of mid-2025, [many p…](https://meta.discourse.org/t/373574)

---

<div class="post-metadata">

### Author: ![verilog15](https://avatars.discourse-cdn.com/v4/letter/v/9f8e36/32.png) [@verilog15](https://meta.discourse.org/u/verilog15)
#### Post date: [April 23, 2020, 11:35pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/233 "2020-04-23T23:35:45Z")

</div>

It is so awesome to hear! Some questions if you may:

1. Technically speaking, how should I run the tests branch from production?
2. You said that this plugin will be rewritten. Is there a plan what is going to change and what is going to be added?

Thank you very much!

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [April 24, 2020, 12:06am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/234 "2020-04-24T00:06:41Z")

</div>

1. It’s optional. We have our own staging site and you can test the plugin here: [try.thepavilion.io](http://try.thepavilion.io)

However, you could setup your own staging site and test the plugin there if you’d like to.

1. More like code refactor. No new feature has been added.

---

<div class="post-metadata">

### Author: ![verilog15](https://avatars.discourse-cdn.com/v4/letter/v/9f8e36/32.png) [@verilog15](https://meta.discourse.org/u/verilog15)
#### Post date: [April 24, 2020, 1:18am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/236 "2020-04-24T01:18:07Z")

</div>

Any plans for future? Saw a post about it a while ago on Pavilion. 🙂

---

<div class="post-metadata">

### Author: ![Venkat\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/venkat_k/32/177588_2.png) [@Venkat\_K](https://meta.discourse.org/u/Venkat_K)
#### Post date: [April 25, 2020, 3:30pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/237 "2020-04-25T15:30:57Z")

</div>

@mbcahyono @merefield

Can you please assist, I am getting 502 Bad Gateway error after adding below plugin hook.

hooks:  
after\_code:

- exec:  
cd: $home/plugins  
cmd:
- git clone [GitHub - discourse/docker\_manager: Plugin for use with discourse docker image · GitHub](https://github.com/discourse/docker_manager.git)
- git clone [GitHub - paviliondev/discourse-question-answer: Discourse Question Answer Plugin · GitHub](https://github.com/paviliondev/discourse-question-answer.git)

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [April 28, 2020, 5:07am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/238 "2020-04-28T05:07:32Z")

</div>

> [@Venkat\_K](#):
>
> git clone [GitHub - paviliondev/discourse-question-answer: Discourse Question Answer Plugin · GitHub](https://github.com/paviliondev/discourse-question-answer.git)

Have you tried to comment this line and rebuild?

---

<div class="post-metadata">

### Author: ![Faizan\_Zahid](https://avatars.discourse-cdn.com/v4/letter/f/b9bd4f/32.png) [@Faizan\_Zahid](https://meta.discourse.org/u/Faizan_Zahid)
#### Post date: [April 28, 2020, 8:53am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/239 "2020-04-28T08:53:23Z")

</div>

how can i default sort all posts on a topic to have the most voted/most liked posts on top, like stackoverflow does? @angus

---

<div class="post-metadata">

### Author: ![Venkat\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/venkat_k/32/177588_2.png) [@Venkat\_K](https://meta.discourse.org/u/Venkat_K)
#### Post date: [April 29, 2020, 5:03am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/240 "2020-04-29T05:03:33Z")

</div>

After removing the plugin the site is back to normal, how to fix this issue ? is it not compatible with latest discourse version ?

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [April 29, 2020, 6:10am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/241 "2020-04-29T06:10:22Z")

</div>

This is the first time you install any custom plugin? Just tested locally and everything works fine. This is isolated case unless someone else report the same issue.

502 usually means the frontend (Nginx) is running but the backend (Rails server/Unicorn?) is not.

What’s your app.yml looks like?

---

<div class="post-metadata">

### Author: ![Venkat\_K](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/venkat_k/32/177588_2.png) [@Venkat\_K](https://meta.discourse.org/u/Venkat_K)
#### Post date: [May 8, 2020, 4:59pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/242 "2020-05-08T16:59:54Z")

</div>

other plugins are working fine.

```
## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-sitemap.git
          - git clone https://github.com/pmusaraj/discourse-sidebar-blocks.git
            # - git clone https://github.com/paviliondev/discourse-question-answer.git

```

---

<div class="post-metadata">

### Author: ![VOICE\_OF\_CHINA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/voice_of_china/32/177167_2.png) [@VOICE\_OF\_CHINA](https://meta.discourse.org/u/VOICE_OF_CHINA)
#### Post date: [June 13, 2020, 12:21pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/243 "2020-06-13T12:21:17Z")

</div>

> [@jgujgu](#):
>
> 2 features I think are worth exploring are
> 
> 1. Displaying total votes for a user in their profile
> 2. Displaying the top voted posts in their user profile  
> I’ll try to rough out these features in the coming weeks.

I really like this suggestion. Will developers consider adding these features to plugins?

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [June 17, 2020, 2:22am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/244 "2020-06-17T02:22:24Z")

</div>

Added to my to-do list.

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [July 3, 2020, 11:46am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/245 "2020-07-03T11:46:01Z")

</div>

> [@jgujgu](#):
>
> Displaying total votes for a user in their profile

Added to the plugin:

[https://github.com/paviliondev/discourse-question-answer/commit/8249bf47a94656b5beacef4e7552f9b2dc86d525](https://github.com/paviliondev/discourse-question-answer/commit/8249bf47a94656b5beacef4e7552f9b2dc86d525)

Screenshot:

 ![DeepinScreenshot_select-area_20200703183951](https://global.discourse-cdn.com/meta/original/3X/d/d/dd798096422fb3b4aa14148af52672b44970a64f.png) ![DeepinScreenshot_select-area_20200703183913](https://global.discourse-cdn.com/meta/original/3X/e/8/e87a5862a076b5d9c50fedcff1b57f2e3d208d46.png)

---

<div class="post-metadata">

### Author: ![exetico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exetico/32/119962_2.png) [@exetico](https://meta.discourse.org/u/exetico)
#### Post date: [July 30, 2020, 1:26pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/246 "2020-07-30T13:26:34Z")

</div>

Could you consider to add an “blacklist” tag, which can be used to **disable** Q&N layout for threads with that tag? (Like you have, for **enabling** it) 🙂

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [July 30, 2020, 1:56pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032/247 "2020-07-30T13:56:10Z")

</div>

I will see if I can add this feature in the next release (around 5th next month) 🙂

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [August 3, 2020, 6:10am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/248 "2020-08-03T06:10:07Z")

</div>

> [@exetico](#):
>
> Could you consider to add an “blacklist” tag, which can be used to **disable** Q&N layout for threads with that tag? (Like you have, for **enabling** it) 🙂

[https://github.com/paviliondev/discourse-question-answer/commit/e9af336326569c1ceca4161e466070263f4e4e8e](https://github.com/paviliondev/discourse-question-answer/commit/e9af336326569c1ceca4161e466070263f4e4e8e)

Now you can also create comment on a question (OP):  
[https://github.com/paviliondev/discourse-question-answer/commit/d2b1fdc629536f0b0dbe140fa4a0de4677aa640e](https://github.com/paviliondev/discourse-question-answer/commit/d2b1fdc629536f0b0dbe140fa4a0de4677aa640e)

Screenshot:

 ![DeepinScreenshot_select-area_20200803124244](https://global.discourse-cdn.com/meta/original/3X/9/8/987b9b48ea2f5168b92b668815d7a098ae357c72.png)

---

<div class="post-metadata">

### Author: ![exetico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exetico/32/119962_2.png) [@exetico](https://meta.discourse.org/u/exetico)
#### Post date: [August 3, 2020, 9:41am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/249 "2020-08-03T09:41:39Z")

</div>

Thanks @mbcahyono 🙂 I’ve updated our site, and it works like it should.

I’ve spotted a small bug.

1. Visit a QnA-formatted topic
2. Navigate to other topics hereafter
3. Avatars are now 25px in size, instead of 45px.

Here’s one example:

```plaintext
<img alt="" src="/letter_avatar_proxy/v4/letter/v/ce7236/25.png" title="...removed..." class="avatar" width="25" height="25">

```

And here’s the default size:

```plaintext
<img alt="" src="/letter_avatar_proxy/v4/letter/v/ce7236/45.png" title="...removed..." class="avatar" width="45" height="45">

```

(It’s not only limited to the “Letter avatar proxy” avatars. It’s also the normal avatars.)

By reloading the page (F5), it’s all good again.

I’ve created an issue on GitHub:  
[https://github.com/paviliondev/discourse-question-answer/issues/33](https://github.com/paviliondev/discourse-question-answer/issues/33)

---

<div class="post-metadata">

### Author: ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)
#### Post date: [August 3, 2020, 10:02am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/250 "2020-08-03T10:02:08Z")

</div>

Thanks for the report but it seems I can’t reproduce the issue on my end. I will dig further if other report the same issue.

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

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