Discuz
!X3
.2 用户名注册长度限制为 15 个字符,有些站长朋友觉得太短,需要改的长一点,但是很多人都不知道怎么修改,下面就告诉大家如何修改这个限制。按照以下步骤来就可以了!- 1、打开 /
source
/class
/class_member
.php
文件 - 找到
-
showmessage
(‘profile_username_tooshort
’); - }
elseif
($usernamelen
> 15) { - 将上面的 15 改成你需要的数字
- 2、打开 /
source
/language
/lang_message
.php
文件 - 找到
- 把上面的 15 改成你需要的数字
- 3、打开 /
source
/language
/mobile
/lang_template
.php
文件 - 找到
- 和
- 把上面的 15 都改成你需要的数字
- 4、打开 /
source
/module
/forum
/Forum_ajax
.php
文件 - 找到
-
showmessage
(‘profile_username_tooshort
’, ”,array
(),array
(‘handle
’ =>false
)); - }
elseif
($usernamelen
> 15) { -
showmessage
(‘profile_username_toolong
’, ”,array
(),array
(‘handle
’ =>false
)); - 把上面的 15 改成你需要的数字
- 到这里就全部改完了。
转载请注明:汇站网 » Discuz!X3.2修改用户名注册长度限制的方法