vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Difference between forum and category? (https://vborg.vbsupport.ru/showthread.php?t=101797)

tomf 11-28-2005 05:55 PM

Difference between forum and category?
 
How do you know if your forumid belongs to a forum or a category? I can't find any field in the table which tells the difference. Maybe the options field? But for me the entries look like random numbers :ermm:

Reeve of shinra 11-28-2005 06:36 PM

each "forumid" is uninque. A "forum" can act as as a forum or a catagory.

So...

Catagory (id: 1)
- Forum A (id: 2)
-- subforum A (id: 3)

etc.

An easy way to see what the ID is is to click on the link for that in your forum.

Using vb.org as an example:
vB3.5 Modifications The forum ID is 109.

vB3.5 Modification Questions The forum ID is 111.

tomf 11-28-2005 07:14 PM

thx but maybe my question wasn't clear.

In my script I'm creating threads. Now I can't create a thread in a category - only in forums. But in the script I only have the forumid, and with just the id I can't tell if it's a forum or if it's a category. The problem is the script generates the threads and they get lost because they belong to a category. So there has to be some value in the database which tells if a forumid is a category or a forum.

akanevsky 11-28-2005 08:47 PM

Yes, it is contained as a bit (cancontainthreads) within the "options" field of the forum information. However, the bit, in this case, is getting take care of and converted to a normal array value, so it is simply a $foruminfo['cancontainthreads'] (bool).

tomf 11-28-2005 09:12 PM

thanks very much!


All times are GMT. The time now is 07:20 AM.

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.01071 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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