第 1 頁 (共 1 頁)
[問題] 停止會員註冊
發表於 : 2005-09-12 12:30
由 mcdulljoe
●架設主機作業系統:Windows Xp
●上網方式:學術網
●安裝的程式:Apache + php + MySql+phpMyAdmin
●您的 phpBB2 版本:phpBB (2.0.17)
怎樣設定停止會員註冊,因現在我的討論版有很多用家我怕再多一些註冊系統會支持不了
發表於 : 2005-09-12 13:12
由 ~倉木麻衣~
請先搜尋, 搜尋裡有你要的答案, 關鍵字「關閉註冊」
發表於 : 2005-09-16 16:51
由 DL
最簡單的方法就是將註 冊的tpl DEL掉,但如此一來也無法修改資料(除非後台修改)
發表於 : 2005-09-16 17:41
由 richer
帳號啟用\r
設成管理員啟動~~
不過好像會多出許多幽靈帳號的樣子~~
回歸正題啦~~
# 開啟
profile.php
# 找到\r
else if ( $mode == 'editprofile' || $mode == 'register' )
# 取代為\r
else if ( $mode == 'register' )
{
die('暫時關閉新會員的註冊!');
}
else if ( $mode == 'editprofile' )
發表於 : 2005-09-17 01:04
由 hentaibbc
我是來幫忙玩大一點的...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
代碼: 選擇全部
#
#-----[ 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
就這樣吧!!
雖然我這麼做好像多餘了...>"<
發表於 : 2005-09-17 08:31
由 Kill
發表於 : 2005-12-17 00:41
由 jeffyuan