Well, I supposed that new feature => new entry into tracker... Sorry
Need preserving topic ID because not preserving it would mean synchronize all stuff with old/new ID entry...
Deleting auto_increment into database gives me an error (default topic_id value or something like that).
Using INSERT INTO function is ok. Like this :
Code: Select all
$sql = 'INSERT INTO ' . TOPICS_TABLE . ' ' . $db->sql_build_array('INSERT', $data);
$db->sql_query($sql);
But using submit_post is not fine. Like this :
Code: Select all
// Some vars to insert into DB
$data = array(
'topic_id' => $row['convert_topic_id'],
'forum_id' => $row['convert_forum_id'],
'icon_id' => false,
'poster_id' => $row['convert_poster_id_new'],
'enable_bbcode' => true,
'enable_smilies' => true,
'enable_urls' => true,
'enable_sig' => true,
'message' => $msg,
'message_md5' => md5($msg),
'bbcode_bitfield' => $bitfield,
'bbcode_uid' => $uid,
'post_edit_locked' => 0,
'topic_title' => $row['convert_topic_title'],
'notify_set' => false,
'notify' => true,
'post_time' => $row['convert_timestamp'],
'forum_name' => '',
'enable_indexing' => true,
);
$post_reply = 'post';
submit_post($post_reply, $row['convert_topic_title'], $row_username['username'], POST_NORMAL, $poll, $data);