不用郵件驗證:
config_inc.php中 添加:
$g_send_reset_password = OFF; #是否通過EMIAL發送密碼
$g_allow_blank_email = ON; #是否允許不填寫EMAIL
Administrator控制用戶密碼(轉):
1) 修改文件 manage_user_edit_page.php
找到<!-- Email -->位置,將以下代碼粘貼到下面一行:
<!-- Password -->
<tr <?php echo helper_alternate_class( 1 ) ?>>
<td class="category" width="30%">
<?php echo "Password (change only)" ?>:
</td>
<td width="70%">
<input type="text" size="16" maxlength="100" name="password" value="" />
</td>
</tr>
2)修改文件 manage_user_update.php
在$f_user_id = gpc_get_int( 'user_id' );行下面粘貼以下代碼:
$f_pass = gpc_get_string('password');
3)還是在文件manage_user_update.php中
找到該行: $result = db_query( $query );
有的版本是:$result = db_query_bound( $query, $query_params );
在該行下面粘貼下面代碼:
//Reset the password if specified.
if ($f_pass) user_set_password($f_user_id, $f_pass);
這樣一來就增加了Password (change only): 一列,以供管理員修改用戶的密碼(但是前提是管理員增加用戶時不要勾選保護一項,否則管理員無法修改該用戶密碼)
Administrator添加測試員(轉):
在config_inc.php中,在$g_access_levels_enum_string變量的賦值中加入'60:TESTER',注意格式;
在lang目錄的strings_chinese_simplified.txt中,查找並修改$s_access_levels_enum_string = '60:測試人員,';
在根目錄新建custom_constants_inc.php文件,裏面寫入:
<?php
define( 'ANONYMOUS', 5 );
define( 'TESTER', 60 );
?>