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:


    Code
    1. USER_INITIAL_THEME = default


    to


    Code
    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/set-gui-permissions.pl to fix permissions once the update job is done.


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

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

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