The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Post DataManager
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); |
#2
|
|||
|
|||
How are they flagged?
PS The content of the posts might be the trigger to consider it spam. |
#3
|
|||
|
|||
I think setting the is_automated flag (something completely unreferenced in the documentation from what i could see) did the trick, need to wait and see. Thanks anyway
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|