The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Does anyone know of a way of auto-creating a forum, other than a normal mySQL command? Looking for the vB function, if it exists.
|
#2
|
||||
|
||||
![]()
AFAIK there is none.
A draft code could be (not tested) PHP Code:
|
#3
|
||||
|
||||
![]() PHP Code:
![]() |
#4
|
||||
|
||||
![]()
This is interesting...
Code:
function fetch_forum_parentlist($forumid) { global $DB_site; if ($forumid == -1) { return '-1'; } $foruminfo = $DB_site->query_first("SELECT parentid FROM " . TABLE_PREFIX . "forum WHERE forumid = $forumid"); $forumarray = $forumid; if ($foruminfo['parentid'] != 0) { $forumarray .= ',' . fetch_forum_parent_list($foruminfo['parentid']); } if (substr($forumarray, -2) != -1) { $forumarray .= '-1'; } return $forumarray; } Code:
if ($foruminfo['parentid'] != 0) { $forumarray .= ',' . fetch_forum_parent_list($foruminfo['parentid']); } |
#5
|
||||
|
||||
![]()
It does exist - in functions.php. Doh!
![]() |
#6
|
||||
|
||||
![]()
Well, I got it to work, except that Display Order = 0 and every setting except for Apply This Password to Child Forums is set to 0. This setup is not the default. If I'm reading it correct, build_forum_permissions(); is supposed to use the defaults? I'd like for it to use the defaults of the site, or the forum it is a sub-forum of. Here's the code so far:
PHP Code:
|
#7
|
||||
|
||||
![]()
Is build_forum_permissions(); is supposed to use the forum defaults?
|
#8
|
||||
|
||||
![]() ![]() Update: Nope, RC4 didn't help ![]() |
#9
|
||||
|
||||
![]()
Blatant BUMP...... If I can get this auto forum script to work, I can finally put the pieces of my site together.... PLEASEEEEEEEEEEEEEEEE
![]() Yes, I'm desperate enough to whine ![]() |
#10
|
|||
|
|||
![]()
Anyone ever figure this out? I keep getting this error:
Database error in vBulletin 3.0.6: Invalid SQL: SELECT parentid FROM forum WHERE forumid = mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 mysql error number: 1064 I'm using the same exact code. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|