By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,748 Members | 1,570 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,748 IT Pros & Developers. It's quick & easy.

Trying to figure out Threaded Forums..

P: n/a
Hi there.

I'm trying to understand the math or 'how it works' with threaded posts and
such.

I'm using a MySQL table with like id's, subid, etc..

Can anyone point me in the right direction or give me a brief 'overview' on
how it works.

Been getting really confused and need a better way of doing it!

Thanks

Darren
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
news.btopenworld.com wrote:

I'm trying to understand the math or 'how it works' with threaded posts and
such.

Can anyone point me in the right direction or give me a brief 'overview' on
how it works.


<http://www.jwz.org/doc/threading.html>
<http://www.devshed.com/Server_Side/Administration/TalkToMe/page1.html>
Matthias

Jul 17 '05 #2

P: n/a
You might try downloading PHPBB, and examine thier code.

"news.btopenworld.com" <ze**@zeen.co.uk> wrote in message
news:bn**********@hercules.btinternet.com...
Hi there.

I'm trying to understand the math or 'how it works' with threaded posts and such.

I'm using a MySQL table with like id's, subid, etc..

Can anyone point me in the right direction or give me a brief 'overview' on how it works.

Been getting really confused and need a better way of doing it!

Thanks

Darren

Jul 17 '05 #3

P: n/a
*** news.btopenworld.com escribió/wrote (17:09:34 27/10/2003):
I'm trying to understand the math or 'how it works' with threaded
posts and such.

I'm using a MySQL table with like id's, subid, etc..

Can anyone point me in the right direction or give me a brief
'overview' on how it works.


Basically, it's all about trees (a kind of graph). You should find some
general info in any programming theory book. You have a collection of
nodes with a special attribute (pointer, branch... whatever name you
give it) that links them with other nodes. As for a forum, having
"message_id" and "parent_id" is probably enough (root messages will
have a NULL parent_id). As for dealing with trees, the best approach is
using recursive function.

Please note I've never written a forum myself and my theory might be
pretty rusty.
--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #4

P: n/a
On the subject of trees, I find this package helpful:

http://pear.php.net/package/Tree
"Alvaro G Vicario" <al******************@telecomputeronline.com> wrote in
message news:bn*************@ID-157797.news.uni-berlin.de...
*** news.btopenworld.com escribió/wrote (17:09:34 27/10/2003):
I'm trying to understand the math or 'how it works' with threaded
posts and such.

I'm using a MySQL table with like id's, subid, etc..

Can anyone point me in the right direction or give me a brief
'overview' on how it works.


Basically, it's all about trees (a kind of graph). You should find some
general info in any programming theory book. You have a collection of
nodes with a special attribute (pointer, branch... whatever name you
give it) that links them with other nodes. As for a forum, having
"message_id" and "parent_id" is probably enough (root messages will
have a NULL parent_id). As for dealing with trees, the best approach is
using recursive function.

Please note I've never written a forum myself and my theory might be
pretty rusty.
--
--
-- Álvaro G. Vicario - Burgos, Spain
--

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.