Discourseの投稿並び替えカスタマイザー

The discourse-post-sorting-customizer allows user to sort the topic posts based on 3 variants active, oldest, and likes

Installation
Install the plugin by following the Install Plugin instructions. The plugin’s repository address is
https://github.com/jahan-ggn/discourse-post-sorting-customizer

About

  1. Active: allows user to sort the posts that are answered recently
  2. Oldest: allows user to sort the posts that were answered long ago
  3. Likes: allows user to sort the posts based on likes that are being on posts

Note
By default, the plugin is disabled, to make use of the plugin the site administrator has to enable the plugin through a site setting named discourse_post_sorting_customizer_enabled

「いいね!」 12

@angus any thoughts to use it in Question Answer plugin?

「いいね!」 2

Nice work! Yes, I guess you could use it with the question answer plugin. I’m guessing you based the lists “Active”, “Oldest” and “Likes” on the similar post list sorting options in StackOverflow? Have you tested it out with the QnA plugin? Is there a community who needs this right now? It’d be good to see this in a real community first.

「いいね!」 7

Yes, I have tested with the QnA plugin it is working properly but there it will be required separately to decorate answer count for a perfect view that’s it

「いいね!」 3

Now the plugin is compatible with the discourse-solved plugin. When the user will select the post sorting variant and the topic has a post as a solution then it will showed first then rest of the posts will be sorted according to the sorting variant selected by the user.

「いいね!」 5

@jahan_gagan Thank you for this great plugin. This is very helpful for users to sort a large amount of replies and find what he wants.

Will it possible to make plugin category specific? only works in certain categories?
Also, does it make sense to add a feature to sort the posts by “users I liked” or “users I followed”?
“user follow” is a plugin angus developed. I think “users I liked” is sufficient. Thanks.

「いいね!」 1

これは非常に便利なオプションのセットのようです。特に最も古い順に並べ替えるのは便利です。ぜひコア機能に実装してほしいです。

それまでの間、このプラグインを採用して依存する前に、コアで行われているレイアウトの変更がこのプラグインに影響を与える可能性はあるか、お伺いしたいです。1年以上更新されていないため、問題が発生した場合にプラグインが更新/修正されることを確認したいだけです。:folded_hands:

「いいね!」 2

これを試すのが楽しみです。また、多くのリクエストがあるため、トピックを昇順と降順の両方でアルファベット順に並べ替える機能を追加するのはどれくらい簡単だと思いますか?https://meta.discourse.org/t/feature-request-sort-display-of-topics-alphabetically/53911、https://meta.discourse.org/t/sort-topics-in-user-defined-alphabetical-order/118216、https://meta.discourse.org/t/sort-topics-within-category-in-alphabetical-order-by-default/25350、https://meta.discourse.org/t/call-me-stupid-how-do-i-sort-topics-by-created-date-or-by-title/83684、そしておそらくもっと多くのリクエストがあります。

アルファベット順に並べ替えるオプションを追加するのは簡単だと思いますか?


また、お知らせですが、インストールを試したところ、「Gem::LoadError: can’t activate request_store-1.5.0, already activated request_store-1.5.1」というエラーが発生しました。多くのプラグインがインストールされているため、どれが既にアクティブになっているかはわかりませんが、お知らせしておきます。

以下は完全なメッセージです。

I, [2022-05-18T19:22:03.185295 #1]  INFO -- : > cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate'
rake aborted!
Gem::LoadError: can't activate request_store-1.5.0, already activated request_store-1.5.1
/var/www/discourse/lib/plugin_gem.rb:27:in `load'
/var/www/discourse/lib/plugin/instance.rb:773:in `gem'
/var/www/discourse/plugins/discourse-post-sorting-customizer/plugin.rb:14:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:679:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:679:in `activate!'
/var/www/discourse/lib/discourse.rb:279:in `block in activate_plugins!'
/var/www/discourse/lib/discourse.rb:276:in `each'
/var/www/discourse/lib/discourse.rb:276:in `activate_plugins!'
/var/www/discourse/config/application.rb:222:in `block in <class:Application>'
/var/www/discourse/lib/plugin.rb:6:in `initialization_guard'
/var/www/discourse/config/application.rb:221:in `<class:Application>'
/var/www/discourse/config/application.rb:81:in `<module:Discourse>'
/var/www/discourse/config/application.rb:80:in `<top (required)>'
/var/www/discourse/Rakefile:7:in `require'
/var/www/discourse/Rakefile:7:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
「いいね!」 1

同じエラーに直面しています。

Gem::LoadError: can’t activate request_store-1.5.0, already activated request_store-1.5.1

こんにちは、@sudoanand さん、ようこそ:slight_smile:

このプラグインには broken タグが付いているため、現在動作しないことが予想されます。

「いいね!」 1