473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Trying to figure out Threaded Forums..

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
4 1936
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
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
*** 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chris | last post by:
I think I already know that the answer is that this can't be done, but I'll ask anyways. Suppose you want to use an RDBMS to store messages for a threaded message forum like usenet and then...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
0
by: BergRD | last post by:
Salutations! New to the forums but have gotten many an idea from lurking over the past few months but alas it's time to begin positing; posting to a problem I cannot seem to resolve. This is a...
6
by: ben | last post by:
I am needing a web service to be single threaded. Is this possible? Any ideas would be helpful
2
by: John Rossitter | last post by:
Hi Everyone, I have a windows service which consumes a web service on a separate machine in our network. I modified my machine.config to allow my service application to make 200 connections to...
3
by: Rsrany | last post by:
I've been working on a few gtk applications and need to tie a hot key catcher into a thread. I am currently finding threaded user32.GetMessageA do not work. I have included two programs: 1) a...
3
by: salmobytes | last post by:
I'm shopping around for php based forum/bulletin board software. PhpBB is (obviously) popular. But I don't like the linear way its topic threads are presented. In the old days, the earliest...
14
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
As far as I know, the C Standard has no mention of multi-threaded programming; it has no mention of how to achieve multi-threaded programming, nor does it mention whether the language or its...
2
by: Joey | last post by:
Recently I have become totally frustrated in trying to find help for an asp.net question. I originally sought help on MSDN forums, only to be told that I should leave my question in forums.asp.net....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.