Jump to content
xt:Commerce Community Forum

Gästebuch installieren


Recommended Posts

Hallo,

bekomme diese Fehlermeldung nachdem ich die guestbook.sql ausgeführt habe.Habe alle Dateien nach Anleitung hochgeladen und abgeändert.

UPDATE admin_access SET guestbook=1 WHERE customers_id=1;

MySQL meldet:

Unknown column 'guestbook' in 'field list'

Link to comment
Share on other sites

Gehe in deine Sql-Datenbank wo das Gästebuch installiert werden soll.

1. Diesen Befehl ausführen lassen

CREATE TABLE guestbook (

  entry_id int(11) NOT NULL auto_increment,

  visitors_name varchar(64) NOT NULL default '',

  visitors_email varchar(96) default '',

  entry_rating int(1) default NULL,

  entry_status int(1) default '1',

  date_added datetime default NULL,

  last_modified datetime default NULL,

  entry_read int(5) NOT NULL default '0',

  PRIMARY KEY  (entry_id)

) TYPE=MyISAM;
2. Diesen Befehl ausführen lassen
CREATE TABLE guestbook_description (

  entry_id int(11) NOT NULL default '0',

  languages_id int(11) NOT NULL default '0',

  entry_text text NOT NULL,

  PRIMARY KEY  (entry_id,languages_id)

) TYPE=MyISAM;
3. Diesen Befehl ausführen lassen
INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_SHOW', 'true', 50, 1, NULL, now(), NULL, 'xtc_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_MAX_DISPLAY_ENTRIES', '6', 50, 2, NULL, now(), NULL, NULL);

INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_MAX_DISPLAY_PAGE_LINKS', '8', 50, 3, NULL, now(), NULL, NULL);

INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_NAME_MIN_LENGTH', '4', 50, 4, NULL, now(), NULL, NULL);

INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_TEXT_MIN_LENGTH', '25', 50, 5, NULL, now(), NULL, NULL);

INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_ALLOW_GUEST_ENTRY', 'true', 50, 6, NULL, now(), NULL, 'xtc_cfg_select_option(array(\'true\', \'false\'),');

4. Diesen Befehl ausführen lassen
INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('50', 'Guestbook', 'Guestbook description', '50', '1');
5. Diesen Befehl ausführen lassen
ALTER TABLE admin_access ADD guestbook int(1) NOT NULL DEFAULT 0;

UPDATE admin_access SET guestbook=1 WHERE customers_id=1;

Müsste funktionieren. Habe ich selbst aber noch nicht getestet.

Wie immer vor einer Änderung. Daten sichern !!!

Gruß Rene

Dies ist die Anlegung aller Spalten und Tabellen für das Gästebuch.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...