This field can be used to generate custom usernames replacing the default ones. You can use variables in a smarty-like way ({$variablename}) to insert variable values into the username.
Example: cp{$userid} would result in the username cp5 on a user with the ID 5, cp{pad($userid, 4, '0')} would result in cp0005 if ran on a user with the ID 5.
Do note that Sentora has some limitations when it comes to what can and can't be in a username. The only allowed characters are: a-z (both lower and upper case), - and 0-9, the username can't end in a dash ( - ), and it can't be longer than 62 characters.
Available functions:
pad(String $Input, int $Pad_Length, String $Padding) - Adds a padding to the left of the string, e.g. pad($userid, 4, 0) will result in 0005, this uses str_pad (although omitting the last argument to only use left padding) click the link for more info.
Available variables:
serviceid - The unique ID of the service/order
userid - The unique ID of the client that owns the service
serverid - The server ID that the service is assigned to (zero if no server assigned)
serverip - The IP Address of the sentora server
domain - The domain assigned to the product/service (can be empty)
domain_short - The domain assigned to the product/service, without dots and only the first eight (8) characters (can be empty)
firstname - The firstname of the client
lastname - The lastname of the client
fullname - First Name + Last Name
companyname - The company name associated with the client (can be empty)
email - The email address associated with the client
country - 2 Letter ISO Country Code
groupid - Client Group ID