changing VM Name Pattern

You can change VM name Pattern used by Xenica when creating a new VM,
this name will be saved in WHMCS 'user name' filed (shown in admin Area) .

from config.php file (in whmcs/modules/servers/Xenica/)

you will find this line:

define("xenica_VM_NamePatern", "[firstname][serviceid]"); 

change the pattern from here , the default value is user first name followed by WHMCS service id for this order, like 'user26'

- you can use those variables on your string : [serviceid] [firstname] [lastname] [userid] [serverid] [domain] ,
example

define("xenica_VM_NamePatern", "serv_[userid]_[serviceid]"); 

- NO Spaces , NO special chars Allowed !

  • changing_vm_name_pattern.txt
  • Last modified: 2020/01/05 23:31
  • by orwah