●架設主機作業系統:Windows Xp
●上網方式:學術網
●安裝的程式:Apache + php + MySql+phpMyAdmin
●您的 phpBB2 版本:phpBB (2.0.17)
怎樣設定停止會員註冊,因現在我的討論版有很多用家我怕再多一些註冊系統會支持不了
[問題] 停止會員註冊
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
帳號啟用\r
設成管理員啟動~~
不過好像會多出許多幽靈帳號的樣子~~
回歸正題啦~~
# 開啟
profile.php
# 找到\r
else if ( $mode == 'editprofile' || $mode == 'register' )
# 取代為\r
else if ( $mode == 'register' )
{
die('暫時關閉新會員的註冊!');
}
else if ( $mode == 'editprofile' )
設成管理員啟動~~
不過好像會多出許多幽靈帳號的樣子~~
回歸正題啦~~
# 開啟
profile.php
# 找到\r
else if ( $mode == 'editprofile' || $mode == 'register' )
# 取代為\r
else if ( $mode == 'register' )
{
die('暫時關閉新會員的註冊!');
}
else if ( $mode == 'editprofile' )
DC club 對分散式運算的小小貢獻
Matiz Club
●空間商: ACSite.NET
●服務程式:Linux + LiteSpeed V5.4 + php 5.2.14 + MySQL(i) 5.0.85 + phpBB 3.0.11
Matiz Club
●空間商: ACSite.NET
●服務程式:Linux + LiteSpeed V5.4 + php 5.2.14 + MySQL(i) 5.0.85 + phpBB 3.0.11
我是來幫忙玩大一點的...XD
到SQL中的phpbb_config
執行下面這一行語法
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('allow_regist', '1')
接著要修改以下的檔案
includes/usercp_register.php
admin/admin_board.php
templates/*/admin/board_config_body.tpl
language/lang_chinese_traditional_taiwan/lang_admin.php
就這樣吧!!
雖然我這麼做好像多餘了...>"<
到SQL中的phpbb_config
執行下面這一行語法
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('allow_regist', '1')
接著要修改以下的檔案
includes/usercp_register.php
admin/admin_board.php
templates/*/admin/board_config_body.tpl
language/lang_chinese_traditional_taiwan/lang_admin.php
代碼: 選擇全部
#
#-----[ OPEN ]---------------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]----------------------------------------------------------
#
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
show_coppa();
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
#
#-----[ REPLACE ]-----------------------------------------------
#
if ( $board_config['allow_regist'] )
{
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
show_coppa();
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
else
{
message_die(GENERAL_MESSAGE, '目前系統停止新會員註冊', '');
}
#
#-----[ OPEN ]------------------------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]-------------------------------------------------------------
#
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";
\r
#
#-----[ AFTER, ADD ]-----------------------------------------------------
#
// BEGIN: ALLOW_REGIST
$allow_regist_yes = ( $new['allow_regist'] ) ? "checked=\"checked\"" : "";
$allow_regist_no = ( !$new['allow_regist'] ) ? "checked=\"checked\"" : "";
// END: ALLOW_REGIST
#
#-----[ FIND ]--------------------------------------------------------------
#
"L_YES" => $lang['Yes'],
#
#-----[ BEFORE, ADD ]----------------------------------------------------
#
// BEGIN: ALLOW_REGIST
"L_ALLOW_REGIST" => $lang['Allow_regist'],
"S_ALLOW_REGIST_YES" => $allow_regist_yes,
"S_ALLOW_REGIST_NO" => $allow_regist_no,
// END: ALLOW REGIST
#
#-----[ OPEN ]--------------------------------------------------------------
#
templates/*/admin/board_config_body.tpl
#
#-----[ FIND ]---------------------------------------------------------------
#
<td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]-------------------------------------------------------
#
<tr>
<td class="row1">{L_ALLOW_REGIST}</td>
<td class="row2"><input type="radio" name="allow_regist" value="1" {S_ALLOW_REGIST_YES} /> {L_YES} <input type="radio" name="allow_regist" value="0" {S_ALLOW_REGIST_NO} /> {L_NO}</td>
</tr>
#
#-----[ OPEN ]---------------------------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ FIND ]----------------------------------------------------------------
#
$lang['Board_disable_explain'] = '這個動作將會暫時關閉討論區. 只有系統管理員才可以在論壇關閉時進入系統管理控制台';
#
#-----[ AFTER, ADD ]--------------------------------------------------------
#
$lang['Allow_regist] = '允許新會員註冊';
#
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------------------
#
#EoM
就這樣吧!!
雖然我這麼做好像多餘了...>"<
最後由 hentaibbc 於 2005-09-17 09:42 編輯,總共編輯了 2 次。




