| | Game| Social| Demo: Discuz!X 3.2| phpwind 9| Destoon 5|
| | |

Free Forum | Free Message Board | English Discuz!X 3 | Discuz Hosting | Msg2me

 Forgot password?
 Register
Search
View: 3107|Reply: 10

only allow digital alphabet in username

[Copy link]

 China

Post time: 12-12-2009 22:14
| Show all posts |Read mode
dz 7.2
Guest, if you want to see the hidden content, please Reply

 China

Post time: 14-12-2009 01:10
| Show all posts
this is about what...?

 China

 Author| Post time: 14-12-2009 08:18
| Show all posts
a method of preventing spammers, it usually use chinese or strange characters.

it should filter most spammers as tested.

 Indonesia

Post time: 27-1-2010 18:42
| Show all posts
You must reply to view hidden information

 Malaysia

Post time: 6-2-2010 15:07
| Show all posts
You must reply to view hidden information

 Indonesia

Post time: 22-4-2010 08:41
| Show all posts
Thanks for sharing nice info

 Malaysia

Post time: 17-5-2010 10:12
| Show all posts
really nice... thanks..

 Vietnam

Post time: 17-5-2010 17:12
| Show all posts
You must reply to view hidden information

 Malaysia

Post time: 12-8-2010 08:57
| Show all posts
nice to prevent spamer.good.thank

 Austria

Post time: 3-2-2012 17:42
| Show all posts
It must be modified when the server runs with PHP 5.3+!

ajax.php
  1. if(!preg_match("/^[[:alnum:]]+$/i", $username))
  2.     {
  3.     $ucresult = -2;
  4.     }else{
  5.     $ucresult = uc_user_checkname($username);
  6.     }
Copy the Code
register.php
  1. if(!preg_match("/^[[:alnum:]]+$/i", $username))
  2.     {
  3.     showmessage('profile_username_protect');
  4.     }
Copy the Code

QQ|Dark room|Msg2me    

28-7-2016 06:55 GMT+8

Powered by Discuz! X3.2

Release 20151208, © 2001-2016 Comsenz Inc.

Quick Reply To Top Return to the list