OK here is the plan:
First read: (n=1) index=comment number
Set last modified info and title:
call php header ( top and left nav bars)
do {
display comment title links and date
disply text of comment
any replys to this message
{
n=n+1
new query,(replys to message n-1)
}
if ( query(n) has messages left)
{
get next message for query n
}
else
{n=n-1}
} until (n=1 and no messages left)
## actually jut n=1,cause first query returns
## one message
display "post your comment here"
display page footer ( last modifed, current
browser,close table.)
Hrmmm...
I think this will display a blank line where it shouldn't after each nested group
I have to add if n>MAX_N then display "additonal replys.."
last modified should really be the date of the innermost comment.. this system won't display that.. perhaps I should bag the "last modified" data, it messes up cacheing when I do updates anyway.. but then agian.. perhaps it helps me to have honest "last modified data" ... I guess I could pre-render the whole page in memorey before I send the "last modfied value to the client...
I need to thknk about this some more
Replys:
|