Hi - you need to get your head around topics, threads and posts matey
Topics are the top level - e.g. ColdFusion.
Threads are the conversations - e.g. Writing a message board in ColdFusion
Posts are the messages based around the thread - e.g. Message Board Thread
confusion
If you ID the topi
If you take the message structure as a tree, a thread is the path from one
message to one of its parents (father,grand father etc).
Taken the other way, its all the childen (and their children) of a specifc
post.
Weather you allow subject changes to mean a new thread starts or not is a
design que
You can either have a single-dimensioned thread (like a mailing list) or
you could go infinite with your threading. Best way to manage it is in
your database. Something like:
Messages table
--
msgText
Parentid
Msgid
Here's some sample data:
|msgID|msgText|Parentid|
|-|---
>hey guys i wanna build a message board, but am having difficulty with the
>concept of threads. Let's say there is a message, and 10 people respond to
>that same message. Are those ten people in the same thread? or not? But
>let's say that person B replied a message From person A, then person
4 matches
Mail list logo