developpez.com
01-06-2011, 04:18 PM
Hello everyone,
I'm wondering how to edit a specified post using the vbulletin api.
I can create a post by code by using $post = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD);
$post->do_set(..., ...);
$postid = $post->save();
but how can i edit a post ? I've tried $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 ?
I'm wondering how to edit a specified post using the vbulletin api.
I can create a post by code by using $post = new vB_DataManager_Post($vbulletin, ERRTYPE_STANDARD);
$post->do_set(..., ...);
$postid = $post->save();
but how can i edit a post ? I've tried $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 ?