Hello everyone,
I'm wondering how to edit a specified post using the vbulletin api.
I can create a post by code by using
Code:
$post = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD);
$post->do_set(..., ...);
$postid = $post->save();
but how can i edit a post ? I've tried
Code:
$post = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD);
$post->set_existing(fetch_postinfo($postid));
$post->do_set('pagetext', $message);
$post->save();
but it doesn't seem to work. What is the correct way to do it ?