Verfasst: 05.06.2005 22:40
kann keiner helfen?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Hallo,doormaster hat geschrieben:hat denn echt keiner ne Idee?
ich verwende version 2.0.13netzmeister hat geschrieben:Hallo,doormaster hat geschrieben:hat denn echt keiner ne Idee?
also ich schau mir die Sache nochmal an.
Welche phpBB-Version verwendest Du ?
Gruß netzmeister
Funktioniert bei mir einwandfrei!netzmeister hat geschrieben:Hallo,
hier mal eine Anleitung, ist aber nicht getestet.
Probier es mal aus und gib bescheid falls es noch nicht funktioniert.Code: Alles auswählen
# #-----[ OPEN ]------------------------------------------ # includes/functions_post.php # #-----[ FIND ]------------------------------------------ # $sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id"; # #-----[ REPLACE WITH ]------------------------------------------- # $sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_time = $current_time, topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id"; # #-----[ FIND ]------------------------------------------ # $sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . " WHERE post_id = $post_id"; # #-----[ REPLACE WITH ]------------------------------------------- # $sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', post_time = $current_time, enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . " WHERE post_id = $post_id"; # #-----[ SAVE/UPLOAD ]------------------------------------------------ # # EoM
Aber wie gesagt keine Gewähr. Habe es nicht getestet.
Gruß Matthias
PS: Acid oder PhillipK falls Ihr einen Fehler entdeckt bitte sagen..