Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] X2.0正式版《中文注册》

[复制链接]
┌┌蘫月亮 发表于 2011-6-10 07:36:07 | 显示全部楼层 |阅读模式
插件发布
插件名称: X2.0正式版中文注册
插件来源: 二次修改他人插件
适用版本: Discuz! X2
语言编码: GBK简体 
最后更新时间: 2011-06-10
插件作者: 伤感唯美歌曲
插件简介: 使用本代码 注册只可以使用中文。
第1个方法:
注意:使用本代码后输入框除了中文 任何字符输入不进去

中文注册

打开:template----default----member----register.htm   如使用的不是默认风格 就找你使用的风格包里
  1. <div class="rfm">
  2. <table>
  3. <tr>
  4. <th><span class="rq">*</span><label for="{$this->setting['reginput']['username']}">{lang username}:</label></th>
  5. <td><input type="text" id="{$this->setting['reginput']['username']}" name="" class="px" tabindex="1" autocomplete="off" size="25" maxlength="15" required /></td>
  6. <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>
  7. </tr>
  8. </table>
  9. </div>
复制代码
替换为:

  1. <div class="rfm">
  2. <label>提示语:本论坛 『 <font color=red>只接受中文注册</font> 』用户名*</label>
  3. </tr>
  4. </table>
  5. </div>
  6. <div class="rfm">
  7. <table>
  8. <tr>
  9. <th><span class="rq">*</span><label for="{$this->setting['reginput']['username']}">{lang username}:</label></th>
  10. <td><input type="text" id="{$this->setting['reginput']['username']}" name="" class="px" tabindex="1" autocomplete="off" size="25" maxlength="15"

  11. onpropertychange="with(this)if(/[^\u3447-\uFA29]/ig.test(value))value=value.replace(/[^\u3447-\uFA29]/ig,'')" required /></td>
  12. <td class="tipcol"><i id="tip_{$this->setting['reginput']['username']}" class="p_tip">{lang register_username_tips}</i><kbd id="chk_{$this->setting

  13. ['reginput']['username']}" class="p_chk"></kbd></td>
  14. </tr>
  15. </table>
  16. </div>
复制代码
第2个方法:

==============================我是分割线=============================
1、在后台--注册与访问--注册链接文字,把“注册”改为“中文注册”或“注册”等
2、后台UCenter管理中心---注册设置---禁止的用户名:

  1. *q*
  2. *w*
  3. *e*
  4. *r*
  5. *t*
  6. *y*
  7. *u*
  8. *i*
  9. *o*
  10. *p*
  11. *a*
  12. *s*
  13. *d*
  14. *f*
  15. *g*
  16. *h*
  17. *j*
  18. *k*
  19. *l*
  20. *z*
  21. *x*
  22. *c*
  23. *v*
  24. *b*
  25. *n*
  26. *m*
  27. *Q*
  28. *W*
  29. *E*
  30. *R*
  31. *T*
  32. *Y*
  33. *U*
  34. *I*
  35. *O*
  36. *A*
  37. *S*
  38. *D*
  39. *F*
  40. *G*
  41. *H*
  42. *J*
  43. *K*
  44. *L*
  45. *Z*
  46. *X*
  47. *C*
  48. *V*
  49. *B*
  50. *N*
  51. *M*
  52. *1*
  53. *2*
  54. *3*
  55. *4*
  56. *5*
  57. *6*
  58. *7*
  59. *8*
  60. *9*
  61. *0*
  62. *管理员*
  63. *超级版主*
  64. *分版版主*
  65. *版主*
  66. *黑社会*
  67. *超版*
  68. *管理*
  69. *1*
  70. *2*
  71. *3*
  72. *4*
  73. *5*
  74. *6*
  75. *7*
  76. *8*
  77. *9*
  78. *0*
复制代码

 楼主| ┌┌蘫月亮 发表于 2011-6-10 07:37:13 | 显示全部楼层

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

wupeng 发表于 2011-6-10 07:46:07 | 显示全部楼层
p这个不错,我顶了,
回复

使用道具 举报

石头岛 发表于 2011-6-10 07:58:38 | 显示全部楼层
{:soso__12708735477199311327_2:}支持一下!
回复

使用道具 举报

赣南客家人 发表于 2011-6-10 07:59:24 | 显示全部楼层
回复

使用道具 举报

fuckgao 发表于 2011-6-10 08:12:45 | 显示全部楼层
这个不错 不过现在用不到,先顶一个
回复

使用道具 举报

郑晓娟 发表于 2011-6-10 08:38:53 | 显示全部楼层
第二个方法是有些缺陷的.主要在于:

1.屏蔽的字符不够齐全.例如"★"这类的字符就可以注册啦,把输入的软键盘转换成日文,也可以注册.其余的类推.

第一个方法是有些缺陷的.主要在于:1.如果整合了UCenter的其他程序.先在其他程序注册账号,再倒回来在discuz激活.

其上对QQ登录插件和微博登录插件的注册的字符还是无可奈何的
回复

使用道具 举报

xiaomu 发表于 2011-6-10 08:48:45 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

jy302 发表于 2011-6-10 09:03:46 | 显示全部楼层
还不错啦,呆呆
回复

使用道具 举报

梦ぅ心语 发表于 2011-6-10 10:29:40 来自手机 | 显示全部楼层
不错~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-2 12:13 , Processed in 0.117387 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表