vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What does parentid do? (https://vborg.vbsupport.ru/showthread.php?t=126232)

Chousho 09-10-2006 07:53 AM

What does parentid do?
 
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 05:33 PM

Quote:

Originally Posted by Chousho
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 05: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 05:59 PM

Quote:

Originally Posted by Chousho
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 09:52 PM

Unless you use threaded or hybrid mode (which the vast majority don't) it does sweet FA.

Adrian Schneider 09-11-2006 10:08 PM

Quote:

Originally Posted by Paul M
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 01: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 02:24 AM

Quote:

Originally Posted by Chousho
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*

mtha 01-08-2007 11:00 PM

Quote:

Originally Posted by Chousho (Post 1073114)
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.


All times are GMT. The time now is 04:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01699 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete