|
1.7.4: edit_topic
Description
This functions updates the topic in the database.
Function call
edit_topic ($tid, $username, $password, $sid, $ttitle, $icon, $mail_on_reply, $closed);
Input
The function of the parameters is:
Parameter | Description |
$tid | The ID of the topic to edit. |
$username | The username of the user who has rights to edit the topic. |
$password | The password belonging to the user. |
$sid | The subcategory the topic belongs to. |
$ttitle | The title of the topic |
$icon | the ID of the icon belonging to the post |
$mail_on_reply | "1" if mail on reply is enabled, "0" if not. |
$closed | "1" if topic is closed, "0" if not. |
|
Output
The output is the result of the edit. Each resultvalue has the following description:
Value | Description |
0 | No errors, topic succesfully edited. |
1 | User not logged in. |
2 | User don't have enough rights to edit the post (must be owner or status >= moderator). |
3 | No or invalid ttitle given. |
4 | No or invalid tid given. |
5 | No or invalid sid given. |
9 | Unknown database error. |
|
|