Stories
Slash Boxes
Comments

Slash Open Source Project

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • by davidt (71) on Saturday February 16 2002, @02:38AM (#4258) Homepage
    I prefer nested mode to flat when archiving stories, so I looked into it.

    here's my diff in my modified Slash.pm -- I am not sure if this is the best way to do it but it seems to work. One small problem - when the archived page is displayed, the archived comments are still listed as 'flat' even though they are actually nested mode.

    diff -r1.3 -r1.4
    4c4
    < # $Id: Slash.pm,v 1.3 2002/01/07 01:28:35 david Exp $
    ---
    > # $Id: Slash.pm,v 1.4 2002/01/07 07:41:09 david Exp $
    478c479
    <       if ($user->{mode} eq 'flat' || $user->{mode} eq 'archive') {
    ---
    >       if ($user->{mode} eq 'flat') {
    481c482
    <       } elsif ($user->{mode} eq 'nested') {
    ---
    >       } elsif ($user->{mode} eq 'nested' || $user->{mode} eq 'archive') {
    • by the way, this is for changing the default archived comment view mentioned in a previous comment.
    • If there was a way (and I am sure there is) to turn how stories are archived to disk that was controlled via vars, I would gladly except a patch for it.
      --

      --
      You can't grep a dead tree.