IspConfig 3 additional fields in Client Templates

Discussion in 'Developers' Forum' started by Kyokata, Jun 11, 2016.

  1. Kyokata

    Kyokata New Member

    Hi all, sorry for my bad english.

    When we link a multiserver IspConfig with billing system, was necessary to divide the tariffs for the servers. To solve this problem it was necessary to make the following changes:

    1. ALTER TABLE `client_template` ADD `default_webserver` INT(11) NOT NULL DEFAULT '1' ;

    2. In the file /usr/local/ispconfig/interface/web/client/form/client_template.tform.php add a field
    'default_webserver' => array (
    'datatype' => 'INTEGER',
    'formtype' => 'SELECT',
    'default' => '1',
    'datasource' => array ( 'type' => 'CUSTOM',
    'class'=> 'custom_datasource',
    'function'=> 'client_servers'
    'value' => '',
    'name' => 'default_webserver'

    3. In the file /usr/local/ispconfig/interface/web/client/templates/client_template_edit_limits.htm add a field
    <div class="ctrlHolder">
    <label for="default_webserver">{tmpl_var name='default_webserver_txt'}</label>
    <select name="default_webserver" id="default_webserver" class="selectInput">
    {tmpl_var name='default_webserver'}

    4.In the file /usr/local/ispconfig/interface/lib/classes/ correct lines
    (strpos($k, 'limit') !== false or $k == 'ssh_chroot' or $k == 'web_php_options' or $k == 'force_suexec')
    (strpos($k, 'limit') !== false or $k == 'ssh_chroot' or $k == 'web_php_options' or $k == 'force_suexec' or $k == 'default_webserver')

    I would like to see this edit in future versions, or other mechanism automatically separating customers
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The default server settings are currently missing indeed, there is already a bug report in the bug tracker if i remember correctly.
  3. Kyokata

    Kyokata New Member

    thanks for the info

Share This Page