立即註冊  找回密码

QQ登录

只需一步,快速开始

开启辅助访问 切换到宽版

東里論壇

搜索
查看: 6732|回复: 0

[使用心得] Discuz! X3.4优化修改(四十一)——注册提示“抱歉,您输入的用户名小于3个字符”的解决方法

[复制链接]

335

主题

486

帖子

3089

积分

管理員

Rank: 9Rank: 9Rank: 9

积分
3089
发表于 2018-3-26 11:05:07 |阅读模式
打开/template/default/member/register.htm,找到:
  1. <td><input type="text" id="{$this->setting['reginput']['username']}" name="" class="px" tabindex="1" value="{echo dhtmlspecialchars($_GET[defaultusername])}" autocomplete="off" size="25" maxlength="24" required /></td>
复制代码
改为:
  1. <td><input type="text" id="{$this->setting['reginput']['username']}" name="{$this->setting['reginput']['username']}" class="px" tabindex="1" value="{echo dhtmlspecialchars($_GET[defaultusername])}" autocomplete="off" size="25" maxlength="24" required /></td>
复制代码
找到:
  1. <td><input type="password" id="{$this->setting['reginput']['password']}" name="" size="25" tabindex="1" class="px" required /></td>
复制代码
改为:
  1. <td><input type="password" id="{$this->setting['reginput']['password']}" name="{$this->setting['reginput']['password']}" size="25" tabindex="1" class="px" required />
复制代码
找到:
  1. <td><input type="password" id="{$this->setting['reginput']['password2']}" name="" size="25" tabindex="1" value="" class="px" required /></td>
复制代码
改为:
  1. <td><input type="password" id="{$this->setting['reginput']['password2']}" name="{$this->setting['reginput']['password2']}" size="25" tabindex="1" value="" class="px" required /></td>
复制代码
找到:
  1. <td><input type="text" id="{$this->setting['reginput']['email']}" name="" autocomplete="off" size="25" tabindex="1" class="px" value="$hash[0]" {if !$_G['setting']['forgeemail']}required{/if} /><br /><em id="emailmore">&nbsp;</em></td>
复制代码
改为:
  1. <td><input type="text" id="{$this->setting['reginput']['email']}" name="{$this->setting['reginput']['email']}" autocomplete="off" size="25" tabindex="1" class="px" value="$hash[0]" {if !$_G['setting']['forgeemail']}required{/if} /><br /><em id="emailmore">&nbsp;</em></td>
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即註冊

本版积分规则

QQ|网站地图|小黑屋|Archiver|東里論壇 ( 粤ICP备14015598号 ) 公安备案图标粤公网安备 44512202000019号
GMT+8, 2024-11-22 16:11 , Processed in 0.111206 second(s), 46 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.