View Full Version : What does parentid do?
Chousho
09-10-2006, 08:53 AM
So I'm looking in the database, specifically at the post table. I noticed that parentid is always 0 when a new thread is made. However, sometimes it is blank, and other times it has another number.
Could somebody tell me what exactly parentid does, and what those other numbers mean?
Chousho
09-11-2006, 06:33 PM
So I'm looking in the database, specifically at the post table. I noticed that parentid is always 0 when a new thread is made. However, sometimes it is blank, and other times it has another number.
Could somebody tell me what exactly parentid does, and what those other numbers mean?
Do the bump with me!:D
Adrian Schneider
09-11-2006, 06:35 PM
In reply to...
Your reply in this thread would have a parentid of 1071829 (post#1), as would mine.
darnoldy
09-11-2006, 06:59 PM
Could somebody tell me what exactly parentid does, and what those other numbers mean?The parentid gives you the id of the message to which the message in question is a reply.
--don
Paul M
09-11-2006, 10:52 PM
Unless you use threaded or hybrid mode (which the vast majority don't) it does sweet FA.
Adrian Schneider
09-11-2006, 11:08 PM
Unless you use threaded or hybrid mode (which the vast majority don't) it does sweet FA.
lol, nice choice of wording... agreed
I personally don't know anybody who uses threaded or hybrid mode - ever. But, I'm sure there are those who use it.
Chousho
09-12-2006, 02:05 AM
Thanks for the info, guys!
So let's say there is a forum where replies are not allowed, would there be a need for a parentid?
Such as, what if I wanted to use (a stripped down) VB to post news. No "comments" in reply to the news post, just the initial story. Theoretically, would there still be a purpose for parentid?
*sorry, just thought of another*
So replies are searched for according to parentid, then shown by date?
Chousho
09-15-2006, 03:24 AM
Thanks for the info, guys!
So let's say there is a forum where replies are not allowed, would there be a need for a parentid?
Such as, what if I wanted to use (a stripped down) VB to post news. No "comments" in reply to the news post, just the initial story. Theoretically, would there still be a purpose for parentid?
*sorry, just thought of another*
So replies are searched for according to parentid, then shown by date?
Let's do the time warp again *bump*
Thanks for the info, guys!
So let's say there is a forum where replies are not allowed, would there be a need for a parentid?
Such as, what if I wanted to use (a stripped down) VB to post news. No "comments" in reply to the news post, just the initial story. Theoretically, would there still be a purpose for parentid?
*sorry, just thought of another*
So replies are searched for according to parentid, then shown by date?
in forum view, if you dont have reply, you dont need to use parentid. however, in this paticular the system (vbulletin), you still need to have it, for vbulletin to work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.