解决升级至 Discuz! X2.5 0901 后,GBK版本下注册用户名,字符没有到15个便提示:用户名不得超过 15 个字符。
编辑文件:
\static\js\register.js
找到以下代码- x.get('https://www.discuz.1314study.com/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkusername&username=' + encodeURIComponent(username), function(s) {
复制代码
替换为:- x.get('https://www.discuz.1314study.com/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkusername&username=' + (BROWSER.ie && document.charset == 'utf-8' ? encodeURIComponent(username) : username.replace(/%/g, '%25')), function(s) {
复制代码
|
上一篇: 特殊的要求轮子下一篇: 1314学习网签到记录贴-2012年9月27日
|