View Full Version : 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 (https://vborg.vbsupport.ru/forumdisplay.php?f=109) The forum ID is 109.
vB3.5 Modification Questions (https://vborg.vbsupport.ru/forumdisplay.php?f=111) The forum ID is 111.
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).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.