Probleme mit veränderter functions_post.php [closed]

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
kikigey89
Mitglied
Beiträge: 16
Registriert: 24.09.2006 11:25

Probleme mit veränderter functions_post.php [closed]

Beitrag von kikigey89 »

Hallo zusammen!

Habe ein Problem: Meine modifizierte functions_post.php meldet einen Fehler. Der hat Probleme in der nachfolgenden Zeile.

Mit einer Anweisung hatte ich Probleme und zwar mit '$current_time, " . ($poll_length * 86400) . " '. Wichtig ist das Leerzeichen am Ende!
Denn so gibts den Ausschnitt nicht. Den gibts nur mit '[...]86400) . ")"' am Ende. Ihr seht unten, wie ich mirs gedacht hab.

Folgender Fehler tritt auf:
"Parse error: syntax error, unexpected ',' in /srv/www/htdocs/web168/html/abi2008gaw/includes/functions_post.php on line 264"

Nun aber zu der Zeile, zur MOD-Anweisung und zur mod. Zeile:


Original:
$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ")" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . " WHERE topic_id = $topic_id";


MOD:
#-----[ FIND ]---------------------------------------------
#
$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ")" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . " WHERE topic_id = $topic_id";
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
vote_length
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, vote_max, vote_hide, vote_tothide
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$current_time, " . ($poll_length * 86400) . "
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, '$max_vote', '$hide_vote', '$tothide_vote'
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
vote_length = " . ($poll_length * 86400) . "
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, vote_max = '$max_vote', vote_hide = '$hide_vote', vote_tothide = '$tothide_vote'
#


Mod. Zeile:
$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length, vote_max, vote_hide, vote_tothide) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ")", '$max_vote', '$hide_vote', '$tothide_vote' : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . ", vote_max = '$max_vote', vote_hide = '$hide_vote', vote_tothide = '$tothide_vote' WHERE topic_id = $topic_id";


Kann mir jemand weiterhelfen, bzw. die Zeile richtig modifizieren?
Irgendwas muss ich ja falsch gemacht haben.
kikigey89
Mitglied
Beiträge: 16
Registriert: 24.09.2006 11:25

Beitrag von kikigey89 »

Hat sich schon erledigt
Antworten

Zurück zu „phpBB 2.0: Mod Support“