Fehler Advanced Topic Types
Verfasst: 04.01.2007 17:46
Hallo, ich hab für mein Forum die Advanced_Topic_Types installiert, schien auch alles zu funktionieren, Wichtig und Ankündigung funktioniert nach wie vor. Im Admincenter läuft das ganze auch ohne Probleme.
Dort habe ich einen neuen Topic Type erstellt namens Vermerk. Allerdings wenn ich ihn beim Posten auswähle kommt folgender Fehler:
Das liegt wie ja da steht an der functions_post.php, das war auch meine einzige schwierigkeit beim umcoden. In der Anleitung steht folgendes:
Allerdings sieht meine orginal Datei so aus:
Und genau da liegt mein Problem, ich weiss nicht genau was die meinen mit line after, kann mir bitte jemand den richtig geänderten code posten?
Dort habe ich einen neuen Topic Type erstellt namens Vermerk. Allerdings wenn ich ihn beim Posten auswähle kommt folgender Fehler:
Code: Alles auswählen
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'topic_type = 0 WHERE topic_id = 149' at line 1
UPDATE phpbb_topics SET topic_title = 'test', topic_type = 0 topic_type = 0 WHERE topic_id = 149
Line : 242
File : functions_post.php
Code: Alles auswählen
#-----[ FIND ]----------------------------------------------
#
$sql =
#-----[ IN-LINE FIND ]----------------------------------------------
#
topic_type = $topic_type
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------------------
#
$topic_type_active
Code: Alles auswählen
$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";
if (!$db->sql_query($sql))
{