Question Answer Plugin

It seems there is a bug with the diary setting when viewing a topic on mobile:

after the post there is a huge white space
can you check @angus ?

@pfaffman I’ve just pushed a fix for this plugin to bring it up to speed with the latest.

https://github.com/angusmcleod/discourse-question-answer/commit/67ffd1a2f05acfac11cd83d8c42fc5833661a827

4 Likes

I love this plugin. Thank you @angus

3 Likes

@scavin Thank you for doing the Chinese translations!

https://github.com/angusmcleod/discourse-question-answer/commit/6678b412f6906ca35c685dff24cf6d585750b899

5 Likes

Any news on scrollbar implementation for “one-to-many” layout?

First, very cool plugin. Second, in the sandbox, the “show comments” toggle doesn’t appear to toggle (meaning it just opens, without toggling back to closed if you click it again).

Am I doing it wrong? Do I click something else to toggle?

This isn’t being worked on at the moment, but happy to put it on the agenda if we can get a feature request with more than 5 votes: https://discourse.angusmcleod.com.au/w/feature-request

You’ll need an account on my sandbox to access the wizard.

This is indeed a bug! If you have the time to submit a report here it would be much appreciated: https://discourse.angusmcleod.com.au/w/bug-report

You’ll need an account on my sandbox to access the wizard.

Thanks :slight_smile:

2 Likes

Hi Angus,
We really want to make our formu Q&A so we tried to use your plugin.
Some points:

  1. We get an error in the DevTools - “Could not find widget actions-summary-item in registry”.
    image
    I saw in your Github that you were using it. Is it a bug?

  2. We can’t see the undo button after clicking the vote button. It could be due to my first point, but I’m not sure.

  3. What are the plants on the unlike button?

  4. When a post has comments, it does not have the ‘show comments’:
    image

  5. In your sandbox I noticed that if you click ‘show comments’ you can’t undo it (close the comments section).

Thank you.

3 Likes

Hey @verilog15, those do seem like bugs, if possible could you submit a bug report?

1 Like

actions-summary-item was removed in https://github.com/discourse/discourse/commit/31e100530f5eeef1ceac1c2af91b6df5b1d99521#diff-2458db8415a08bcd733d3e180343d885

https://github.com/angusmcleod/discourse-question-answer/issues/19

1 Like

If you use this with the Solved plugin, you can select a comment as the solution. Not ideal, but low priority to fix too.

Why are all the border lengths odd?

hey @angus, thank you for this beautiful work! I want to pick up where @dalerka left off last year in February - I’m one of the maintainers of the AskCyberinfrastructure discourse and we are immensely interested in having support for multiple votes per topic.

Specifically, we are looking for functionary akin to reddit or Stack Exchange, where it’s possible to upvote more than one response. As a user of the board, I commonly like a subset of the answers and would want to move them both up. The assumption here is that I, as a user, can have preference for more than one answer, and I should be able to vote accordingly. Questions to discuss:

  • is some option of this nature a possibility for a future version of this plugin?
  • are there existing tricks that could achieve the same or similar?
  • if this is not something that can be supported, what would be the steps to creating this custom plugin, or doing a PR here?

I’m not an experienced Ruby programming, but I’m fairly good at picking things up, and am always open to taking a shot, if someone is able to give general direction. Thank you!

Hey @vsoch, thanks for reaching out!

Yes, that sounds like a good candidate for a new feature for this plugin. Awesome that you’re keen to help out with the development as well!

The move here will be to add site settings for vote limits according to trust levels.

Here’s how we can tackle the implementation.

  1. Create an account on my sandbox.

  2. Submit a feature request using the feature request custom wizard.

  3. I’ll promote this feature request straight into the “Tasks” workflow as you’re keen to help out with the implementation (normally this takes votes or $ contributions).

  4. I’ll start you off with some pointers on how to implement this in the task topic, and then give you further feedback once you get a PR together.

3 Likes

Done!

Thank you so kindly! Looking forward to learning some Ruby :slight_smile:

3 Likes

How can this plugin be modified to KEEP chronological order while still facilitating the vote functionality?

Further, can you please add downvoting?

In my case I need to be able to vote and prioritize posts via meta data while still maintaining contextual chronology of a topic throughout the thread.

Hey @mreach

Both are decent feature requests. You can submit them here:

https://discourse.angusmcleod.com.au/w/feature-request

Couple of bugs it seems on the current Discourse @angus

image
Same on the one-to-many as well.

Unable to vote, everyone of any rank (including 4) always and only gets this message:
image

Checking the javascript, the post.topic.can_vote is false, if I set it to true in the inspector then and only then am I able to vote with impunity in that same thread until I navigate away and back to it, so the back-end side of it ‘seems’ to be working fine?

1 Like

@OvermindDL1 Thanks for the report. Both were namespace issues. I’ve pushed various fixes, so if you could update and test again.

Note that there is now a setting for the trust level vote limit system (i.e. to disable / enable): qa trust level vote limits (@vsoch).

2 Likes

Thanks @angus! Here are the fixes, for future easy linking:

https://github.com/angusmcleod/discourse-question-answer/commit/7e628de11021197024b89651979be4ee277771ea

I haven’t been able to test yet (and debug) with the actions-summary widget removed, but I’ll keep abreast of updates for when I can!

4 Likes