1 頁 (共 1 頁)

[問題]Appraise Post Mod

發表於 : 2004-06-08 19:31
小惡魔
當我輸入SQL時便出了這樣的錯誤

錯誤

SQL 語法 :

INSERT INTO phpbb_config( config_name, config_value )
VALUES (

'allow_post_cash', '0'
)

MySQL 傳回:


#1062 - Duplicate entry 'allow_post_cash' for key 1


##############################################################
## MOD Title: Appraise Post Mod
## MOD Author: Ray < blue_sky_ray@hotmail.com > (Ray Fung) http://optional.iradio.com.tw/phpbbx
## MOD Description: Appraise Post Mod for users to appraise a post good or bad.
## MOD Version: 1.1.0
##
## Installation Level: Intermediate
## Installation Time: 30 Minutes
## Files To Edit: viewtopic.php
## admin/admin_board.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_main.php
## language/lang_english/lang_admin.php
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/subSilver.cfg
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/admin/board_config_body.tpl
## Included Files: includes/functions_appraise.php
## templates/subSilver/images/good.gif
## templates/subSilver/images/bad.gif
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This is my mod... (I don't know what can i say :D)
##
##############################################################
## MOD History:
##
## 2003-04-11 - Version 1.1.0
## - Appraise Post Mod rewrited
##
## 2003-04-10 - Version 1.0.1
## 2003-04-10 - Version 1.0.0
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy root/includes/functions_appraise.php to includes/functions_appraise.php
copy root/templates/subSilver/images/good.gif to templates/subSilver/images/good.gif
copy root/templates/subSilver/images/bad.gif to templates/subSilver/images/bad.gif

#
#-----[ SQL ]------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_post_cash','0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('goodpost_cash','0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('badpost_cash','0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('appraise_post_cash','');

ALTER TABLE phpbb_users ADD user_goodpost MEDIUMINT(8) NOT NULL default '0';
ALTER TABLE phpbb_users ADD user_badpost MEDIUMINT(8) NOT NULL default '0';
ALTER TABLE phpbb_users ADD user_givengoodpost MEDIUMINT(8) NOT NULL default '0';
ALTER TABLE phpbb_users ADD user_givenbadpost MEDIUMINT(8) NOT NULL default '0';

ALTER TABLE phpbb_posts_text ADD goodpost MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL,
ALTER TABLE phpbb_posts_text ADD badpost MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL,
ALTER TABLE phpbb_posts_text ADD appraise_post_user TEXT NOT NULL;

發表於 : 2004-06-08 19:46
.::藍色的天空::.
你已經有這個sql了。

[問題]3Q

發表於 : 2004-06-10 21:38
小惡魔
.::藍色的天空::. 寫:你已經有這個sql了。
3Q