The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Automated Forum Create
Ok, In the admin options of my website, I have setup a script that will create a forum, after having several forms entered. The mysql query goes through to the forums db but the new rows do not show up as forums in the forum index. The query is as follows:
$qstate = mysql_query ("INSERT INTO tbl_forum (title, title_clean, description, description_clean, options, displayorder, daysprune, parentid, parentlist, childlist) VALUES('".$value1."', '".$value2."', '".$value3"', '".$value4."', '32451', '1', '-1', '19', '19,18,-1', '-1');", $lid); I have checked against real forums created through admin pannel, these are exactly the same as the generated ones. Also Note I have edited the parent forums "childlist" and added the new forums to this. Note the prefix for vb tables I used is tbl_. Do I need to fill some other row in a table apart from the "forum" table? Help please, Thanks, Josh |
#2
|
||||
|
||||
Forum display is handled by the forum cache, so even if you do create a forum manually it wont show up on your board.
You need to use the datamanger from includes/class_dm.php here is a partial example from my site. Note my board is heavily modded, some of these option may not apply to vanilla vb. PHP Code:
|
#3
|
|||
|
|||
Thanks dude, if anyone knows of a more simple way of doing it, feel free to post it. Also if you get the time could you give me the code to edit and code to delete a forum. But this does look adequate, Much apreciated, thanks heaps, ill try and get back and tell you how it went.
The script goes through, but does not create a forum. I was wondering if anyone else, has the bare requirements of a script to generate a forum |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|