ForumAddMessage
int ForumAddMessage( string MESSAGE_TYPE, int FID, int TID, int MID, array arFieldsG, &string strErrorMessage, &string strOKMessage [, int iFileSize] );
The function ForumAddMessage adds or modifies a forum post (and/or topic). The function appends description of errors to strErrorMessage, and reports of the function successful execution to strOKMessage.
Parameters
Parameter | Description |
---|---|
MESSAGE_TYPE |
Type of action. The following values are possible:
|
FID | The ID of the forum to which a new topic is added. Should be specified for the "NEW" MESSAGE TYPE. |
TID | The ID of the topic to which the message is added. Should be specified for the "REPLY" MESSAGE TYPE, or to 0 for the "NEW" MESSAGE TYPE. |
MID | The ID of the message to modify. Should be specified for the "ADD" MESSAGE TYPE, or to 0 for other values. |
arFieldsG |
Array containing parameters of the message and topic. Should contain the
following keys:
|
strErrorMessage | On return, this variable contains description of errors, if any occurs. |
strOKMessage | On return, this variable contains description of the successful run. |
iFileSize | Max size of files allowed for upload. Optional, 50000 bytes by default. |
Return Values
Returns the ID of the message on success or false otherwise.
© «Bitrix24», 2001-2024