[ Index ]

PHP Cross Reference of Nucleus CMS v3.51 code documentation

title

Body

[close]

/nucleus/documentation/devdocs/ -> custominstall.html (source)

   1  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   2  <html xmlns="http://www.w3.org/1999/xhtml">
   3  <head>
   4      <!-- $Id: custominstall.html 756 2005-08-11 20:28:57Z ehui $ -->
   5      <title>Nucleus - Custom Install Scripts</title>
   6      <link rel="stylesheet" type="text/css" href="styles/manual.css" />
   7  </head>
   8  <body>
   9  
  10  <div class="heading">
  11  Customized Install Scripts
  12  </div>
  13  
  14  <p class="note">Note: this functionality is only available in versions &gt; v2.2.</p>
  15  
  16  <h1>Introduction</h1>
  17  
  18  <p>
  19  <a href="index.html">Back to the developer docs index</a>
  20  </p>
  21  
  22  <p>
  23  This document contains information on how to customize the Nucleus install script. It can be customized in two ways:
  24  </p>
  25  
  26  <ol>
  27      <li>Automatically install skins</li>
  28      <li>Automatically install plugins</li>
  29  </ol>
  30  
  31  <h1>Configurations</h1>
  32  
  33  <p>Open up the <code>install.php</code> script and locate the following piece of code:</p>
  34  
  35  <pre><code>    // array with names of plugins to install. Plugin files must be present in the nucleus/plugin/
  36      // directory.

  37      //

  38      // example:

  39      //     array('NP_TrackBack', 'NP_MemberGoodies')

  40      $aConfPlugsToInstall = array();
  41  
  42  
  43      // array with skins to install. skins must be present under the skins/ directory with

  44      // a subdirectory having the same name that contains a skinbackup.xml file

  45      //

  46      // example:

  47      //     array('base','rsd')

  48      $aConfSkinsToImport = array();</code></pre>
  49  
  50  <p>This code is all you need to change: list the names of the plugins and skins you want to auto-install in the arrays.</p>
  51  
  52  <h1>Including the files</h1>
  53  
  54  <p>Next to changing the configuration, you'll need to add the files to the zipfile distribution.</p>
  55  
  56  <h2>Plugins</h2>
  57  
  58  <p>For plugins, place the files in the <code>nucleus/plugins/</code> directory. Just as when you would install a plugin manually.</p>
  59  
  60  <p>For skins, place them as directories under <code>skins/</code>, just as you would do when importing a skin manually. Don't forget to put the <code>skinimport.xml</code> file in there.</p>
  61  
  62  <h1>Don't forget</h1>
  63  
  64  <p>Don't forget to test your customized install script before distributing it.</p>
  65  
  66  </body>
  67  </html>


Generated: Sun Aug 1 03:56:06 2010
Open Source related documentation for developers.