als je iets post in die kennis bank maakt die automaties een topic aan zonder poll en ik wil met poll wat moet ik aan het onder staande veranderen om toch een poll te krijgen
Code: Selecteer alles
$user = $db->sql_fetchrow($result);
$temp_url = "http://" . $board_config['server_name'] . $board_config['script_path'] . "kb.".$phpEx."?mode=article&k=".$article_id;
$message = "[b]" . $lang['Category'] . ":[/b] " . $article_category_id . " " . $article_category_name . "\n";
$message .= "[b]" . $lang['Article_type'] . ":[/b] " . $type . "\n\n";
$message .= "[b]" . $lang['Article_title'] . ":[/b] " . addslashes($article_title) . "\n";
$message .= "[b]" . $lang['Author'] . ":[/b] " . $author_name . "\n";
$message .= "[b]" . $lang['Article_description'] . ":[/b] " . addslashes($row['article_description']) . "\n\n";
$message .= "[b][url=" . $temp_url . "]" . $lang['Read_full_article'] . "[/url][/b]";
$subject = '[ KB ] ' . addslashes($article_title);
$forum_id = $kb_config['forum_id'];
$topic_data = insert_post($message, $subject, $forum_id, $user['user_id'], $user['username'], $user['user_attachsig']);
$sql = "UPDATE " . KB_ARTICLES_TABLE .
" SET topic_id = " . $topic_data['topic_id'] . "
WHERE article_id = " . $article_id;
if ( !($result876 = $db->sql_query($sql)) )