![]() |
auto-creating a forum?
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.
|
AFAIK there is none.
A draft code could be (not tested) PHP Code:
|
PHP Code:
|
This is interesting...
Code:
function fetch_forum_parentlist($forumid) Code:
if ($foruminfo['parentid'] != 0) |
It does exist - in functions.php. Doh! ;)
|
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:
|
Is build_forum_permissions(); is supposed to use the forum defaults?
|
:( No one knows? I'm about to update to RC4 to see if they've put in any comments for this function, crossing my fingers for the moment, unless someone else knows.
Update: Nope, RC4 didn't help :( |
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 :) |
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. |
All times are GMT. The time now is 08:08 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|