Personalizzatore di ordinamento dei post di Discourse

Il discourse-post-sorting-customizer consente di ordinare i messaggi dei argomenti in base a tre varianti: attivo, più vecchio e mi piace.

Installazione
Installa il plugin seguendo le istruzioni per Installare i plugin. L’indirizzo del repository del plugin è:
https://github.com/jahan-ggn/discourse-post-sorting-customizer

Informazioni

  1. Attivo: consente di ordinare i messaggi che sono stati risposte di recente.
  2. Più vecchio: consente di ordinare i messaggi che sono stati risposte molto tempo fa.
  3. Mi piace: consente di ordinare i messaggi in base ai “mi piace” presenti sui post.

Nota
Per impostazione predefinita, il plugin è disabilitato. Per utilizzarlo, l’amministratore del sito deve abilitarlo tramite una configurazione del sito denominata discourse_post_sorting_customizer_enabled.

12 Mi Piace

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

2 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

@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 Mi Piace

Sembra un set di opzioni molto utile da avere, specialmente per ordinare per più vecchio. Mi piacerebbe vederlo nel core, davvero.

Nel frattempo, prima di adottare e iniziare a dipendere da questo plugin, volevo chiedere se alcune delle modifiche al layout apportate nel core sono destinate a influenzare questo plugin. Chiedo perché non è stato aggiornato da oltre un anno, quindi voglio solo assicurarmi che venga aggiornato/corretto se dovessero comparire problemi. :folded_hands:

2 Mi Piace

Sono entusiasta di provare questo. Sono anche curioso di sapere quanto pensi sarebbe facile aggiungere la possibilità di ordinare gli argomenti alfabeticamente, sia in ordine crescente che decrescente, poiché ci sono state molte richieste per questo: Sort display of topics Alphabetically, Sort topics in user-defined/alphabetical order, Sort topics (within category) in alphabetical order by default, Call me stupid - how do I sort topics by created date or by title?, e forse altre.

Pensi che sarebbe facile aggiungere l’opzione di ordinamento alfabetico?


Inoltre, un avviso, ho appena provato a installarlo e ho ricevuto un errore che dice Gem::LoadError: can't activate request_store-1.5.0, already activated request_store-1.5.1. Ho molti plugin installati, quindi non sono sicuro di quale potrebbe averlo già attivato, volevo solo farti sapere.

Ecco il messaggio completo:

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 Mi Piace

Sto riscontrando lo stesso errore:

Gem::LoadError: impossibile attivare request_store-1.5.0, request_store-1.5.1 è già attivo

Ciao e benvenuto @sudoanand :slight_smile:

Questo plugin ha il tag broken, quindi temo che al momento non sia previsto che funzioni.

1 Mi Piace