message icon frage wegen --> : "")
Verfasst: 13.09.2003 21:38
ich habe ein problem und denke schon zu wissen wo der fehler liegt. ich habe den icon mod eingebaut in meinem 206er board und an einer stelle stimmt es nicht mit der einbauleitung überein.
#
#-----[ OPEN ]------------------------------------------
#
phpBB2/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, 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, topic_icon) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, $msg_icon)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, topic_icon = $msg_icon WHERE topic_id = $topic_id";
#
#-----[ FIND ]------------------------------------------
#
die zeile ist aber so wie sie sein soll nicht dort zu finden sondern so:
... ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
und so soll man das rote einbauen:
..........topic_vote = $topic_vote, topic_icon = $msg_icon WHERE topic_id = $topic_id";
wie baue ich das nun ein? weil da ja noch : "") dabei steht
#
#-----[ OPEN ]------------------------------------------
#
phpBB2/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, 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, topic_icon) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, $msg_icon)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, topic_icon = $msg_icon WHERE topic_id = $topic_id";
#
#-----[ FIND ]------------------------------------------
#
die zeile ist aber so wie sie sein soll nicht dort zu finden sondern so:
... ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
und so soll man das rote einbauen:
..........topic_vote = $topic_vote, topic_icon = $msg_icon WHERE topic_id = $topic_id";
wie baue ich das nun ein? weil da ja noch : "") dabei steht