http://wang5555.dnsfor.me/phpbb2/dload.php? ... file_id=24
## 外掛名稱: 主題類型分區劃 (資料庫版 by Martinet)
## 外掛版本: 1.0.3
## 外掛原作者: 炎之虛空(御津闇慈)
## 外掛資料庫化 : Martinet Oaf <oafwork@hotmail.com>
=============================================
安裝後控制台 error 訊息\r
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/kktadmin/domains/kktfriend.com/public_html/phpBB2/admin/admin_forums.php on line 400
=============================================
我打開 admin_forums.php
找到第 400 行
代碼: 選擇全部
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable, forum_topictypes" . $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, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) ",'".str_replace("\'", "''", $HTTP_POST_VARS['topictypes'])."'".. $value_sql . ")";
============================================
原文安裝指示\r
代碼: 選擇全部
?#123;式碼:
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, 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, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
在行內找到
?#123;式碼:
prune_enable
後面?#91;上
?#123;式碼:
, forum_topictypes
在行內找到
?#123;式碼:
$value_sql
前面?#91;上
?#123;式碼:
",'".str_replace("\'", "''", $HTTP_POST_VARS['topictypes'])."'".
.



