Custom web interface .php

Discussion in 'Tips/Tricks/Mods' started by zion, Feb 24, 2014.

  1. zion

    zion New Member

    Hi all,

    If I'd like to modify something on the web interface (Email -> Email Mailbox -> Add new Mailbox), then I have to modify the /usr/local/ispconfig/interface/web/mail/mail_user_edit.php file, or is there any other way to this modification?

    It would be better for me if the Spamfilter shows my Filter by default instead of the "- not enabled -" option.
    I can do it, and it works well, but this modification will be overwritten on the next ISPConfig update.

    Is there something like what we can do with custom plugins?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The default is set in /usr/local/ispconfig/interface/web/mail/form/mail_user.tform.php and not the edit file. There is no way to change that in a update safe way in the current versions, but there is apending feaure request to add a alternate and update safe way do change defaults.
  3. zion

    zion New Member

    Thank you till,

    I can not find defaults for spamfilter in the tform.php that's why I modified the edit php like this:

    # diff mail_user_edit.php-original mail_user_edit.php-custom
    < $policy_select = "<option value='0'>".$app->tform->lng("no_policy")."</option>";
    > #Modified by zionduc 20140224
    > #$policy_select = "<option value='0'>".$app->tform->lng("no_policy")."</option>";
    >  $policy_select .= "<option value='0'>".$app->tform->lng("no_policy")."</option>";
    I use ISPConfig Version:
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You're right, we coded this differently in this file. Sorry for the wrong info.

Share This Page