how could i affect users module order?

Discussion in 'Tips/Tricks/Mods' started by radim_h, Jan 13, 2011.

  1. radim_h

    radim_h Member

    In /usr/local/ispconfig/server/lib/config.inc.php

    i have
    /** Interface
    $conf['interface_modules_enabled'] = 'dashboard,sites,mail,dns,tools';

    prior version 3.0.3 when user was created, there was in ISPC database created
    table sys_user column modules record "dashboard,sites,mail,dns,tools" reflecting order of modules in config.inc.php

    Now it is creating redord "dashboard,mail,sites,dns,tools"
    How could i affect order of this record in db to be created as i want ?

    Even - When i set in config record like
    //** Interface
    $conf['interface_modules_enabled'] = 'dashboard,sites,mail,dns,domain,tools';
    users isn't created with domain module enabled...
     
    Last edited: Jan 13, 2011
  2. till

    till Super Moderator

    The domain module is only accessible for administrators. It can not be used by normal users.
     
  3. radim_h

    radim_h Member

    OK, i can live with it (but anyway, if i allow module for user it works fine, user can see list of his domains, which could be useful)

    Can you help me please with second part of my question?
    How can i affect order of modules for the user ?
     
  4. till

    till Super Moderator

    The order of the modules in the upper menu is always identical to the order of modules in the modules column of the sys_user record of that user.

    If you create a new client, then the variable $conf['interface_modules_enabled'] is used and the modules are ordered in that way. Only the dashboard module is always added as first module.
     
  5. radim_h

    radim_h Member

    Yes i understand this fully,

    but how to affect the module order which s written to sys_user when i create new user?
    It doesn't take the order from /usr/local/ispconfig/server/lib/config.inc.php anymore...

    Or should i modify some code ???

    or can i add it as request to take the oder exactkly as is in
    $conf['interface_modules_enabled'] =
    ??
     
  6. radim_h

    radim_h Member

    /usr/local/ispconfig/server/lib/config.inc.php

    I will ansver to myself :)
    i have wrote it good, what must be changed is really
    /usr/local/ispconfig/server/lib/config.inc.php

    //** Interface
    $conf['interface_modules_enabled'] = 'dashboard,sites,mail,dns,tools';

    and modules appears in written order

    But i'm blind and i've been editing
    /usr/local/ispconfig/interface/lib/config.inc.php

    i have never realized, there are two files config.inc.php
     
  7. till

    till Super Moderator

    ISPConfig 3 consists of 2 independant parts. A interface part and a server part which can be run on different machines (multiserver). So it needs two config files.
     

Share This Page