Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

edit_post

Usage: bool edit_post (int postid, string post[, bool disableemos[, bool disablesig[, bool bypassperms[, bool appendedit]]]])
Purpose: Edit a post in a topic.
Availability: IPB SDK 1.5

Edits the post postid, replacing any previous post with the post post. Returns TRUE on success.

If disableemos is set to TRUE emoticons on the message will not be parsed. If disablesig is set to TRUE a signature will not be added below the message. If bypassperms is set to TRUE, the permissions check to check the user can reply to the post will be bypassed. If appendedit is set to FALSE, the 'edited on' slogan will not be printed after a post.

If the action failed FALSE will be returned. A full error message can be retrieved with sdk_error.

// Edit post number 32
$postid = "32";
$post = "editing the testing post from sdk";

if ($SDK->edit_post ($postid, $post, 0, 0, 0, 0)) {
      echo 'Edited Post!';
}
else {
      echo 'Error: '.$SDK->sdk_error();
}
See Also: add_post


User Contributed Notes

There are currently no user contributed notes for this page.

Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net