Page 1 of 1

agent name length

PostPosted: Thu Mar 18, 2010 8:19 am
by maykelsoft
hi,

how can i increase the agent name character length?... the default is limited to 10 characters only.

thanks!

PostPosted: Thu Mar 18, 2010 8:38 am
by mflorell
admin.php version and build?

User name length is 50 characters.

User ID length is 20 characters.

not sure where your limitation of 10 is coming from unless you are on an old version.

PostPosted: Thu Mar 18, 2010 8:42 am
by maykelsoft
hi,

please see below:

VERSION: 2.0.5-173
BUILD: 90320-0424

the user id length is limited to 10 characters only.

thanks!

PostPosted: Thu Mar 18, 2010 8:46 am
by mflorell
that is an ID field and is not intended for a long name, that is what the Name field is for.

PostPosted: Thu Mar 18, 2010 8:53 am
by maykelsoft
thanks mflorell,

is there a way we can adjust it to 15 characters?

thanks!

PostPosted: Thu Mar 18, 2010 11:09 am
by gardo
You can try adjusting it via mysql commandline. Something like:

ALTER TABLE `vicidial_users` CHANGE `user_id` `user_id` INT( 19 );

Or you can do it via Phpmyadmin.

I'm not just sure what the implication with the system is since Matt mentioned that it's not designed for long names.

PostPosted: Thu Mar 18, 2010 11:12 am
by maykelsoft
thanks gardo... we'll try this on a test machine...

cheers!

PostPosted: Thu Mar 18, 2010 11:18 am
by maykelsoft
maykelsoft wrote:thanks gardo... we'll try this on a test machine...

cheers!


it's not working... the user number is still limited to 10 characters only...

thanks

PostPosted: Thu Mar 18, 2010 4:51 pm
by mflorell
the "user_id" field is not what you are referring to, it's the 'user' field.

Just change the admin.php file to allow for 20 characters maxlength and there you go.

PostPosted: Fri Mar 19, 2010 2:07 am
by gardo
There you go. That's the missing link. :D

PostPosted: Fri Mar 19, 2010 2:28 am
by maykelsoft
thanks guys! it's now adjusted!

cheers!

PostPosted: Fri Mar 19, 2010 3:20 am
by maykelsoft
opps user with more than 10 characters still not added...

USER NOT ADDED - Please go back and look at the data you entered
user id must be between 2 and 10 characters long
full name and password must be at least 2 characters long

thanks!

PostPosted: Fri Mar 19, 2010 6:32 am
by maykelsoft
maykelsoft wrote:opps user with more than 10 characters still not added...

USER NOT ADDED - Please go back and look at the data you entered
user id must be between 2 and 10 characters long
full name and password must be at least 2 characters long

thanks!


guys sorry for the trouble. it's really working now...

1. ALTER TABLE `vicidial_users` CHANGE `user_id` `user_id` INT( 20 );
2. echo "<tr bgcolor=#B6D3FC><td align=right>User Number: </td><td align=left><input type=text name=user id=user size=20 maxlength=20> <input type=button name=auto_user value="AUTO-GENERATE" onClick="user_auto()"> $NWB#vicidial_users-user$NWE</td></tr>\n";
3. echo "<tr bgcolor=#B6D3FC><td align=right>User Number: </td><td align=left><input type=text name=user id=user size=20 maxlength=20> <input type=button name=auto_user value="AUTO-GENERATE" onClick="user_auto()"> $NWB#vicidial_users-user$NWE</td></tr>\n";
4. if ( (strlen($user) < 2) or (strlen($pass) < 2) or (strlen($full_name) < 2) or ( (strlen($user) > 20) and (!ereg('AUTOGENERA',$user)) ) )

i am confused with item number 4 as I am not sure if I really need to change it from 10 to 20. However, everything is working now and I can add more than 10 characters on user number without an error.

thanks!!!

PostPosted: Fri Mar 19, 2010 8:10 am
by mflorell
Thanks for posting, we will probably make these changes in the next 2.2.0 rc.

You don't need to do step 1, as mentioned before, the 'user' field is already 20 characters and the user_id field is unseen in the interface.