Thanks for the response.
I'm using the post datamanager to add the post. Here's my code:
Code:
$tdm =& datamanager_init('Post', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$tdm->set('userid', $userid);
$tdm->set('pagetext', $text);
$tdm->set('allowsmilie', 1);
$tdm->set('visible', 1);
$tdm->set('threadid', $threadid);
$tdm->set('dateline', $date);
require_once(DIR . '/includes/functions_databuild.php');
$tdm->save();
build_thread_counters($threadid);
build_forum_counters(19);
It's definitely not updating the post count. I made some normal posts from that user and watched his post count increase. Then I made some posts from that user using this snippet of code and his post count stayed the same. His post count decreased after deleting the posts. So, as I'm testing, his post count is dropping :/
Does it look like something's missing in the code I'm using?