健身潮人 发表于 2021-12-7 23:31:50

discuz X3.0只允许用中文名注册修改办法

打开:template >>> default >>> member >>> register.htm如使用的不是默认风格 就找你使用的风格包里
查找:
<div class="rfm">
<table>
<tr>
<th><span class="rq">*</span><label for="{$this->setting['reginput']['username']}">{lang username}:</label></th>
<td><input type="text" id="{$this->setting['reginput']['username']}" name="" class="px" tabindex="1" autocomplete="off" size="25" maxlength="15" required /></td>
<td class="tipcol"><i id="tip_{$this->setting['reginput']['username']}" class="p_tip">{lang register_username_tips}</i><kbd id="chk_{$this->setting['reginput']['username']}" class="p_chk"></kbd></td>
</tr>
</table>
</div>替换为:

<div class="rfm">
<table>
<tr>
::======>>『 友情提示: 深圳网『 <font color=red>只接受中文注册</font> 』请输入中文名字 』<<======::
</tr>
<tr>
<th><span class="rq">*</span><label for="{$this->setting['reginput']['username']}">{lang username}:</label></th>
<td><input type="text" id="{$this->setting['reginput']['username']}" name="" class="px" tabindex="1" autocomplete="off" size="25" maxlength="15" onpropertychange="with(this)if(/[^\u3447-\uFA29]/ig.test(value))value=value.replace(/[^\u3447-\uFA29]/ig,'')" required /></td>
<td class="tipcol"><i id="tip_{$this->setting['reginput']['username']}" class="p_tip">{lang register_username_tips}</i><kbd id="chk_{$this->setting['reginput']['username']}" class="p_chk"></kbd></td>
</tr>
</table>
</div>把下列字符放到以下2部分
[后台UCenter]管理中心 >>> 注册设置 >>> 禁止的用户名:
[后台全局 >>> 注册与访问控制 >>> 用户保留关键字
*q*
*w*
*e*
*r*
*t*
*y*
*u*
*i*
*o*
*p*
*a*
*s*
*d*
*f*
*g*
*h*
*j*
*k*
*l*
*z*
*x*
*c*
*v*
*b*
*n*
*m*
*Q*
*W*
*E*
*R*
*T*
*Y*
*U*
*I*
*O*
*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*
*0*
*管理员*
*超级版主*
*分版版主*
*版主*
*黑社会*
*超版*
*管理*
*1*
*2*
*3*
*4*
*5*
*6*
*7*
*8*
*9*
*0*
页: [1]
查看完整版本: discuz X3.0只允许用中文名注册修改办法