SourceForge Logo
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:

ParameterDescription
$tidThe ID of the topic to edit.
$usernameThe username of the user who has rights to edit the topic.
$passwordThe password belonging to the user.
$sidThe subcategory the topic belongs to.
$ttitleThe title of the topic
$iconthe 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:

ValueDescription
0No errors, topic succesfully edited.
1User not logged in.
2User don't have enough rights to edit the post (must be owner or status >= moderator).
3No or invalid ttitle given.
4No or invalid tid given.
5No or invalid sid given.
9Unknown database error.

« Previous | Index | Next »