Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(blogware)-> (Parent)->simple nesting submited by Russell Tue 08 Feb 05
Edited Wed 11 Jan 06
Web kangry.com
OK I got simple nesting, viewtopic now shows each reply as a link. I have no way to view a reply to a reply
What is needed is a "view thred" function.
or actually an ibedded thread is what I need.. For one thing I have noticed that I tend to edit a comment simply to append to it ( as I am doing now) when what is really needed is a way to display replys inline via blockquote:
Parent comment
Reply 1
Reply 2
Logisticly this should be simple, it will just require nested reads to the database. Perhaps I could put a limit on the most nested reads that it would do and simply put in Rest of replys.... links when the limit is hit.. but that's actually getting cought up in theoy that probably wouldn't be an issue in the real world. :
Initial comment ( one read to DB)
first reply ( 2nd read )
2nd reply (second record read from 2nd read)
first double nested reply (3rd db read)
3rd reply ( 3rd record from second read )
### add your reply space
the real problem I need to get past here is that up until now I have done this with staticly named varibles.
First read from DB: $result = mysql_query ($query)
2nd read from DB: $tempresult = mysql_query ($tempquery)
To do the nested comments as listed above, I would need to use a 3rd varible. I need to do this with an array so it will work for an abitrary number of reads
$result[$n] = mysql_query ($query[$n])
Such a system would work for far more comments than would fit on screen.

I have to ponder this for a while. It's going to have to be done with a recursive re-entrent php code. While I think I know how to do this in pricipal. I don't write natualy reentrint php code.


Replys:
simple netsting continued (Russell)

Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Wednesday 03rd of December 2014 09:40:39 AM
your client: CCBot/2.0 (http://commoncrawl.org/faq/)
current time: Friday 24th of November 2017 12:39:37 AM