final public function validName($username)
{
if(strlen($username) <= 25 && !preg_match("/[^a-z\-]/i", $username))
{
return true;
}
return false;
}
worked thank youActually, it is possible.. I made a code for my RP for RevCMS..
Steps:
1. Go to class.users.php in app/
2. Open the file and go to line between 21-22 or this code something like this > final public function validName($username)..
3. Replace that whole code with this
4. Save the file then you're set!PHP:final public function validName($username) { if(strlen($username) <= 25 && !preg_match("/[^a-z\-]/i", $username)) { return true; } return false; }