Seite 1 von 1

HILFE! Problem beim MultiVote_Mod

Verfasst: 28.11.2006 14:30
von Lady Mary
Habe versucht, den MultiVoteMod (1.4.2.) in mein phpbb einzubauen (neuestes, eingedeutschtes)

Jede Menge Fehler...

So halbwegs kann man sogar Umfragen erstellen...Beim Abschicken der Fehler hier:

Code: Alles auswählen

 
Error in posting

DEBUG MODE

INSERT INTO phpbb_vote_desc (topic_id, vote_text, vote_start, vote_length) VALUES (162, 'Balblabalba???', 1164720456, 86400, '5', '', '')

Line : 267
File : functions_post.php 
Line 267is aber gar nix :oops:

Wer kann mir mal helfen, was braucht ihr für dateien???

Verfasst: 28.11.2006 14:47
von Lady Mary
So, habe die Lücke entdeckt:

Ich soll laut Einbauanleitung diese Geschichte hier machen in der functions_post.php -->
#-----[ 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'
An dem dick markierten hängt es - dann DAS finde ich gar nicht in meiner Datei - die bis hier so aussieht:
$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) . ", '$max_vote', '$hide_vote', '$tothide_vote')" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length, vote_max, vote_hide, vote_tothide = " . ($poll_length * 86400) . " WHERE topic_id = $topic_id";

Verfasst: 28.11.2006 14:58
von Dr.Death
Hi

der neue Block sollte dann wohl eher so aussehen:

Code: Alles auswählen

$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"; 
Und beachte bitte auch den phpBB KNigge, Thema TOPIC BUMPING...

http://www.phpbb.de/doku/kb/artikel.php?artikel=knigge