Posted By: Brijesh on February 7, 2020, 8:08 am | Post: 1 |
Hi,
At the moment it is not possible to pass addtional parameters in Blesta module. We will add it in future versions. However you can make minor change in your mods.php file in the __post_mod_install() function. Where you must be checking if not empty $__settings then unzip the files e.g. : if(!empty($__settings['smart-maintenance-mode'])) There you can add a OR condition to check if you get "autoinstall" parameter in GET that will be when you auto install a script via Blesta e.g. : if(!empty($__settings['smart-maintenance-mode']) || !empty($_GET['autoinstall'])) Let us know if this does not work for you. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on February 7, 2020, 9:42 am | Post: 3 |
Hi,
Glad to know it works. In order to activate a plugin you need to execute an UPDATE query in the database. Here is an example of the same : PHP Code
----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on February 7, 2020, 10:45 am | Post: 5 |
Hi,
Glad to know it works !! ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |