View Full Version : Create forums
Kaitlyn2004
11-01-2008, 01:47 PM
If I want to create a number of forums, do I just:
include global.php
include class_dm_forum.php
$f = new vB_DataManager_Forum();
$f->set('parentid', 5);
$f->set('title', 'My forum');
$f->save();
Is there anything else I need to do?
Thanks
--------------- Added 1225566355 at 1225566355 ---------------
...anyone?
Dismounted
11-02-2008, 03:36 AM
I suggest you have a look at the Data Managers (http://www.vbulletin.com/docs/html/data_managers) section of the manual.
You should initialise a data manager like this:
$forum =& datamanager_init('Forum', $vbulletin, ERRTYPE_ARRAY);
Also, look inside the data manager file to see what is required and what is not ($validfields array).
mokujin
11-03-2008, 09:37 PM
I suggest you have a look at the Data Managers (http://www.vbulletin.com/docs/html/data_managers) section of the manual.
You should initialise a data manager like this:
$forum =& datamanager_init('Forum', $vbulletin, ERRTYPE_ARRAY);
Also, look inside the data manager file to see what is required and what is not ($validfields array).
Hi Dismounted,
I see there is not DMs for Groups and Albums, so I cant use DMs for my custom mod with Groups or Albums?
Thank you!
Guest190829
11-03-2008, 09:39 PM
There are data managers for Social Groups and Albums. See:
includes/class_dm_album.php
and
includes/class_dm_socialgroup.php
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.