DX1.5 强制使用中文名注册,『温馨提示:请使用中文用户名注册。』
作者:闫永刚 日期:2011-05-18
只提示中文注册
第一步:template/你的模版/member/register.htm
找到
<label><em>{lang username}:</em><input type="text" id="username" name="{$_G['setting']['reginput']['username']}" autocomplete="off" size="25" maxlength="15" value="" tabindex="1" class="txt" /> *</label>
在它上面添加
<th><FONT color=#000000>『<FONT color=#ff0000>温馨提示:请使用中文用户名注册。</FONT>』</FONT></th>
二:完全使用中文注册
进入uc后台 ----注册设置 -----禁止的用户名 添加下输入下面内容
*q*
*w*
*r*
*t*
*y*
*u*
*i*
*o*
*p*
*a*
*s*
*d*
*f*
*g*
*h*
*j*
*k*
*l*
*z*
*x*
*c*
*v*
*b*
*n*
*m*
*1*
*2*
*3*
*4*
*5*
*6*
*7*
*8*
*9*
接着继续打开打开:
source/language/lang_message.php
查找:
'profile_username_protect' => '用户名包含被系统屏蔽的字符',
修改为:
'profile_username_protect' => '请输入中文用户名注册,请返回或者重新填写',
刷新缓存
OK...
看效果吧
第一步:template/你的模版/member/register.htm
找到
<label><em>{lang username}:</em><input type="text" id="username" name="{$_G['setting']['reginput']['username']}" autocomplete="off" size="25" maxlength="15" value="" tabindex="1" class="txt" /> *</label>
在它上面添加
<th><FONT color=#000000>『<FONT color=#ff0000>温馨提示:请使用中文用户名注册。</FONT>』</FONT></th>
二:完全使用中文注册
进入uc后台 ----注册设置 -----禁止的用户名 添加下输入下面内容
*q*
*w*
*r*
*t*
*y*
*u*
*i*
*o*
*p*
*a*
*s*
*d*
*f*
*g*
*h*
*j*
*k*
*l*
*z*
*x*
*c*
*v*
*b*
*n*
*m*
*1*
*2*
*3*
*4*
*5*
*6*
*7*
*8*
*9*
接着继续打开打开:
source/language/lang_message.php
查找:
'profile_username_protect' => '用户名包含被系统屏蔽的字符',
修改为:
'profile_username_protect' => '请输入中文用户名注册,请返回或者重新填写',
刷新缓存
OK...
看效果吧
评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇

文章来自:
Tags:
相关日志: