Sonuç ne oldu ustalar.. Bir gelişme varsa bizimde işimize yaraması için buraya yazarmısınız..
Bu sorunu bende yaşıyorum.. Ancak Forum Yönetimi>Yönetim panlinde mevcut forumlarda güncelleme yapabiliyorum.. Ama hem yeni forum hemde yeni kategori oluştururken hata alıyorum..
Benimde hata kodlarım bunlar:
Genel Hata
Couldn't insert row in forums table
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 ' forum_icon, prune_enable, auth_view, auth_read, auth_post, auth
INSERT INTO phpbb_forums (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, , forum_icon, prune_enable, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate) VALUES ('37', 'dene', 9, 'sdfvsaf', 20, '', 0, 0, 0, 1, 1, 1, 1, 3, 3, 1, 1)
Line : 406
File : admin_forums.php
dmin/admin_forums.php dosyasındaki 406 numaralı satırın geçtiği kodlar ise şöyle:
389 ile 439 satırların arasında yer alan kodlar
Kod: Tümünü seç
//
// Default permissions of public ::
//
$field_sql = "";
$value_sql = "";
while( list($field, $value) = each($forum_auth_ary) )
{
$field_sql .= ", $field";
$value_sql .= ", $value";
}
// There is no problem having duplicate forum names so we won't check for it.
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, , forum_icon, prune_enable" . $field_sql . ")
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "', " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert row in forums table", "", __LINE__, __FILE__, $sql);
}
if( $HTTP_POST_VARS['prune_enable'] )
{
if( $HTTP_POST_VARS['prune_days'] == "" || $HTTP_POST_VARS['prune_freq'] == "")
{
message_die(GENERAL_MESSAGE, $lang['Set_prune_data']);
}
$sql = "INSERT INTO " . PRUNE_TABLE . " (forum_id, prune_days, prune_freq)
VALUES('" . $next_id . "', " . intval($HTTP_POST_VARS['prune_days']) . ", " . intval($HTTP_POST_VARS['prune_freq']) . ")";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert row in prune table", "", __LINE__, __FILE__, $sql);
}
}
$message = $lang['Forums_updated'] . "<br /><br />" . sprintf($lang['Click_return_forumadmin'], "<a href=\"" . append_sid("admin_forums.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
break;
case 'modforum':
// Modify a forum in the DB
if( isset($HTTP_POST_VARS['prune_enable']))
{
if( $HTTP_POST_VARS['prune_enable'] != 1 )
{
$HTTP_POST_VARS['prune_enable'] = 0;
}
}
Hatta admin_forums.php dosyasını komple ekliyorum..
Yardımcı olabilirmisiniz ustalar..
Forum yönetiminde yeni forum ve yeni kategori açamıyorum.. Ama mevcut forumlarda ve kategorilerde değişiklik yapabiliyorum..
[ resmi görüntülemek için tıklayın ]
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.