Seite 2 von 2

Verfasst: 09.01.2007 00:25
von Markus67
Hi ...

für die admin_forums.php

suche:

Code: Alles auswählen

                SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
ersetze mit:

Code: Alles auswählen

                SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = $new_cat, forum_parent = $new_parent, forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
Schau mal noch hier rein ... da wird das mit dem SQL genau beschrieben.
KB:pma_faq - Abschnitt SQL ausführen :wink:

Markus

Verfasst: 10.01.2007 11:19
von Lumpi007
Hallo,
ich gehe gerade nach dieser Anleitung vor --> http://www.phpbb.de/doku/kb/pma_faq

Dort muss ich

Code: Alles auswählen

ALTER TABLE phpbb_forums ADD forum_parent INT NOT NULL DEFAULT '0';
eingeben.
Und es erscheint mir eine Fehlermeldung, obwohl ich nach der Anleitung vorgegangen bin.

Dort steht jetzt
Fehler
SQL-Befehl:

ALTER TABLE phpbb_forums ADD forum_parent INT NOT NULL DEFAULT '0'
MySQL meldet:

#1060 - Duplicate column name 'forum_parent'
In einem Beispiel von phpbb steht aber noch viel mehr.

Code: Alles auswählen

CREATE TABLE phpbb_attach_quota (
user_id mediumint(8) unsigned NOT NULL default '0',
group_id mediumint(8) unsigned NOT NULL default '0',
quota_type smallint(2) NOT NULL default '0',
quota_limit_id mediumint(8) unsigned NOT NULL default '0',
KEY quota_type (quota_type)
);

ALTER TABLE phpbb_forums ADD auth_download TINYINT(2) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_auth_access ADD auth_download TINYINT(1) DEFAULT '0' NOT NULL;

INSERT INTO phpbb_quota_limits (quota_limit_id, quota_desc, quota_limit) VALUES (1, 'Low', 262144);
INSERT INTO phpbb_quota_limits (quota_limit_id, quota_desc, quota_limit) VALUES (2, 'Medium', 2097152);
INSERT INTO phpbb_quota_limits (quota_limit_id, quota_desc, quota_limit) VALUES (3, 'High', 5242880);
siehe --> http://www.phpbb.de/doku/kb/artikel.php ... #ftp_chmod Punkt 12.
Nur diese Angaben stehen nicht in meiner Anleitung.Dort steht nur

Code: Alles auswählen

#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_forums ADD forum_parent INT NOT NULL DEFAULT '0';


#
Finde das sehr verwirrend.