Seite 1 von 1

probs mit icon mod nach update auf 2.06

Verfasst: 06.08.2003 20:13
von wumme
ich hab da ein paar probs mit der funktions_post.php

in der alten datei (2.05) sollte

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, topic_vote = $topic_vote WHERE topic_id = $topic_id";
mit

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, 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"; 
erstetzt werden, dieser ist nun in der form nicht mehr da :-?

hab ich mich mal drangesetzt, mit meinen kenntnissen, sind nicht viel :oops:

und wollte die zeile

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, topic_icon)" : "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";
funzt dann aber nicht :(

kann mir jemand helfen ???

bekomm jetzt ne schöne fehlermeldung

Error in posting

DEBUG MODE

SQL Error : 1136 Spaltenzahl stimmt nicht mit der Anzahl der Werte überein in Reihe1

INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('test', 2, 1060193569, 1, 0, 0, 0, topic_icon)

Line : 261
File : c:\programme\wamp\homepages\includes\functions_post.php

Verfasst: 06.08.2003 20:35
von Henne
Versuch mal das hier:

war falsch

Verfasst: 06.08.2003 20:42
von wumme
:-?

Error in posting

DEBUG MODE

SQL Error : 1064 Fehler in der Syntax bei '11)' in Zeile 1.

INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon) VALUES ('nochmal', 2, 1060195236, 1, 0, 0, 0 11)

Line : 261
File : c:\programme\wamp\homepages\includes\functions_post.php

immer noch die gleiche meldung :cry:

Verfasst: 06.08.2003 20:50
von Henne
Dann mal das hier:

war falsch

Hatte eben glaube ich nen , vergessen.

Verfasst: 06.08.2003 20:55
von wumme
die meldung

Parse error: parse error in c:\programme\wamp\homepages\includes\functions_post.php on line 258

Fatal error: Call to undefined function: generate_smilies() in c:\programme\wamp\homepages\posting.php on line 961


kommt jetzt wenn ich ein neues thema erstellen will :-?

was vielleicht noch erwähnenswert wär, die alten icons werden auch nicht mehr angezeigt

Verfasst: 06.08.2003 21:04
von Henne
Hast denn den Rest richtig eingebaut?

Verfasst: 06.08.2003 21:07
von wumme
ich hab grad alles noch mal überprüft,

ist alles korrekt, bis auf den einen teil halt :-?

kann es vielleicht mit dem Unread Post Information to Database Mod

zu tun haben, da hab ich auch noch probs in der neuen viewtopic.php

Verfasst: 06.08.2003 21:09
von Henne
Probier das nochmal:

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, 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 " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . ", topic_icon = $msg_icon WHERE topic_id = $topic_id";

Verfasst: 06.08.2003 21:15
von wumme
:D

super nun funzt es

BIG THX :wink:

nun zum Unread Post Information to Database Mod :oops:

muss den jetzt nochmal durchgen :roll: