phpBB

Development Wiki

Difference between revisions of "Function.submit post"

From phpBB Development Wiki

(Parameters=)
m (Parameters)
Line 5: Line 5:
 
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.
 
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=
+
==Parameters==
 
{|border="1" cellspacing="0" cellpadding="3"
 
{|border="1" cellspacing="0" cellpadding="3"
 
! Parameter
 
! Parameter

Revision as of 13:25, 18 January 2009

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)