Coroner
09.08.2008, 11:39:57
Bei MySQL 5.x und/oder PHP 5.x kann es bei einigen Installationen zu Problemen führen. Aus diesem Grunde hier mal meine Änderungen (danach hatte ich keine Probleme mehr).
Bitte aber vorher immer eine Sicherung machen !
suche:
$db->query("INSERT INTO bb".$n."_acpmenuitemgroups (title,condition,conditiontype,showorder,acpmode) VALUES ('".addslashes($itemgroup['name'])."','".addslashes($itemgroup['condition'])."','".addslashes($itemgroup['conditiontype'])."','".$showorder."','".intval($itemgroup['acpmode'])."')");
und ändere in:
$db->query("INSERT INTO bb".$n."_acpmenuitemgroups (`title`,`condition`,`conditiontype`,`showorder`,` acpmode`) VALUES ('".addslashes($itemgroup['name'])."','".addslashes($itemgroup['condition'])."','".addslashes($itemgroup['conditiontype'])."','".$showorder."','".intval($itemgroup['acpmode'])."')");
suche:
$db->unbuffered_query("INSERT INTO bb".$n."_acpmenuitems (itemgroupid, languageitem, link, linkformat, condition, conditiontype, showorder, acpmode) VALUES ".wbb_substr($insert_str, 1), 1);
und ändere in:
$db->unbuffered_query("INSERT INTO bb".$n."_acpmenuitems (`itemgroupid`, `languageitem`, `link`, `linkformat`, `condition`, `conditiontype`, `showorder`, `acpmode`) VALUES ".wbb_substr($insert_str, 1), 1);
suche:
$db->unbuffered_query("REPLACE INTO bb".$n."_languages (itemname, languagepackid, catid, item, showorder) VALUES ".wbb_substr($insert_str2, 1), 1);
und ändere in:
$db->unbuffered_query("REPLACE INTO bb".$n."_languages (`itemname`, `languagepackid`, `catid`, `item`, `showorder`) VALUES ".wbb_substr($insert_str2, 1), 1);
LG
Coroner
Bitte aber vorher immer eine Sicherung machen !
suche:
$db->query("INSERT INTO bb".$n."_acpmenuitemgroups (title,condition,conditiontype,showorder,acpmode) VALUES ('".addslashes($itemgroup['name'])."','".addslashes($itemgroup['condition'])."','".addslashes($itemgroup['conditiontype'])."','".$showorder."','".intval($itemgroup['acpmode'])."')");
und ändere in:
$db->query("INSERT INTO bb".$n."_acpmenuitemgroups (`title`,`condition`,`conditiontype`,`showorder`,` acpmode`) VALUES ('".addslashes($itemgroup['name'])."','".addslashes($itemgroup['condition'])."','".addslashes($itemgroup['conditiontype'])."','".$showorder."','".intval($itemgroup['acpmode'])."')");
suche:
$db->unbuffered_query("INSERT INTO bb".$n."_acpmenuitems (itemgroupid, languageitem, link, linkformat, condition, conditiontype, showorder, acpmode) VALUES ".wbb_substr($insert_str, 1), 1);
und ändere in:
$db->unbuffered_query("INSERT INTO bb".$n."_acpmenuitems (`itemgroupid`, `languageitem`, `link`, `linkformat`, `condition`, `conditiontype`, `showorder`, `acpmode`) VALUES ".wbb_substr($insert_str, 1), 1);
suche:
$db->unbuffered_query("REPLACE INTO bb".$n."_languages (itemname, languagepackid, catid, item, showorder) VALUES ".wbb_substr($insert_str2, 1), 1);
und ändere in:
$db->unbuffered_query("REPLACE INTO bb".$n."_languages (`itemname`, `languagepackid`, `catid`, `item`, `showorder`) VALUES ".wbb_substr($insert_str2, 1), 1);
LG
Coroner