找到下面三个文件,Ucenter下model文件夹中user.php、Discuz下uc_client/model文件夹中user.php、DEDECMS下uc_client/model文件夹中user.php,使用文本编辑工具打开,找到以“if(len”开头的验证用户名长度和是否含有敏感字符的代码,Ucenter、Discuz和DEDECMS5中是if(len > 15 || $len < 3,就是用户名不大于15不小于3,UCHOME中是if($len > 10 || $len < 3,用户名不小于3不大于10,将这些数字改成您需要的数字,我设置的是不大于20不小于3(也就是说UTF8版下注册用户名不超过6个汉字)。 注意:这个设置的值是英文字符长度,如果是utf版,每中文字符占用3,gbk版每字符占用2。 修改数据库: 将Discuz、Ucenter、UCHOME三个的数据库member数据表[Username]字段的长度修改为上面设置的数字,如20,DEDECMS不需要设置,默认就是20.
discuz论坛注册用户名长度修改
《 “discuz论坛注册用户名长度修改” 》 有 7 条评论
-
不错的文章,内容博学多才
-
好文章,内容酣畅淋漓.
-
不错的文章,内容文笔犀利
-
好文章,内容横扫千军
-
不错的文章,内容惊涛骇浪
-
不错的文章,内容横扫千军
-
好文章,内容文笔犀利
Search
Latest Comments
Categories
Archives
- 2025 年 11 月 (139)
- 2025 年 10 月 (335)
- 2025 年 9 月 (58)
- 2023 年 2 月 (1)
- 2022 年 3 月 (1)
- 2021 年 2 月 (1)
- 2020 年 7 月 (1)
- 2019 年 9 月 (2)
- 2018 年 9 月 (1)
- 2018 年 8 月 (2)
- 2018 年 6 月 (2)
- 2018 年 5 月 (3)
- 2018 年 2 月 (2)
- 2018 年 1 月 (1)
- 2017 年 12 月 (2)
- 2017 年 10 月 (1)
- 2017 年 7 月 (1)
- 2017 年 4 月 (1)
- 2017 年 2 月 (1)
- 2016 年 11 月 (1)
- 2016 年 10 月 (1)
- 2016 年 8 月 (2)
- 2016 年 7 月 (1)
- 2016 年 6 月 (3)
- 2016 年 4 月 (4)
- 2016 年 3 月 (5)
- 2016 年 2 月 (5)
- 2016 年 1 月 (2)
- 2015 年 12 月 (1)
- 2015 年 11 月 (3)
- 2015 年 9 月 (1)
- 2015 年 8 月 (2)
- 2015 年 7 月 (8)
- 2015 年 6 月 (5)
- 2015 年 5 月 (3)
- 2015 年 4 月 (4)
- 2015 年 3 月 (3)
- 2015 年 2 月 (1)
- 2015 年 1 月 (1)
- 2014 年 10 月 (1)
- 2014 年 9 月 (2)
- 2014 年 8 月 (3)
- 2014 年 7 月 (4)
- 2014 年 6 月 (1)
- 2014 年 5 月 (3)
- 2014 年 4 月 (15)
- 2014 年 3 月 (5)
- 2009 年 7 月 (1)
Tags
Newsletter
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Insert the contact form shortcode with the additional CSS class- "bloghoot-newsletter-section"

By signing up, you agree to the our terms and our Privacy Policy agreement.
发表回复
要发表评论,您必须先登录。