[問題]cash mod 2.2.1安裝sql_instal

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

頭像
kamudi
星球公民
星球公民
文章: 147
註冊時間: 2003-09-12 17:40
來自: 哈巴魯星球
聯繫:

[問題]cash mod 2.2.1安裝sql_instal

文章 kamudi »

開始時要安裝sql_install
但出現錯誤
有些顯示成功,但有些顯示失敗
該怎麼辦好﹖
如果要手動,該怎樣做,我是個新手來的
希望多指教~~
●架設主機作業系統:Windows XP
●快速架站程式:Appserv
●我的上網方式:香港區網 HKBN
●我安裝的程式:Apache + php + MySql
●我的 phpBB2 版本:phpBB 2.0.13
︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾\r
圖檔
bitemancat
星球公民
星球公民
文章: 40
註冊時間: 2004-05-23 21:54
來自: 從零開始的領域
聯繫:

Re: [問題]cash mod 2.2.1安裝sql_instal

文章 bitemancat »

kamudi 寫:開始時要安裝sql_install
但出現錯誤
有些顯示成功,但有些顯示失敗
該怎麼辦好﹖
如果要手動,該怎樣做,我是個新手來的
希望多指教~~
cashmod資料夾下有個檔案
sql_221..

打開來照著裡面的語法操作就可以了....
頭像
kamudi
星球公民
星球公民
文章: 147
註冊時間: 2003-09-12 17:40
來自: 哈巴魯星球
聯繫:

文章 kamudi »

代碼: 選擇全部

# 
#-----[ 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]
是不是把紅色的地方上載到SQL﹖
之後按執行
但這樣都會出現error
●架設主機作業系統:Windows XP
●快速架站程式:Appserv
●我的上網方式:香港區網 HKBN
●我安裝的程式:Apache + php + MySql
●我的 phpBB2 版本:phpBB 2.0.13
︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾\r
圖檔
神川小羽
調皮の小羽
調皮の小羽
文章: 1461
註冊時間: 2004-05-01 05:55
來自: 謎樣之筱語
聯繫:

文章 神川小羽 »

或許 你直接貼上 你執行sql_install.php時候出現的錯誤訊息比較容易解決你的問題。
-.-
頭像
kamudi
星球公民
星球公民
文章: 147
註冊時間: 2003-09-12 17:40
來自: 哈巴魯星球
聯繫:

文章 kamudi »

圖檔
圖檔
不知你們能看見嗎﹖
成功的己不能再看見啦,只可以看到失敗未能安裝的問題
這些失敗的就令到我個cash mod不能顯示了
●架設主機作業系統:Windows XP
●快速架站程式:Appserv
●我的上網方式:香港區網 HKBN
●我安裝的程式:Apache + php + MySql
●我的 phpBB2 版本:phpBB 2.0.13
︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾\r
圖檔
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

那些字你查過字典嗎?
如果查過,你便會知道它意指你想要新增的欄位已經存在了

~Mac
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
頭像
kamudi
星球公民
星球公民
文章: 147
註冊時間: 2003-09-12 17:40
來自: 哈巴魯星球
聯繫:

文章 kamudi »

Mac 寫:那些字你查過字典嗎?
如果查過,你便會知道它意指你想要新增的欄位已經存在了

~Mac
你的意思是我已經有那些資料對嗎﹖
我不用再裝sql﹖
:roll: 其它部份已安裝好\r
但我的cash mod還不能用~
●架設主機作業系統:Windows XP
●快速架站程式:Appserv
●我的上網方式:香港區網 HKBN
●我安裝的程式:Apache + php + MySql
●我的 phpBB2 版本:phpBB 2.0.13
︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾\r
圖檔
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

你要更清楚把為何不能用,是怎麼一個狀況解釋給大家知道
不然,大家也無法幫助你

還有,請注意: http://phpbb-tw.net/phpbb/viewtopic.php?t=11226

~Mac
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
頭像
kamudi
星球公民
星球公民
文章: 147
註冊時間: 2003-09-12 17:40
來自: 哈巴魯星球
聯繫:

文章 kamudi »

問題外掛:cash mod 2.2.1
使用版本:phpBB 2.0.5
網站位置:http://hkforce.nowgo.net
狀況描述:本來要先安裝 sql_install.php,但在安裝 sql_install.php時就出現這個問題,不知道可否用人手把有error的地方加上去呢﹖會否好似mac所講已經加了﹖但我把所有的安裝都做好了,還未能用到\r
圖檔
圖檔
●架設主機作業系統:Windows XP
●快速架站程式:Appserv
●我的上網方式:香港區網 HKBN
●我安裝的程式:Apache + php + MySql
●我的 phpBB2 版本:phpBB 2.0.13
︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾\r
圖檔
bitemancat
星球公民
星球公民
文章: 40
註冊時間: 2004-05-23 21:54
來自: 從零開始的領域
聯繫:

文章 bitemancat »

= =
我都看到"already exists"了.....


對了...我提醒你一件事...
我第一裝安裝cashmod的時候..
跟你的心情真不多吧..(debugde到快瘋掉...)
de了三天...我放棄了...

之後...我看到天霜大po了這篇
http://phpbb-tw.net/phpbb/viewtopic.php?t=22832
我才發現..我把這個install檔執行過五六次..
這樣對資料庫的讀取...真的有影響\r

我把已輸入的資料庫語法全部刪除..
然後把程式碼改好
執行這個執行檔一次..
上傳檔案..竟然成功了..呵呵\r
很神奇吧~

沒用的小經驗...給你參考參考..

:lol:
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

kamudi 寫:但我把所有的安裝都做好了,還未能用到
我要你注意的是這一句話
到底是怎麼樣一個不能用的情況
你都沒有提到,我們怎麼會知道問題在哪裡?

~Mac
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
頭像
kamudi
星球公民
星球公民
文章: 147
註冊時間: 2003-09-12 17:40
來自: 哈巴魯星球
聯繫:

文章 kamudi »

Mac 寫:
kamudi 寫:但我把所有的安裝都做好了,還未能用到
我要你注意的是這一句話
到底是怎麼樣一個不能用的情況
你都沒有提到,我們怎麼會知道問題在哪裡?

~Mac
先謝謝你們的幫忙
我說這句話時我還未安裝好sql
但我已心急把所有的設好了(cm_install_221.php裡要修改的地方都改好)
還未能用到是指我的cash mod未能\r
當我按下控制台會出現\r
圖檔
這是正常\r
但我入到裡面就有問題了
先看看這個
Cash Configuration
圖檔
cash currencies
圖檔
Cash Forums和 Cash Settings 都會出現同樣情況
圖檔
我覺得是同我未安裝好sql_install .php有直接關係
●架設主機作業系統:Windows XP
●快速架站程式:Appserv
●我的上網方式:香港區網 HKBN
●我安裝的程式:Apache + php + MySql
●我的 phpBB2 版本:phpBB 2.0.13
︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾\r
圖檔
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

請確認以下這部份是否修改正確

代碼: 選擇全部

# 
#-----[ 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);
		}
	}
以及lang_cash.php這個附加的檔案是否有上傳到正確的目錄下
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題

這世界還有拼命守護的價值嗎...
Mac
百戰天龍馬蓋先
百戰天龍馬蓋先
文章: 2590
註冊時間: 2003-02-02 02:28
來自: MacphpBBMOD
聯繫:

文章 Mac »

文字的方面,的確是附加的語系沒有上傳至正確的地方\r
記得,中文化的語系要擺在中文的文件夾中\r

~Mac
+ 關於 phpBB 使用問題請在版面發問,私人訊息提供其他不相干或是隱私的事情聯絡之用。

phpBB 官網 | 竹貓星球 | MacphpBBMOD | 我的服務
頭像
kamudi
星球公民
星球公民
文章: 147
註冊時間: 2003-09-12 17:40
來自: 哈巴魯星球
聯繫:

文章 kamudi »

Mac 寫:文字的方面,的確是附加的語系沒有上傳至正確的地方\r
記得,中文化的語系要擺在中文的文件夾中\r

~Mac
是不是把這個lang_cash.php擺上去就可以正常使用啦﹖
但我好像是英文版來
有中文版下載了嗎﹖
●架設主機作業系統:Windows XP
●快速架站程式:Appserv
●我的上網方式:香港區網 HKBN
●我安裝的程式:Apache + php + MySql
●我的 phpBB2 版本:phpBB 2.0.13
︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾︾\r
圖檔
主題已鎖定

回到「外掛問題討論」