Slash Boxes

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.
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 -- 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
    < # $Id:,v 1.3 2002/01/07 01:28:35 david Exp $
    > # $Id:,v 1.4 2002/01/07 07:41:09 david Exp $
    <       if ($user->{mode} eq 'flat' || $user->{mode} eq 'archive') {
    >       if ($user->{mode} eq 'flat') {
    <       } 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.