Plugin de questions-réponses

That’s fair.

I’ll share our plugin list here, so other people are able to see, if there’s a match. Else, i need to create a local instance and see, if i can find our which plugins are conflicting. (I’ve reproduced the bug in both Chrome and Firefox).

# > Docker Manager https://meta.discourse.org/t/discourse-docker-manager-plugin/12655/19
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/discourse/discourse-cakeday.git
          - git clone https://github.com/discourse/discourse-staff-notes.git
          - git clone https://github.com/jgujgu/discourse-guest-gate.git
          - git clone https://github.com/discourse/discourse-backup-uploads-to-s3.git
# > Trading buttons: Buy, Sell, Exchange https://meta.discourse.org/t/trading-buttons-buy-sell-exchange/71308
          - git clone https://github.com/jannolii/discourse-topic-trade-buttons.git
# > Topic List Previews https://meta.discourse.org/t/topic-list-previews/101646
          - git clone https://github.com/angusmcleod/discourse-topic-previews.git
# > Hamburger Theme Selector https://meta.discourse.org/t/hamburger-theme-selector/61210/25
          - git clone https://github.com/SamSaffron/discourse-hamburger-theme-selector.git
# > Retort - a reaction-style plugin for Discourse https://meta.discourse.org/t/retort-a-reaction-style-plugin-for-discourse/35903
          - git clone https://github.com/gdpelican/retort
# > Affiliate https://meta.discourse.org/t/discourse-affiliate-plugin/101937
          - git clone https://github.com/discourse/discourse-affiliate
# > Assign https://meta.discourse.org/t/discourse-assign/58044
          - git clone https://github.com/discourse/discourse-assign
# > Checklist Plugin https://meta.discourse.org/t/checklist-plugin-interactive-checkboxes-made-simple/36362
          - git clone https://github.com/discourse/discourse-checklist
# > Discourse Patreon Integration https://meta.discourse.org/t/discourse-patreon-integration/44366
          - git clone https://github.com/discourse/discourse-patreon
# > Legal Tools Plugin https://meta.discourse.org/t/legal-tools-plugin/87966
          - git clone https://github.com/angusmcleod/discourse-legal-tools
# > Who's Online https://meta.discourse.org/t/whos-online-plugin-discourse-whos-online/52345
          - git clone https://github.com/discourse/discourse-whos-online
# > Topic Rating plugin https://meta.discourse.org/t/topic-ratings-plugin/39578
          - git clone https://github.com/paviliondev/discourse-ratings
# > Discourse Encrypt (for Private Messages) https://meta.discourse.org/t/discourse-encrypt-for-private-messages/107918
          - git clone https://github.com/discourse/discourse-encrypt
# > Question Answer Plugin https://meta.discourse.org/t/question-answer-plugin/56032
          - git clone https://github.com/paviliondev/discourse-question-answer
# > Discourse Voting https://meta.discourse.org/t/discourse-voting/40121
          - git clone https://github.com/discourse/discourse-voting

Hi, thanks for this plugin. I’m wondering what tags other have been using to call Q and A layout besides question. Using question right now, but sure other tags would make more sense depending upon the use case.

  • Is there any way to combine this plugin with Solved plugin?

I’d like to be able to list answers as Solutions within the Solved plugin since that plugin is indexed by Knowledge Explorer plugin and adds a check mark to a topic’s title.

Hi. How can I translate this plugin into Russian?

Hi

Our page is returning error 502, if I try to post an answer.

I’ve updated our instance with no luck. Still throwing error 502, after a few seconds…

1 « J'aime »

Filed an issue here Error 502 with new Answers · Issue #34 · paviliondev/discourse-question-answer · GitHub

Nearly certain the issue arouse with one of the Aug 2 updates. One idea for a resolution would be to step back the version.

1 « J'aime »

@exetico @Curtis_Kephart After some digging it turns out that the issue you both reported will not occur if you run Discourse on any commit after (and including) this one

If you’re running Discourse on an older commit you’ll get this error

Unexpected error while indexing post for search : PG::NotNullViolation: ERROR: null value in column “private_message” violates not-null constraint

The plugin (unchanged) works as expected on the latest version of Discourse.

4 « J'aime »

Huh, wierd. But wierd.

I’ll rebuild our site again :grin:

Amazing plugin indeed, i would love if we can somehow add UX like Quora and SO style, with sticky votes numbers when scrolling. Please continue supporting and updating this plugin, I love it.

I am going to use this plugin in conjunction with discourse official solved and feature voting plugin.

Please continue upgrading this plugin as discourse updates to avoid any compatibility issues.

2 « J'aime »

I have few suggestions to improve this plugin UX.

It would be very nice

  1. if you guys remove the extra white empty padding/space it shows below the upvote arrow toward the left side of post, it just distorts the entire post look and feel, the post/look feel should be exactly as its in default discourse layout but just the sticky upvote/downvote arrows should show. right now the post content pushes on right side below the upvote arrow and it causes annoying blank white space on left side of the post :frowning:

  2. Also, there is a bug that when I’m reading answers , and if an answer has an image in the post, the image cuts towards the right side of the page. Again this bug is related to the unnecessary left padding on post content which I mentioned in my 1st point.

  3. The upvote buttons should be sticky and stay fixed and visisble if I’m reading a long post and as I continue scroll down, I should be able to still see the upvote button and count as I scrolldown through the post. it is very annoying when reading a long answer post I forget hhow.many upvotes this answer had… to see that I have scroll again to top of the post. to either see the count or upvote it.

  4. there should be an option to make 1 answer as best answer by author or staff/admin, that way we dont need to use discourse solved plugin and this will become independent full QnA plugin.

  5. I think this plugin is missing Google structuredata and schema.org markup to render the question and answers parse correctly in Google search snippets like it shows for Quora and Stackoverflow. this will definitely boost SEO scores of.the topics. which r QnA

I think you guys can get inspiration from Quora or stackoverflow current layout and learn how effectively readability and UX they provide even for long answers.

@angus @mbcahyono

I hope someone can follow my suggestions in the next plugin update. I promise u , users will love these improvements.

1 « J'aime »

Thanks for the suggestions!

This was originally added as a number of people asked for it, so I think you might be outvoted on that one.

Could you send a screenshot of this?

Interesting idea, what do you think @mbcahyono?

As this functionality already exists in another plugin, I’m not sure what the issue is here? What would be the advantage of duplicating that functionality? As you say, you can use both plugins at once.

Yes, that would be good to add. I’ll leave that up to @mbcahyono.

1 « J'aime »
  1. images cutting screenshots on mobile

  1. tables stars cutting and mis aligning due to extra padding on left side

  1. The text is pushed to right side too much due to unnecessary left side padding

Please see this topic on your mobile and try skim through the answers you will understand my point

Also, compare our plugin UI with Quora and Stackoverflow UI on mobile, u will see we can do lot of improvements

Look SO also has padding but its Answers look 100% easy to read and the images, code, or tables none of it is cutting, anything rich except text cuts on right side of screen.

Also, look SO has implemented schema.org correctly and all its answers and it’s best answer shows in Google serp, it looks nice

but in discourse QnA plugin the QuestionAnswer schema markup is missing.

Now look how well and easy to read layout is of Quora on mobile,

Also, the best answer thing will allow to have schema markup show inGoogle serps. I think this plugin should be a complete QnA solution so if we use this, we dont need the solved plugin as this QnA plugin has morefeatures then solved. but Its upto u guys.

Yes, the sticky fixed upvote button and count as i read scroll through long answers will be helpful.

Also, the left side extra padding makes me hard to read user answers. The full width default discourse posts r much easier to read, you can have the count and upvote button on top.left of the topic like the heart icon is at bottom left of the answer. That way the upvote arrow will not take extra empty space and distort the post readability in mobile view and will not push content and cut content on right side.

The full schema.org markup for Google structuredata will really boost SEO visibility in search engines for pages using this plugin. I’d love to have that. Like you guys did on rating plugin. Any other testing needed, I’m happy to help.

So, in short, you’re saying:

  1. There needs to be a tweak of the responsive (i.e. mobile) UX to slightly decrease the padding.

  2. Add Schema markup.

I think those are reasonable requests. We’ll take a look at implementing them when we can.

1 « J'aime »

yes exactly, thanks for summing my thoughts up :slight_smile: and if possible to show the sticky fixed upvote arrow and vote count as I read through the long answers and scroll down, they will be good.

Also, i think the upvote arrow should be bigger solid, bolded and more visible, something like Stackoverflow or like that:

image
image

Basically the arrows should be bigger and easier to spot, and same goes for the count, the answer count should be a bit big visible number so we can easily see it, how much voted an answer is. Especially for desktop and mobile screens. right now arrow and count is too small and hard to read. You can also make them have rounded circles if it looks cute.

Something like,

Many Thanks for accepting my suggestions!

[1.4.0] - 2020-10-05

Added

  • German translation (thanks to DerFetzer)
  • Ability to move comment to answers (post admin actions → Move to answers)

Changed

  • Fix compatibility issues with Discourse latest tests-passed branch
3 « J'aime »

J’ai récemment installé ce plugin et les réponses aux discussions commencent à apparaître dans le désordre sur toutes les sections du site. Quelques autres semblent rencontrer le même problème. Les modérateurs ont déplacé le message vers Support, mais peut-être que ce problème devrait être traité ici ? Je ne suis pas sûr, alors je fais un lien vers ce message de support depuis ici. Si cela est inutile, faites-le-moi savoir afin que je puisse supprimer ce message.

Je déplace cette discussion ici depuis Support

Je tourne sous la version 2.7.0.beta1 et depuis l’installation du plugin Q&A, les réponses aux publications s’affichent dans un ordre aléatoire. D’autres ont commencé à rencontrer les mêmes problèmes identifiés dans ce fil.

@AJDurant a proposé cette requête (ci-dessous) pour corriger le problème d’ordre, mais cela n’a pas résolu le souci. Le plugin semble toujours poster les réponses dans le mauvais ordre. J’ai désinstallé le plugin et exécuté :

rake posts:reorder_posts[1896]

mais cela n’a pas réorganisé les publications précédentes.

Je crains d’exécuter cette requête sans qu’une personne qualifiée ne l’examine plus en détail pour évaluer la correction. Avez-vous des idées sur la façon de résoudre ce problème ?

 SELECT
    id,
    ROW_NUMBER() OVER (
      PARTITION BY
        topic_id
      ORDER BY
        created_at,
        post_number
    ) AS new_post_number
  FROM
    posts
  /*where*/
)
UPDATE
  posts AS p
SET
  sort_order = o.new_post_number
FROM
  ordered_posts AS o
WHERE
  p.id = o.id AND
  p.sort_order <> o.new_post_number

Bonjour à tous, je voulais juste signaler que j’ai rencontré ce problème sur TestsPass actuel et que j’ai supprimé le plugin Question Réponse pour le résoudre.

Salut à tous, @mbcahyono répondra plus en détail sous peu, mais en attendant, pouvons-nous clarifier quelques points.

@sunjam Avez-vous remarqué ce problème après avoir supprimé la catégorie ? L’avez-vous simplement constaté dans les journaux ou a-t-il affecté votre site d’une manière ou d’une autre ?

@dfriestedt @AJDurant Veuillez vérifier si le plugin est activé dans la catégorie où les publications apparaissent dans un ordre différent. Le plugin triera automatiquement les publications selon l’ordre Q&R dans les catégories où il est activé (c’est le comportement prévu). Si vous le désactivez dans une catégorie, il réorganisera les publications selon l’ordre normal.

Par exemple, je viens d’activer et de désactiver le paramètre « Rendre tous les sujets de cette catégorie Q&R » dans la catégorie questions et réponses sur try.thepavilion.io et les publications se sont réorganisées comme prévu (sans affecter les sujets des catégories non Q&R). Aucune requête personnalisée n’est impliquée.

Lorsqu’il est activé

Lorsqu’il est désactivé

Si cela ne fonctionne pas pour vous, pourriez-vous également nous fournir plus de détails sur :

  • Depuis combien de temps utilisez-vous le plugin (c’est-à-dire que cela vient-il de se produire récemment ?)
  • Quels autres plugins tiers utilisez-vous actuellement ou avez-vous utilisés par le passé
  • Quelles requêtes de tri personnalisées avez-vous utilisées ?
  • Votre site utilise-t-il des balises ? Si oui, cela ne se produit-il que dans les sujets avec une balise ?
  • Le paramètre du site qa enabled est-il activé ?

Si vous voulez simplement corriger le problème

Si vous souhaitez simplement résoudre le problème, indépendamment du fait que ce plugin en soit la cause ou non, vous n’avez pas besoin d’exécuter une requête personnalisée. Supprimez plutôt ce plugin et tout autre plugin susceptible de modifier votre ordre de tri, puis exécutez la commande suivante sur votre serveur :

./launcher enter app
rake posts:reorder_posts

Cette tâche réorganisera toutes les publications de votre site selon l’ordre normal (celui de leur création). Si cela ne fonctionne pas pour vous, vous avez un autre problème sans rapport avec ce plugin. Je peux vous aider à le diagnostiquer davantage, mais j’aurai besoin de plus d’informations.

@dfriestedt si vous essayez de passer un ID de sujet là-dedans (la tâche accepte un ID de sujet en tant qu’argument si vous souhaitez cibler un sujet spécifique), essayez plutôt de l’exécuter ainsi :

rake "posts:reorder_posts[1234]"
1 « J'aime »

Désolé pour ce problème. J’ai créé une PR pour cela, en attente de fusion :

@dfriestedt Est-ce cela que vous avez expérimenté ? Si non, je vais creuser davantage ce problème et peut-être le résoudre aujourd’hui.

2 « J'aime »

J’ai fusionné la PR :+1:

2 « J'aime »