Login     Sign up
registration name character count
tommy (@tommy)
Join date: Aug 24th 2010
Community posts: 38
View Profile
Send Message

how do i change the 4 character user name requirement?
Tom, Tim, Ana, Jim, Amy, Mac, Ron, Kim, Bob and Jon would really like to use their proper names ;)

Thanks!

165 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

modules/member/member.php

function signup

[code]
$_POST['username'] = strtolower($_POST['username']);
if (strlen($_POST['username']) < 4 || strlen($_POST['username']) > 18 || !ereg("^[0-9a-z]+$",$_POST['username'])) {
$errors[] = t('Username').': '.t('from 4 to 18 characters, only 0-9,a-z');
}
[/code]

you also can show the fullname instead of the username. How to do this is explained elsewhere on this forum

165 months ago
tommy (@tommy)
Join date: Aug 24th 2010
Community posts: 38
View Profile
Send Message

Thanks Falcon, that's what I needed.. I'm seeing a lot of other settings in there as well.. time to break my test site.. lol!!

165 months ago