The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
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).
|
#5
|
|||
|
|||
thanks very much!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|