[教學]看不懂Mod在作什麼?Mod實作教學...(給新手)
版主: 版主管理群
-
- 星球普通子民
- 文章: 23
- 註冊時間: 2005-01-29 17:39
- 來自: 快樂。S 星
- 聯繫:
麻煩各位大大幫翻譯一下
紅字的部分
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
Header("Location: " . append_sid("sexyindex.$phpEx") . "");
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
紅字的部分
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
Header("Location: " . append_sid("sexyindex.$phpEx") . "");
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
如果您連這些基本的語法, 都需要別人幫你翻譯的話,桃樂比 寫:麻煩各位大大幫翻譯一下
紅字的部分
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
Header("Location: " . append_sid("sexyindex.$phpEx") . "");
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
那麼我奉勸您: 不要裝外掛, 比較省事!
否則, 請您自行做點功課, 除了細讀這個討論串的樓頂文章之外,
印象中, 好像也向您推薦過下面的文章了:
http://phpbb-tw.net/phpbb/viewtopic.php?t=22832
請問這個該怎麼做..
我見一般的mod都可以用install.php執行...
這個似乎要用phpadmin...
我不太懂這個...
而且要create這麼多table似乎挺麻煩\r
是不是可以用另一種方法如 自己做一個數.sql 檔呢...??
那麼create完該怎樣做呢..??
請指教....
我見一般的mod都可以用install.php執行...
這個似乎要用phpadmin...
我不太懂這個...
而且要create這麼多table似乎挺麻煩\r
是不是可以用另一種方法如 自己做一個數.sql 檔呢...??
那麼create完該怎樣做呢..??
請指教....
#
#-----[ SQL ]--------------------------------------------
#
CREATE TABLE phpbb_stocks (
stock_id mediumint(8) DEFAULT '0' NOT NULL,
stock_des text,
stock_name char(100) DEFAULT '0' NOT NULL,
stock_start_value mediumint(8) DEFAULT '0' NOT NULL,
stock_volume mediumint(8) DEFAULT '0' NOT NULL,
stock_yesterday_value mediumint(8) DEFAULT '0' NOT NULL,
stock_today_value mediumint(8) DEFAULT '0' NOT NULL,
stock_maximum_value mediumint(8) DEFAULT '0' NOT NULL,
stock_minimum_value mediumint(8) DEFAULT '0' NOT NULL,
stock_onhold mediumint(8) DEFAULT '0' NOT NULL,
stock_buy mediumint(8) DEFAULT '0' NOT NULL,
stock_sell mediumint(8) DEFAULT '0' NOT NULL,
stock_stopped tinyint(1) DEFAULT '0' NOT NULL,
stock_stopped_time varchar(255) DEFAULT '0' NOT NULL,
KEY stock_id (stock_id),
);
INSERT INTO phpbb_stocks (stock_id, stock_des, stock_name, stock_start_value, stock_volume, stock_yesterday_value, stock_today_value, stock_maximum_value, stock_minimum_value, stock_onhold, stock_buy, stock_sell, stock_stopped, stock_stopped_time) VALUES (000001, 'iOptional 一號公司, 網址: http://www.ioptional.com', 'iOptional 1', 0, 400, 400, 400, 450, 350, 40000, 0, 0, 0, 0);
INSERT INTO phpbb_stocks (stock_id, stock_des, stock_name, stock_start_value, stock_volume, stock_yesterday_value, stock_today_value, stock_maximum_value, stock_minimum_value, stock_onhold, stock_buy, stock_sell, stock_stopped, stock_stopped_time) VALUES (000002, 'iOptional 二號公司, 網址: http://www.ioptional.com', 'iOptional 2', 0, 300, 300, 300, 350, 250, 30000, 0, 0, 0, 0);
INSERT INTO phpbb_stocks (stock_id, stock_des, stock_name, stock_start_value, stock_volume, stock_yesterday_value, stock_today_value, stock_maximum_value, stock_minimum_value, stock_onhold, stock_buy, stock_sell, stock_stopped, stock_stopped_time) VALUES (000003, 'iOptional 三號公司, 網址: http://www.ioptional.com', 'iOptional 3', 0, 200, 200, 200, 250, 150, 20000, 0, 0, 0, 0);
INSERT INTO phpbb_stocks (stock_id, stock_des, stock_name, stock_start_value, stock_volume, stock_yesterday_value, stock_today_value, stock_maximum_value, stock_minimum_value, stock_onhold, stock_buy, stock_sell, stock_stopped, stock_stopped_time) VALUES (000004, 'iOptional 四號公司, 網址: http://www.ioptional.com', 'iOptional 4', 0, 100, 100, 100, 150, 50, 10000, 0, 0, 0, 0);
CREATE TABLE phpbb_stock_config (
config_name varchar(255) NOT NULL,\r
config_value varchar(255) NOT NULL,
PRIMARY KEY (config_name)
);
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_name','虛擬股市');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_exchange_time','86400');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_max_exchange','10');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_min_exchange','1');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('change_fee','10');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_stopped','20');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_stopped_day','2');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_last_change','');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_change_time','0');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_total_value','0');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_yesterday_total_value','0');
INSERT INTO phpbb_stock_config (config_name, config_value) VALUES ('stock_last_day_change','0');
CREATE TABLE phpbb_stock_exchange (
exchange_id mediumint(8) NOT NULL,
user_id mediumint(8) DEFAULT '0' NOT NULL,
stock_id mediumint(8) NOT NULL,
total_stock mediumint(8) NOT NULL,
exchange_date varchar(255) NOT NULL,
KEY (exchange_id),
KEY (stock_id),
KEY (user_id)
);
CREATE TABLE phpbb_stock_news (
news_id mediumint(8) DEFAULT '0' NOT NULL,
news text,
news_date varchar(255) NOT NULL,
KEY (news_id)
);
ALTER TABLE phpbb_users ADD stock_buy mediumint(8) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_users ADD stock_sell mediumint(8) DEFAULT '0' NOT NULL;
下次善用搜尋你就知道怎樣做了!
http://www.phpbb-tw.net/phpbb/viewtopic.php?t=23325
http://www.phpbb-tw.net/phpbb/viewtopic.php?t=23325
[外掛] 請問外掛怎安裝
偶用ㄌ好幾ㄍ月ㄌ啦~!
快瘋ㄌ!
先扯到重點!外掛怎安裝?
例:
代碼:
#-----[ 打?#125; ]------------------------------------------
#
templates/您的風格/admin/board_config_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
<tr>
<td class="row1">{L_ACCT_ACTIVATION}</td>
<td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED} />{L_NONE} <input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED} />{L_USER} <input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED} />{L_ADMIN}</td>
</tr>
#
#-----[ 之後, ?#91;上 ]------------------------------------------
#
<tr>
<td class="row1">{L_VISUAL_CONFIRM}<br /><span class="gensmall">{L_VISUAL_CONFIRM_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="enable_confirm" value="1" {CONFIRM_ENABLE} />{L_YES} <input type="radio" name="enable_confirm" value="0" {CONFIRM_DISABLE} />{L_NO}</td>
</tr>
關於後台基本組態內的部份
代碼:
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ FIND ]---------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
$lang['Visual_confirm'] = '註冊文字確?#123;';
$lang['Visual_confirm_explain'] = '';
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
關於註冊部份:
代碼:
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_main.php
#
#-----[ FIND ]---------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
$lang['Confirm_code_impaired'] = '註冊文字確?#123;';
$lang['Confirm_code'] = '請填入上方顯示的文字';
$lang['Confirm_code_explain'] = '';
$lang['Confirm_code_wrong'] = '您輸入的文字錯誤, 請重新輸入';
#
#-----[ OPEN ]---------------------------------------------
#
templates/您的風格/profile_add_body
#
#-----[ FIND ]---------------------------------------------
#
="{PASSWORD_CONFIRM}" /></td></tr>
#
#-----[ AFTER, ADD ]---------------------------------------------
#
<!-- Visual Confirmation -->
<!-- BEGIN switch_confirm -->
<tr>
<td class="row1" colspan="2" align="center"><span class="gensmall">{L_CONFIRM_CODE_IMPAIRED}</span><br /><br />{CONFIRM_IMG}<br /><br /></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
<td class="row2"><input type="text" class="post" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
</tr>
<!-- END switch_confirm -->
<tr>
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
它要用啥開?
去哪裡開?
偶ㄉ論壇跟竹貓事一樣A
線上申請A
請問這些怪怪A自要ㄑ哪裡貼上
貼上後9可以改變那些註冊風格ㄉ外掛ㄌ嘛?
根本看不懂!
有無人可99我..............
快瘋ㄌ!
先扯到重點!外掛怎安裝?
例:
代碼:
#-----[ 打?#125; ]------------------------------------------
#
templates/您的風格/admin/board_config_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
<tr>
<td class="row1">{L_ACCT_ACTIVATION}</td>
<td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED} />{L_NONE} <input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED} />{L_USER} <input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED} />{L_ADMIN}</td>
</tr>
#
#-----[ 之後, ?#91;上 ]------------------------------------------
#
<tr>
<td class="row1">{L_VISUAL_CONFIRM}<br /><span class="gensmall">{L_VISUAL_CONFIRM_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="enable_confirm" value="1" {CONFIRM_ENABLE} />{L_YES} <input type="radio" name="enable_confirm" value="0" {CONFIRM_DISABLE} />{L_NO}</td>
</tr>
關於後台基本組態內的部份
代碼:
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ FIND ]---------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
$lang['Visual_confirm'] = '註冊文字確?#123;';
$lang['Visual_confirm_explain'] = '';
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
關於註冊部份:
代碼:
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_main.php
#
#-----[ FIND ]---------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
$lang['Confirm_code_impaired'] = '註冊文字確?#123;';
$lang['Confirm_code'] = '請填入上方顯示的文字';
$lang['Confirm_code_explain'] = '';
$lang['Confirm_code_wrong'] = '您輸入的文字錯誤, 請重新輸入';
#
#-----[ OPEN ]---------------------------------------------
#
templates/您的風格/profile_add_body
#
#-----[ FIND ]---------------------------------------------
#
="{PASSWORD_CONFIRM}" /></td></tr>
#
#-----[ AFTER, ADD ]---------------------------------------------
#
<!-- Visual Confirmation -->
<!-- BEGIN switch_confirm -->
<tr>
<td class="row1" colspan="2" align="center"><span class="gensmall">{L_CONFIRM_CODE_IMPAIRED}</span><br /><br />{CONFIRM_IMG}<br /><br /></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
<td class="row2"><input type="text" class="post" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
</tr>
<!-- END switch_confirm -->
<tr>
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
它要用啥開?
去哪裡開?
偶ㄉ論壇跟竹貓事一樣A
線上申請A
請問這些怪怪A自要ㄑ哪裡貼上
貼上後9可以改變那些註冊風格ㄉ外掛ㄌ嘛?
根本看不懂!
有無人可99我..............