昨天晚上到今天重灌了好幾次資料庫執行語法
ALTER TABLE phpbb_posts_text
ADD pay_money MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL,
ADD pay_user TEXT NOT NULL,
ADD pay_see MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL,
ADD pay_gotmoney MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_paymoney', '1');
+++ Error: 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 '; INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_paymoney',' at line 5
ALTER TABLE `phpbb_posts_text` CHANGE `pay_money` `pay_money` MEDIUMINT( 8 ) DEFAULT '-1' NOT NULL
+++ Successfull
update phpbb_posts_text SET pay_money = -1 WHERE pay_money = 0
+++ Successfull
我的資料庫名稱phpbb字首沒有錯\r
付費瀏覽不但沒出現(連基本組態都沒有出現是否設定付費版面了)反而不能使用但是檔案附加正常可用了
這是我改好的付費瀏覽1.09
http://www.startaiwandream.net/test.rar
改的過程發現有幾各問題
functions_post.php跟admin_board.phpp跟osting.php出了問題,在安裝手冊上
#-----[ OPEN 打開 ]------------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND 尋找 ]------------------------------------------
#
define('IN_PHPBB', true);
#
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------------
#
define('PAYMONEY', true);
結果裡面是define('IN_PHPBB', 1);並非define('IN_PHPBB', true);
#-----[ OPEN 打開 ]------------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND 尋找 ]------------------------------------------
#
define('IN_PHPBB', true);
#
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------------
#
define('PAYMONEY', true);
結果裡面沒有 define('IN_PHPBB', true);
只有找到\r
if (!defined('IN_PHPBB'))
{
die('Hacking attempt');
}
posting.php
--------[ FIND 尋找 ]----------------
#
$message = preg_replace("#\[/?sell\]#", '', $message);
#
#--------[ BEFORE, ADD 之前, 加上 ]----------------
#
$message = preg_replace("#\[/?sell\]#si", '', $message);
#
結果沒有上面$message = preg_replace("#\[/?sell\]#", '', $message);
只有
$message = preg_replace("#\[sell\](.*?)\[/sell\]#si", '
'. $lang['Paymoney_Hidemessage'] . '', $message);了
請倉木大大幫我檢查一下我是出了什麼問題,忘了補充我是phpBB-2.0.19
論壇位置:
http://startaiwandream.net/phpBB2/index.php
帳號:owen 密碼:nuskin65
感謝大大抽空回答我這棘手的問題