Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 09-10-2006, 08:53 AM
Chousho's Avatar
Chousho Chousho is offline
 
Join Date: Apr 2005
Location: Earth
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 09-11-2006, 06:33 PM
Chousho's Avatar
Chousho Chousho is offline
 
Join Date: Apr 2005
Location: Earth
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #3  
Old 09-11-2006, 06:35 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In reply to...

Your reply in this thread would have a parentid of 1071829 (post#1), as would mine.
Reply With Quote
  #4  
Old 09-11-2006, 06:59 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 09-11-2006, 10:52 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless you use threaded or hybrid mode (which the vast majority don't) it does sweet FA.
Reply With Quote
  #6  
Old 09-11-2006, 11:08 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-12-2006, 02:05 AM
Chousho's Avatar
Chousho Chousho is offline
 
Join Date: Apr 2005
Location: Earth
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 09-15-2006, 03:24 AM
Chousho's Avatar
Chousho Chousho is offline
 
Join Date: Apr 2005
Location: Earth
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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*
Reply With Quote
  #9  
Old 01-08-2007, 11:00 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chousho View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05116 seconds
  • Memory Usage 2,239KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete