ich hab folgenden Hack von Ta Lun installiert und bekomme den nicht richtig zum laufen.
http://www.talun.de/data/phpbbhacks/cat ... ack105.txt
Anmergung: Ich hab den Mod auf einem phpBB Plus 1.52 (phpBB 2.0.10) Lokal auf meinem Rechner laufen da ich noch andere Mods installiere und installiert habe.
Das Problem ist wenn ich im ModCP einen Titel eintrage und auf Edit klicke nur "Kategorie(n) erfolgreich Aktualisiert" da steht aber es die Datenbank nicht aktualiesiert.
PS: Ich hab eine selbstständige änderung gemacht weil vorher sonst überhaupt nichts passiert ist.
ich hab folgende Zeile eingefügt
Code: Alles auswählen
$edit = ( isset($HTTP_POST_VARS['edit']) ) ? TRUE : FALSE;
Code: Alles auswählen
$normalise = ( isset($HTTP_POST_VARS['normalise']) ) ? TRUE : FALSE;
Code: Alles auswählen
//kategorien
case 'edit':
$page_title = $lang['Mod_CP'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$total_kat= count($kategorie);
$j=0;
$i=0;
while($j < $total_kat){
$kategorie[$i]=addslashes($kategorie[$i]);
$topic_id_sql = '';
for($i = 0; $i < count($topics); $i++)
$sql="Update " . TOPIC_KAT ." set kategorie='$kategorie[$i]' WHERE k_id=" .$kat_old[$i];
$j++;
$i++;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update Category table', '', __LINE__, __FILE__, $sql);
}
}
if(!empty($add_cat)) {
$add_cat= addslashes($add_cat);
$sql_k_u="INSERT INTO " . TOPIC_KAT ." (k_id, forum_id, kategorie) VALUES ('', $forum_id, '$add_cat')";
if ( !($result = $db->sql_query($sql_k_u)) )
{
echo $add_cat;
echo $sql_k_u;
message_die(GENERAL_ERROR, 'Could not Insert Category table', '', __LINE__, __FILE__, $sql);
}
}
$c_del_k= count($kat_del);
if($c_del_k){
$j=0;
$i=0;
while($j < $c_del_k){
$sql_del="Delete From " . TOPIC_KAT ." where k_id=" .$kat_del[$i];
$j++;
$i++;
if ( !($result = $db->sql_query($sql_del)) )
{
message_die(GENERAL_ERROR, 'Could not Del Category ', '', __LINE__, __FILE__, $sql);
}
}
}
$redirect_page = "$PHP_SELF?f=$forum_id&sid=$sid";
$message= $lang['akt_kat'];
$message.="<br>";
$message.="<a href=\"$redirect_page\">" . $lang['Previous'] . "</a>";
message_die(GENERAL_MESSAGE, $message);
break;
//kategorien
Kann mir vielleicht jemand Helfen wo der Fehler sein könnte da mir bei phpbb2.de noch niemand Helfen konnte.
PS: Der Topic Shadow Manager geht auch nicht in dem Forum
EDIT:
wenn ich einen Beitrag erstellen will bekomme ich auch noch folgenden Fehler.
Code: Alles auswählen
Error in posting
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
INSERT INTO phpbb_topics (topic_title, topic_desc, topic_poster, topic_time, forum_id, news_id, topic_status, topic_type, topic_calendar_time, topic_calendar_duration, topic_icon, topic_announce_duration, topic_vote, k_id) VALUES ('test', '', 2, 1090493452, 1, 0, 0, 0, 0, 0, 0, 0, 0, )
Line : 470
File : C:\xampp\htdocs\phpBB\includes\functions_post.php