[原創][外掛]簡易型機器人終結者

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
頭像
shihchieh
竹貓忠實會員
竹貓忠實會員
文章: 509
註冊時間: 2002-10-07 13:02

[原創][外掛]簡易型機器人終結者

文章 shihchieh »

代碼: 選擇全部

###################################################### 
## Title : Robot Don`t Touch Me Again
## Author : yuan < sniperlan@msn.com >  
## 
## Installation Level : Very Easy 
## Installation Time : 1 minutes 
## 
###################################################### 
## Don`t change any words, program, copyright or filename of this mod before get my permissions 
## If you change or post this mod that you can`t get my support 
## Please backup your phpbb before install this mod 
###################################################### 

OPEN includes/usercp_register.php

FIND

	$username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';

REPLACE

	$clean = ( isset($HTTP_GET_VARS['clean']) ) ? $HTTP_GET_VARS['clean']:$HTTP_POST_VARS['clean'];
	if( empty($clean) )
		$username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';
		
FIND

$lang['Fields_empty']

AFTER ADD

 . ( ( !empty($clean) ) ? '<br />' . $lang['cleantoregister']:'' );
 
FIND

$lang['Fields_empty']

AFTER ADD

 . ( ( !empty($clean) ) ? '<br />' . $lang['cleantoregister']:'' );
 
FIND

		'SMILIES_STATUS' => $smilies_status,
		
AFTER ADD

		'CLEANTOREGISTER' => ( $mode == 'register' ) ? $lang['cleantoregister']:'',
		
SAVE AND CLOSE

OPEN templates/subSilver/profile_add_body.tpl

FIND

	<tr> 
		<td class="row1" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
	</tr>
	
REPLACE

	<tr> 
		<td class="row1" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="clean" size="25" maxlength="25" value="{CLEANTOREGISTER}" onclick="this.value='';" /></td>
	</tr>
	
SAVE AND CLOSE

OPEN language/lang_chinese_traditional_taiwan/lang_main.php

FIND

//
// That's all Folks!
// 

BEFORE ADD

$lang['cleantoregister'] = '請點此將欄位留白後註冊才會成功';

SAVE AND CLOSE
要註冊的會員只需滑鼠點該欄位使其留白後即可,未留白則會把設定會會員名稱清除造成註冊失敗,此方法是一定要"手動"點選而無法使用傳遞混過
---
Do you fear death ?

主題已鎖定

回到「非官方認證外掛」