phpBB

Development Wiki

Function.submit post

From phpBB Development Wiki

Revision as of 13:24, 18 January 2009 by Ameeck (Talk | contribs)

submit_post –– Posts a topic or post to the forum with the information supplied

Description

  1. mixed submit_post ( $mode,  $subject,  $username,  $topic_type,  &$poll,  &$data, [ $update_message = true])

To post a new message to the forums use the submit_post function. It handles all necessary changes. On success it returns the URL of the post, otherwise it returns false.

Parameters

Parameter Usage
mode Determines what type of posting should be done. Can be post, edit, reply, or delete.
subject The subject of the message.
username Username of the poster
topic_type The topic type
poll Poll data
data The post data in an array.
update_message (optional, default is true)