add_post
Usage: bool add_post (int topicid, string post[, bool disableemos[, bool disablesig[, bool bypassperms[, string guestname]]]])
Purpose: Add a post to a topic.
Availability: IPB SDK 0.5
Purpose: Add a post to a topic.
Availability: IPB SDK 0.5
Creates a new post in the topic topicid 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.
Use guestname to post as a guest user.
If the action failed FALSE will be returned. A full error message can be retrieved with sdk_error.
// Adds a post to topic 32
$topic = "32";
$post = "testing post from sdk";
if ($SDK->add_post ($topic, $post, 0, 0, 0)) {
echo 'Added Post!';
}
else {
echo 'Error: '.$SDK->sdk_error();
}
$topic = "32";
$post = "testing post from sdk";
if ($SDK->add_post ($topic, $post, 0, 0, 0)) {
echo 'Added Post!';
}
else {
echo 'Error: '.$SDK->sdk_error();
}
See Also: new_topic
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net
There are currently no user contributed notes for this page.