BCOE&M 2.7.2: Load Libraries Locally

BCOE&M utilizes a number of third-party libraries to enhance the user experience. If you wish not to depend upon content delivery networks (CDNs) to load these libraries, the following will help you download each library, upload the file(s) to the correct directory on your web server, and reference it correctly on BCOE&M’s index.php page.

Caution: This requires some familiarity with HTML and FTP access to your web server.

Once you have downloaded, uncompressed (if applicable), and uploaded via FTP the files to your web server, you'll need edit the paths.php file (see below).

Step 1: Install or Upgrade to BCOE&M Version 2.7.2

Click the link to the right to download the latest version of BCOE&M.

Perform a clean install or upgrade your current one.

Step 2: Create a New Directory

Create a new directory called libraries in your BCOE&M's installation root folder. Do not skip this step!

Step 3: Download Libraries, Configure, and Upload

The following libraries are required for BCOE&M to function properly. To shift from CDN to local, follow the instructions for each library detailed below.

jQuery 2.2.4

  1. Access the jQuery 2.2.4 file
    1. Select all, copy, and paste the code into a new text file (using Notepad, etc.)
    2. Name the file jquery.min.js
  2. Upload the file to your installation's /libraries/ directory

Bootstrap 3.3.6

  1. Go to the Bootstrap website
  2. Download the version 3.3.6 Bootstrap package (BCOE&M is not currently compatible with version 4.x)
  3. Unzip the package
  4. Rename the unzipped package folder to bootstrap
  5. Upload the bootstrap folder to your installation's /libraries/ directory

DataTables

  1. Go to the DataTables download builder
    1. Under Step 1. Choose a styling framework, choose "Bootstrap 3"
    2. Under Step 2. Select packages, choose "DataTables"
    3. Do not choose any extensions
  2. Select the Download tab
  3. Download the files
  4. Unzip the package
  5. Create a new folder called datatables
  6. Copy the following files into the new datatables folder (these are located in sub-folders):
    1. jquery.dataTables.min.js
    2. dataTables.bootstrap.min.css
    3. dataTables.bootstrap.min.js
  7. Access the Font Awesome CSS file for DataTables integration
    1. Select all, copy, and paste the code into a new text file (using Notepad, etc.)
    2. Name the file dataTables.fontAwesome.css
    3. Save the file into the datatables folder you created
  8. Upload the datatables folder to your installation's /libraries/ directory

FancyBox 2.1.5

  1. Download version 2.1.5 or older of FancyBox (BCOE&M is not currently compatible with version 3.0.x)
  2. Unzip the package
  3. Rename the folder to fancybox
  4. Download the jQuery easing plug in
  5. Unzip the package
  6. Copy the jquery.easing.1.3.min.js file to the fancybox folder
  7. Upload the folder to your installation's /libraries/ directory

Bootstrap 3 Date/Time Picker 4.17.37

  1. Download version 4.17.37 of the Bootstrap 3 Date/Time Picker
  2. Unzip the package
  3. Locate the build folder in the unzipped package
  4. Rename the build folder to date-time-picker
  5. Access the Moment With Locales file
    1. Select all, copy, and paste the code into a new text file (using Notepad, etc.)
    2. Name the file moment-with-locales.js
    3. Save the file into the date-time-picker/js folder you created
  6. Upload the date-time-picker folder to your installation's /libraries/ directory

TinyMCE

  1. Download the latest version of TinyMCE Community
  2. Unzip the package
  3. Rename the folder to tinymce
  4. Upload the folder to your installation's /libraries/ directory

Jasney Bootstrap 3.1.3

  1. Download version 3.1.3 of Jasny Bootstrap
  2. Unzip the package
  3. Rename the folder to jasny-bootstrap
  4. Upload the folder to your installation's /libraries/ directory

DropZone 4.2.0

  1. Download version 4.2.0 of DropZone
  2. Unzip the package
  3. Create a new folder called dropzone
  4. Copy the following files into the new dropzone folder (may be located in sub-folders):
    1. dropzone.min.js
    2. dropzone.min.css
  5. Upload the dropzone folder to your installation's /libraries/ directory

Bootstrap Form Validator 0.9.0

  1. Download version 0.9.0 of Bootstrap Form Validator
  2. Unzip the package
  3. Create a new folder called validator
  4. Copy the following file into the new validator folder (may be located in a sub-folder):
    1. validator.min.js
  5. Upload the validator folder to your installation's /libraries/ directory

Bootstrap Select 1.12.0

  1. Download version 1.12.0 of Bootstrap Select
  2. Unzip the package
  3. Create a new folder called bootstrap-select
  4. Copy the following file into the new bootstrap-select folder (may be located in sub-folders):
    1. bootstrap-select.min.js
    2. bootstrap-select.min.css
  5. Upload the bootstrap-select folder to your installation's /libraries/ directory

Font Awesome Version 4.7.0

BCOE&M utilizes version 4.7.0 in its coding. Version 5.x will not work.

  1. Download version 4.7.0 of Font Awesome
  2. Unzip the package
  3. Rename the folder to font-awesome
  4. Upload the folder to your installation's /libraries/ directory

jQuery Password Strength Meter for Twitter Bootstrap

  1. Download the latest version of the jQuery Password Strength Meter for Twitter Bootstrap
  2. Unzip the package
  3. Rename the folder to pwstrength-bootstrap
  4. Upload the folder to your installation's /libraries/ directory

Zxcvbn 4.4.2

  1. Download version 4.4.2 of Dropbox's zxcvbn
  2. Unzip the package
  3. Rename the folder to zxcvbn
  4. Upload the folder to your installation's /libraries/ directory

Bootstrap Markdown Editor

  1. Download version 2.1.0 of Bootstrap Markdown Editor
  2. Unzip the package
  3. Rename the folder to bootstrap-markdown-editor
  4. Upload the folder to your installation's /libraries/ directory

Marked

  1. Download version 0.3.2 of Marked
  2. Unzip the package
  3. Create a new folder called marked
  4. Copy the following file into the new marked folder (these may be located in sub-folders):
    1. marked.min.js
  5. Upload the folder to your installation's /libraries/ directory

Ace

  1. Download version 1.1.3 of Ace
  2. Unzip the package
  3. Create a new folder called ace
  4. Copy the following file into the new ace folder (these may be located in sub-folders):
    1. ace.js
  5. Upload the folder to your installation's /libraries/ directory

Step 4: Edit paths.php

Change this line define('CDN', TRUE); to define('CDN', FALSE);.