Plugin API

  • Hello ;

    Why you don't just put your template into /var/www/imscp/gui/themes/<your_theme_folder> and then, in the /etc/imscp/imscp.conf file change the following parameter:

    1. USER_INITIAL_THEME = default


    1. USER_INITIAL_THEME = <your_theme_folder>

    This parameter won't be overriden when updating i-MSCP what is expected in your case.

    On update, you'll have just to copy your <your_theme_folder> to /var/www/imscp/gui/themes/ and then, run perl /var/www/imscp/setup/ to fix permissions once the update job is done.

    Creating a plugin only to change theme path is a no-go.


  • There's no documentation for the api atm, so you have to read the code or ask in forum. I'm sorry about that.