after web-form edit, site creation from hostingplan gives wrong values

Discussion in 'Installation/Configuration' started by raveneye, Nov 3, 2005.

  1. raveneye

    raveneye New Member

    Hi,

    I've created a plugin to display the clients company in the site-form. Only after I added it and moved it to the top of the "isp - ISP Web"-form. Site creation from a hostingplan gives wrong values after the site is created, for a number of fields. I didn't notice this in 2.0.9. I would like to email the plugin with an export of the web-form but at this moment it's not so nice :(

    thx

    Bram
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look at the file ispconfig_isp_web.lib.php. In the web_show function. Some of the elemets on the page are made visible / invisible by their index. E.g.: $doc->deck[0]->elements[14]->visible = 0; If you put your plugin on the top of the form, you have to set all indices for deck[0] plus one. in the case of the above example: $doc->deck[0]->elements[15]->visible = 0; The values for the hostingplan are set from line 166 - 187.
     
    Last edited: Nov 7, 2005
  3. raveneye

    raveneye New Member

    thx

    Bram
     

Share This Page