The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Need ParentId and ShowPrivate help on inserting new forum?
I'm having trouble getting the showprivate property to insert into the database when manually creating a new forum.
$fmanager->set_bitfield( 'options', 'showprivate', 1 ) doesn't stick - the showprivate in the database is always 0. I can set other bitfields like allowposting and that works fine. This is version 3.6.3 on WinXP/Apache 1.x/MySQL 4.x/PHP 5.x What am I doing wrong? Below is the code I'm calling. Thanks! - John Code:
$fmanager = & datamanager_init( 'Forum', $vbulletin, ERRTYPE_ARRAY ); $fmanager->set( 'title', $title ); $fmanager->set( 'parentid', $parent_id ); $fmanager->set( 'description', $description ); $fmanager->set( 'displayorder', 1 ); $fmanager->set_bitfield( 'options', 'active', 1 ); $fmanager->set_bitfield( 'options', 'allowbbcode', 1 ); $fmanager->set_bitfield( 'options', 'allowimages', 1 ); $fmanager->set_bitfield( 'options', 'allowhtml', 0 ); $fmanager->set_bitfield( 'options', 'allowicons', 1 ); $fmanager->set_bitfield( 'options', 'allowsmilies', 1 ); $fmanager->set_bitfield( 'options', 'allowposting', 1 ); $fmanager->set_bitfield( 'options', 'allowratings', 0 ); $fmanager->set_bitfield( 'options', 'cancontainthreads', 1 ); $fmanager->set_bitfield( 'options', 'canhavepassword', 0 ); $fmanager->set_bitfield( 'options', 'countposts', 1 ); $fmanager->set_bitfield( 'options', 'indexposts', 1 ); $fmanager->set_bitfield( 'options', 'moderateattach', 0 ); $fmanager->set_bitfield( 'options', 'moderatenewpost', 0 ); $fmanager->set_bitfield( 'options', 'moderatenewthread', 0 ); $fmanager->set_bitfield( 'options', 'showonforumjump', 1 ); $fmanager->set_bitfield( 'options', 'showprivate', 1 ); $fmanager->set_bitfield( 'options', 'styleoverride', 0 ); $fmanager->set_bitfield( 'options', 'warnall', 0 ); $fmanager->save(); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|