[問題]cash mod 2.2.1安裝sql_instal
版主: 版主管理群
[問題]cash mod 2.2.1安裝sql_instal
開始時要安裝sql_install
但出現錯誤
有些顯示成功,但有些顯示失敗
該怎麼辦好﹖
如果要手動,該怎樣做,我是個新手來的
希望多指教~~
但出現錯誤
有些顯示成功,但有些顯示失敗
該怎麼辦好﹖
如果要手動,該怎樣做,我是個新手來的
希望多指教~~
-
- 星球公民
- 文章: 40
- 註冊時間: 2004-05-23 21:54
- 來自: 從零開始的領域
- 聯繫:
Re: [問題]cash mod 2.2.1安裝sql_instal
cashmod資料夾下有個檔案kamudi 寫:開始時要安裝sql_install
但出現錯誤
有些顯示成功,但有些顯示失敗
該怎麼辦好﹖
如果要手動,該怎樣做,我是個新手來的
希望多指教~~
sql_221..
打開來照著裡面的語法操作就可以了....
代碼: 選擇全部
#
#-----[ SQL ]------------------------------------------
#
# If you don't know how to execute sql queries, then copy
# sql_install.php into your phpbb directory and run it.
# (assuming you use mysql or mssql)
#
# If you don't use mysql or mssql, you'll have to edit these queries accordingly
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
[color=red]INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_disable',0);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_display_after_posts',1);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_post_message','You earned %s for that post');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_disable_spam_num',10);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_disable_spam_time',24);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_disable_spam_message','You have exceeded the alloted amount of posts and will not earn anything for your post');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_installed','yes');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_version','2.2.1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_adminbig','0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_adminnavbar','1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('points_name','Points');[/color]
#
#-----[ SQL ]------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
[color=darkred]CREATE TABLE phpbb_cash (
cash_id smallint(6) NOT NULL auto_increment,
cash_order smallint(6) NOT NULL default '0',
cash_settings smallint(4) NOT NULL default '3313',
cash_dbfield varchar(64) NOT NULL default '',
cash_name varchar(64) NOT NULL default 'GP',
cash_default int(11) NOT NULL default '0',
cash_decimals tinyint(2) NOT NULL default '0',
cash_imageurl varchar(255) NOT NULL default '',
cash_exchange int(11) NOT NULL default '1',
cash_perpost int(11) NOT NULL default '25',
cash_postbonus int(11) NOT NULL default '2',
cash_perreply int(11) NOT NULL default '25',
cash_maxearn int(11) NOT NULL default '75',
cash_perpm int(11) NOT NULL default '0',
cash_perchar int(11) NOT NULL default '20',
cash_allowance tinyint(1) NOT NULL default '0',
cash_allowanceamount int(11) NOT NULL default '0',
cash_allowancetime tinyint(2) NOT NULL default '2',
cash_allowancenext int(11) NOT NULL default '0',
cash_forumlist varchar(255) NOT NULL default '',
PRIMARY KEY (cash_id)
);[/color]
#
#-----[ SQL ]------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
[color=red]CREATE TABLE phpbb_cash_events (
event_name varchar(32) NOT NULL default '',
event_data varchar(255) NOT NULL default '',
PRIMARY KEY (event_name)
);[/color]
#
#-----[ SQL ]------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
[color=darkred]CREATE TABLE phpbb_cash_exchange (
ex_cash_id1 int(11) NOT NULL default '0',
ex_cash_id2 int(11) NOT NULL default '0',
ex_cash_enabled int(1) NOT NULL default '0',
PRIMARY KEY (ex_cash_id1,ex_cash_id2)
);[/color]
#
#-----[ SQL ]------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
[color=red]CREATE TABLE phpbb_cash_groups (
group_id mediumint(6) NOT NULL default '0',
group_type tinyint(2) NOT NULL default '0',
cash_id smallint(6) NOT NULL default '0',
cash_perpost int(11) NOT NULL default '0',
cash_postbonus int(11) NOT NULL default '0',
cash_perreply int(11) NOT NULL default '0',
cash_perchar int(11) NOT NULL default '0',
cash_maxearn int(11) NOT NULL default '0',
cash_perpm int(11) NOT NULL default '0',
cash_allowance tinyint(1) NOT NULL default '0',
cash_allowanceamount int(11) NOT NULL default '0',
cash_allowancetime tinyint(2) NOT NULL default '2',
cash_allowancenext int(11) NOT NULL default '0',
PRIMARY KEY (group_id,group_type,cash_id)
);[/color]
#
#-----[ SQL ]------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
[color=darkred]CREATE TABLE phpbb_cash_log (
log_id int(11) NOT NULL auto_increment,
log_time int(11) NOT NULL default '0',
log_type smallint(6) NOT NULL default '0',
log_action varchar(255) NOT NULL default '',
log_text varchar(255) NOT NULL default '',
PRIMARY KEY (log_id)
);[/color]
之後按執行
但這樣都會出現error
問題外掛:cash mod 2.2.1
使用版本:phpBB 2.0.5
網站位置:http://hkforce.nowgo.net
狀況描述:本來要先安裝 sql_install.php,但在安裝 sql_install.php時就出現這個問題,不知道可否用人手把有error的地方加上去呢﹖會否好似mac所講已經加了﹖但我把所有的安裝都做好了,還未能用到\r
使用版本:phpBB 2.0.5
網站位置:http://hkforce.nowgo.net
狀況描述:本來要先安裝 sql_install.php,但在安裝 sql_install.php時就出現這個問題,不知道可否用人手把有error的地方加上去呢﹖會否好似mac所講已經加了﹖但我把所有的安裝都做好了,還未能用到\r
-
- 星球公民
- 文章: 40
- 註冊時間: 2004-05-23 21:54
- 來自: 從零開始的領域
- 聯繫:
= =
我都看到"already exists"了.....
對了...我提醒你一件事...
我第一裝安裝cashmod的時候..
跟你的心情真不多吧..(debugde到快瘋掉...)
de了三天...我放棄了...
之後...我看到天霜大po了這篇
http://phpbb-tw.net/phpbb/viewtopic.php?t=22832
我才發現..我把這個install檔執行過五六次..
這樣對資料庫的讀取...真的有影響\r
我把已輸入的資料庫語法全部刪除..
然後把程式碼改好
執行這個執行檔一次..
上傳檔案..竟然成功了..呵呵\r
很神奇吧~
沒用的小經驗...給你參考參考..
我都看到"already exists"了.....
對了...我提醒你一件事...
我第一裝安裝cashmod的時候..
跟你的心情真不多吧..(debugde到快瘋掉...)
de了三天...我放棄了...
之後...我看到天霜大po了這篇
http://phpbb-tw.net/phpbb/viewtopic.php?t=22832
我才發現..我把這個install檔執行過五六次..
這樣對資料庫的讀取...真的有影響\r
我把已輸入的資料庫語法全部刪除..
然後把程式碼改好
執行這個執行檔一次..
上傳檔案..竟然成功了..呵呵\r
很神奇吧~
沒用的小經驗...給你參考參考..
先謝謝你們的幫忙Mac 寫:我要你注意的是這一句話kamudi 寫:但我把所有的安裝都做好了,還未能用到
到底是怎麼樣一個不能用的情況
你都沒有提到,我們怎麼會知道問題在哪裡?
~Mac
我說這句話時我還未安裝好sql
但我已心急把所有的設好了(cm_install_221.php裡要修改的地方都改好)
還未能用到是指我的cash mod未能\r
當我按下控制台會出現\r
這是正常\r
但我入到裡面就有問題了
先看看這個
Cash Configuration
cash currencies
Cash Forums和 Cash Settings 都會出現同樣情況
我覺得是同我未安裝好sql_install .php有直接關係
請確認以下這部份是否修改正確
以及lang_cash.php這個附加的檔案是否有上傳到正確的目錄下
代碼: 選擇全部
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( defined('IN_CASHMOD') )
{
if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_cash.'.$phpEx)) )
{
include($phpbb_root_path . 'language/lang_english/lang_cash.' . $phpEx);
}
else
{
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_cash.' . $phpEx);
}
}
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題
這世界還有拼命守護的價值嗎...
除非是個人疏失所造成的問題
這世界還有拼命守護的價值嗎...