This document contains information about Nucleus that is only relevant to developers.
This section contains information on how to customize the Nucleus install script. It can be customized in two ways:
Note: this functionality is only available in versions > v2.2.
Open up the
install.php script and locate the following piece of code:
// array with names of plugins to install. Plugin files must be present in the // nucleus/plugin/ directory. // // example: // array('NP_TrackBack', 'NP_MemberGoodies') $aConfPlugsToInstall = array(); // array with skins to install. skins must be present under the skins/ directory with // a subdirectory having the same name that contains a skinbackup.xml file // // example: // array('base','rsd') $aConfSkinsToImport = array();
This code is all you need to change: list the names of the plugins and skins you want to auto-install in the arrays.
Next to changing the configuration, you'll need to add the files to the zipfile distribution.
For plugins, place the files in the
nucleus/plugins/ directory. Just as when you would install a plugin manually.
For skins, place them as directories under
skins/, just as you would do when importing a skin manually. Don't forget to put the
skinimport.xml file in there.
Don't forget to test your customized install script before distributing it.