问答插件

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 个赞

I love this plugin. Thank you @angus

3 个赞

@scavin Thank you for doing the Chinese translations!

5 个赞

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 个赞

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 个赞

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

1 个赞

actions-summary-item was removed in FEATURE: Flag count in post menu · discourse/discourse@31e1005 · GitHub

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

1 个赞

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

为什么所有边界的长度都是奇数

@angus,感谢你这份出色的工作!我想从 @dalerka 去年二月中断的地方继续推进——我是 AskCyberinfrastructure 论坛的维护者之一,我们非常希望能支持每个话题下的多票投票功能。

具体来说,我们寻找的是类似 Reddit 或 Stack Exchange 的功能,允许用户对多个回复进行点赞。作为该论坛的用户,我通常喜欢多个答案,并希望将它们都置顶。这里的假设是,作为用户,我可以对多个答案有所偏好,并应能据此投票。需要讨论的问题如下:

  • 本插件的未来版本中是否有实现此类功能的可能性?
  • 是否存在现有的技巧可以实现相同或类似的效果?
  • 如果目前无法支持该功能,创建自定义插件或在此提交 PR 的步骤是什么?

我虽然不是经验丰富的 Ruby 程序员,但学习新东西的能力还不错,如果有人能提供大致方向,我很乐意尝试。谢谢!

@vsoch,感谢你的联系!

是的,这听起来像是该插件一个新功能的不错候选。很高兴你愿意协助开发工作!

接下来的步骤是为不同信任等级添加投票限制的网站设置。

以下是我们实现该功能的具体方案:

  1. 我的沙盒 上创建一个账户。

  2. 使用 功能请求自定义向导 提交功能请求。

  3. 鉴于你愿意协助实现该功能,我将直接把此功能请求提升至 “任务”工作流(通常这需要投票或资金贡献)。

  4. 我会在任务主题中为你提供一些实现指导,待你准备好拉取请求(PR)后,我会再提供进一步的反馈。

3 个赞

完成!

https://discourse.angusmcleod.com.au/t/qa-add-site-settings-for-vote-limits-according-to-trust-levels/1226

非常感谢您的帮助!期待学习一些 Ruby :slight_smile:

3 个赞

如何修改此插件,在保留投票功能的同时保持时间顺序?

此外,能否请添加“踩”(反对)功能?

在我的使用场景中,我需要通过元数据对帖子进行投票和优先级排序,同时保持主题在整个讨论串中的上下文时间顺序。

@mreach

这两个都是不错的功能建议。你可以在这里提交:

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

当前 Discourse 似乎有几个 bug,@angus


一对多关系中也存在同样的问题。

无法投票,任何等级的用户(包括等级 4)始终只会收到这条消息:

检查 JavaScript 发现,post.topic.can_vote 为 false。如果在检查器中将其设为 true,则我才能在该线程中无限制地投票,但一旦离开该页面再返回,问题又会重现。因此,后端部分“似乎”工作正常?

1 个赞

@OvermindDL1 感谢您的报告。这两个都是命名空间问题。我已推送了多项修复,请您更新后再次测试。

请注意,现在有一个设置用于信任等级投票限制系统(即启用/禁用):qa trust level vote limits@vsoch)。

2 个赞

谢谢 @angus!以下是修复内容,方便日后快速链接:

我尚未在移除 actions-summary 小部件的情况下进行测试(和调试),但我会持续关注更新,以便在能够测试时及时处理!

4 个赞