🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Rockinghorse Winner Thu, 10 Mar 2011 04:52
[slrn]Sort by number of articles in thread?
#244938
Author: Rockinghorse Winner
Date: Thu, 10 Mar 2011 04:52
9 lines
1521 bytes
Is there a way to sort the most active threads (no. of articles) at the top
of the list? Thanks!

*R* *H*
-- 
          Powered by Linux	        |/     2.6.32.26-175 Fedora 12 
 "No spyware. No viruses. No nags."     |/   2.6.31.12-0.2 OpenSUSE 11.2 
       http://www.jamendo.com           |/Mutt 1.5.21  slrn0.9.9p1  Irssi 0.8.15
    "Preach the gospel always; when necessary use words."  St. Francis    
Re: [slrn]Sort by number of articles in thread?
#244968
Author: Adam Funk
Date: Fri, 11 Mar 2011 11:44
16 lines
1529 bytes
On 2011-03-10, Rockinghorse Winner wrote:

> Is there a way to sort the most active threads (no. of articles) at the top
> of the list? Thanks!

AFAICT there isn't.

http://slrn.sourceforge.net/docs/slrn-manual-6.html#custom_sort_order


-- 
By dint of plentiful try...catch constructs throughout our code base,
we are sometimes able to prevent our applications from aborting.  We
think of the resultant state as "nailing the corpse in the upright
position".                                              [Verity Stob]
Re: [slrn]Sort by number of articles in thread?
#244974
Author: Rockinghorse Winner
Date: Fri, 11 Mar 2011 16:36
20 lines
1869 bytes
* It may have been the liquor talking, but 
Adam Funk <a24061@ducksburg.com> wrote:

> On 2011-03-10, Rockinghorse Winner wrote:
>
>> Is there a way to sort the most active threads (no. of articles) at the top
>> of the list? Thanks!
>
> AFAICT there isn't.
>
> http://slrn.sourceforge.net/docs/slrn-manual-6.html#custom_sort_order

Drats! 

*R* *H*
-- 
          Powered by Linux	     |/       2.6.32.26-175 Fedora 12 
 "No spyware. No viruses. No nags."  |/     2.6.31.12-0.2 OpenSUSE 11.2 
       http://www.jamendo.com        |/ Mutt 1.5.21  slrn0.9.9p1  Irssi 0.8.15
      "Preach the gospel always; when necessary use words."  St. Francis    
Re: [slrn]Sort by number of articles in thread?
#245351
Author: You
Date: Fri, 22 Apr 2011 21:12
30 lines
2141 bytes
On Wed, 9 Mar 2011 20:52:45 -0800, Rockinghorse Winner <rwinner@remove_this.hmamail.com> wrote:
> Is there a way to sort the most active threads (no. of articles) at the top
> of the list? Thanks!

Doesn't sort, but adds a score equal to the number of articles in the thread so
busier threads sort higher when sorting by score.

Below coded released to the public domain.

joe

cat ~/.slrn/thr_sz_sc.sl
variable my_numart;
define score_group_by_replies ()
{
        do
        {
                my_numart = 0;
                %retrieve the number articles in the thread
                my_numart = thread_size;
                %set the new score to the old scrore plus the threadcount
                set_header_score ( get_header_score + my_numart - 1 );
        }
        %resort the output
        while (header_down (1));
        sort_by_sorting_method (5);
        call ("header_bob");
}

() = register_hook ("article_mode_startup_hook", "score_group_by_replies");
Re: [slrn]Sort by number of articles in thread?
#245369
Author: Rockinghorse Winner
Date: Tue, 26 Apr 2011 09:14
45 lines
2805 bytes
* It may have been the liquor talking, but 
You <usenet@plaguesplace.dyndns.org> wrote:

> On Wed, 9 Mar 2011 20:52:45 -0800, Rockinghorse Winner <rwinner@remove_this.hmamail.com> wrote:
>> Is there a way to sort the most active threads (no. of articles) at the top
>> of the list? Thanks!
>
> Doesn't sort, but adds a score equal to the number of articles in the thread so
> busier threads sort higher when sorting by score.
>
> Below coded released to the public domain.
>
> joe
>
> cat ~/.slrn/thr_sz_sc.sl
> variable my_numart;
> define score_group_by_replies ()
> {
>         do
>         {
>                 my_numart = 0;
>                 %retrieve the number articles in the thread
>                 my_numart = thread_size;
>                 %set the new score to the old scrore plus the threadcount
>                 set_header_score ( get_header_score + my_numart - 1 );
>         }
>         %resort the output
>         while (header_down (1));
>         sort_by_sorting_method (5);
>         call ("header_bob");
> }
>
> () = register_hook ("article_mode_startup_hook", "score_group_by_replies");

Sorry took so long to respond. Thanks for this I will try it out tomorrow
and let you know how it works on my system.

Regards,

*R* *H*
-- 
          Powered by Linux	     |/       2.6.32.26-175 Fedora 12 
 "No spyware. No viruses. No nags."  |/     2.6.31.12-0.2 OpenSUSE 11.2 
  http://www.catholicscomehome.org   |/Mutt 1.5.21  slrn 0.9.9p1  Irssi 0.8.15
      "Preach the gospel always; when necessary use words."  St. Francis    
Re: [slrn]Sort by number of articles in thread?
#245370
Author: Rockinghorse Winner
Date: Tue, 26 Apr 2011 19:15
42 lines
2758 bytes
* It may have been the liquor talking, but 
You <usenet@plaguesplace.dyndns.org> wrote:

> On Wed, 9 Mar 2011 20:52:45 -0800, Rockinghorse Winner <rwinner@remove_this.hmamail.com> wrote:
>> Is there a way to sort the most active threads (no. of articles) at the top
>> of the list? Thanks!
>
> Doesn't sort, but adds a score equal to the number of articles in the thread so
> busier threads sort higher when sorting by score.
>
> Below coded released to the public domain.
>
> joe
>
> cat ~/.slrn/thr_sz_sc.sl
> variable my_numart;
> define score_group_by_replies ()
> {
>         do
>         {
>                 my_numart = 0;
>                 %retrieve the number articles in the thread
>                 my_numart = thread_size;
>                 %set the new score to the old scrore plus the threadcount
>                 set_header_score ( get_header_score + my_numart - 1 );
>         }
>         %resort the output
>         while (header_down (1));
>         sort_by_sorting_method (5);
>         call ("header_bob");
> }
>
> () = register_hook ("article_mode_startup_hook", "score_group_by_replies");

Wow, awsome! Thank's a lot for that - great stuff. :)

*R* *H*
-- 
          Powered by Linux	     |/       2.6.32.26-175 Fedora 12 
 "No spyware. No viruses. No nags."  |/     2.6.31.12-0.2 OpenSUSE 11.2 
  http://www.catholicscomehome.org   |/Mutt 1.5.21  slrn 0.9.9p1  Irssi 0.8.15
      "Preach the gospel always; when necessary use words."  St. Francis    
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads