Also ich habe mir mal den "Question Form on Registration 1.0.0" MOD gesaugt. Alles schön gemacht aber beim DB aufruf der PHP Datei bekommen ich folgenden Fehler:
Code: Alles auswählen
# CREATE TABLE phpbbc_qform_data ( q_id MEDIUMINT(11) DEFAULT '0' NOT NULL AUTO_INCREMENT, question VARCHAR(255) NOT NULL, answer_1 VARCHAR(255) NOT NULL, answer_2 VARCHAR(255) NOT NULL, answer_3 VARCHAR(255) NOT NULL, answer_4 VARCHAR(255) NOT NULL, bbcode_uid VARCHAR(32) NOT NULL, points_1 SMALLINT(8) DEFAULT '0' NOT NULL, points_2 SMALLINT(8) DEFAULT '0' NOT NULL, points_3 SMALLINT(8) DEFAULT '0' NOT NULL, points_4 SMALLINT(8) DEFAULT '0' NOT NULL, group_id_1 MEDIUMINT(11) DEFAULT '0' NOT NULL, group_id_2 MEDIUMINT(11) DEFAULT '0' NOT NULL, group_id_3 MEDIUMINT(11) DEFAULT '0' NOT NULL, group_id_4 MEDIUMINT(11) DEFAULT '0' NOT NULL, sort SMALLINT(5) DEFAULT '0' NOT NULL, PRIMARY KEY (q_id))
+++ Failed: Invalid default value for 'q_id'
# ALTER TABLE phpbbc_users ADD COLUMN user_qform TINYINT(1) DEFAULT '0' NOT NULL
+++ Alter table phpbbc_users successfull
Ich habe dann mal auf phpbb.de nachgefragt und da sagten sie mir, das in der db_update.php ein Fehler seie.
$sql = "CREATE TABLE " . $table_prefix . "qform_data (
q_id MEDIUMINT(11) DEFAULT '0' NOT NULL AUTO_INCREMENT,
auto_increment" mit default Value ?
versuchs mal ohne.
Danach habe ich den Ausschnitt so gemacht:
Code: Alles auswählen
$sql = "CREATE TABLE " . $table_prefix . "qform_data (
q_id MEDIUMINT(11) DEFAULT '0' NOT NULL,
wenn der user antwort a auswählt kommt er in d wenn er d auswählt kommt er in d beim a ist a beim b auch b
Das Problem ist nur immer bei der Antwort a da kommen alle in antwort d rein.
Das wäre mein Problem. Ich hoffe mein Beispiel ist verständlich.