I'm trying to Automatically post a wikipage like you can a thread with with class_dm_threadpost.php . If I use the class_dm_threadpost.php the wiki page shows up as a thread in (list) ,but it acts like there is no pagetext. I would appreciate any help with this.
This is how I do threads with a cron job currently.
Code:
require_once(DIR . '/includes/class_dm.php');
require_once(DIR . '/includes/class_dm_threadpost.php');
$threaddm =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_SILENT, 'threadpost');
$threaddm->do_set('forumid', $forumid1);
$threaddm->do_set('userid', $userid1);
$threaddm->do_set('username', $username1);
$threaddm->do_set('title', $title1);
$threaddm->do_set('pagetext', $pagetext1);
$threaddm->do_set('allowsmilie', $no);
$threaddm->do_set('visible', $yes);
$threaddm->do_set('ipaddress', $zeroip);
$threaddm->set_info('is_automated', true);
$threaddm->save();
unset($threaddm);
Bookmarks