The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Query for adding forums
Hello,
I'd like to add a list of forums and mark 'forum is active' as no, and would prefer to do it within a query to save time. What would be the correct format for this? Thanks, |
#2
|
|||
|
|||
You want a query that will make forums for you?
|
#3
|
|||
|
|||
Not sure about turning it "off" but there is an addon to automatically add forums.
|
#4
|
|||
|
|||
Sort of, I guess, but the main trouble I'm having is with marking them as inactive.
I want to add a list of about 100 forums so it makes sense to do it in one query rather than manually. |
#5
|
|||
|
|||
would take u longer to make the query as u need to make a different name for each forum section and permissions for each
but here are two querys to get you started Main section Code:
INSERT INTO `forum` VALUES ('1', '0', 'Main Category', 'Main Category', 'Main Category Description', 'Main Category Description', '86017', '0', '1', '0', '0', '', '0', '', '0', '0', '', '0', '-1', '', '', '-1', '1,-1', '', '', '1,2,-1', 'lastpost', 'desc', ''); Code:
INSERT INTO `forum` VALUES ('2', '0', 'Main Forum', 'Main Forum', 'Main Forum Description', 'Main Forum Description', '89799', '0', '1', '0', '0', '', '0', '', '0', '0', '', '0', '-1', '', '', '1', '2,1,-1', '', '', '2,-1', 'lastpost', 'desc', ''); |
#6
|
||||
|
||||
do you want to make a list of 100 new forums or make 100 forums inactive?
|
#7
|
|||
|
|||
100 new forums which are marked inactive .
|
#8
|
||||
|
||||
Would they all have the same parent forum/category?
|
#9
|
||||
|
||||
You'd be better off writing a php script that uses the forums datamanager and having that create 100 forums with the settings you need. Forum creation impacts more than just the forum table so just filling in entries in the forum table may or may not accomplish what you're after.
|
#10
|
|||
|
|||
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|