The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I'm using the Post DataManager to insert posts into existing threads on my board. Most of the posts go in ok, but a few seem to be getting red-flagged for spam and put in the moderation queue. The script inserts one of 5 pre-defined posts substituting in only some names in each and most of them get posted just fine. The code i'm using is below. Is there any way to disable the 'spam post' flag either on a particular user account or on posts inserted this way? Thanks Stewart Code:
$postdm = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD); $postuserid = '38525'; $threadinfo = fetch_threadinfo($forumthreadid); $foruminfo = fetch_foruminfo($threadinfo['forumid']); $postdm->set_info('forum', $foruminfo); $postdm->set_info('thread', $threadinfo); $postdm->set('threadid', $forumthreadid); $postdm->set('userid', $postuserid); $postdm->set('pagetext', $postpagetext); $postdm->set('allowsmilie', 1); $postdm->set('showsignature', 1); $postdm->set('visible', 1); $postdm->set('dateline', TIMENOW); $postdm->save(); unset($postdm); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|