# blueIce 1.0.4 Documentation

## documentation

## 1. Package

The package contains the following folders:

- “3rd Party MODS” contains the third party Modules zips. Seperate installation will be required.
- “core” contains the required module for the hubs pilot list.
- “lib” contains all the files needed for your skin.
- “Extras” contains the social media airplane images.

## 2. Installation

To install the new skin you must —

1. Upload the lib folder from your pc to the phpVMS root to your web server.

2. Now go to your phpVMS admin. Navigate to `Site & Settings --> General Settings` Under the Current Skin section, select your skin to blueIce and than click save.

## 3. Adding your logo

To ad a favicon, make a 16x16 png image and upload it to your skins images directory, and name it favicon.
To change the logo on the skin to yours, just simply open your headr image `/lib/skins/blueIce/images/header.jpg` in a photo editor. Pasted the logo to the header image and upload it to the images directory in your skins folder.

## 4. How do I change the header image

1. This can be done by sizing the image you want to `1194x400` and upload it to `/lib/skins/blueIce/images/header.jpg`

## 5. How do I edit the ACARS Map?

### ACARS Map - Change your seetings to match below

1. Open core/local.config

       # Google Map Options
           Config::Set('MAP_WIDTH', '600px');
           Config::Set('MAP_HEIGHT', '600px');

   ### 5.1. Google Map API

2. You might also need your own API for google maps. Open core_htmlhead.php from your skins folder and add your key to api code. To get your API key from Google, log in to your Google account and go to https://developers.google.com/maps/documentation/javascript/get-api-key#key - `Open lib/skins/blueIce/layout.php`
Find the code below.

    https://maps.google.com/maps/api/js?sensor=true">

replace it with - `Don't forget to add your keys`

    https://maps.googleapis.com/maps/api/js?key=Your Key Here&callback=initMap">

## 6. How to add Recaptcha

1. If you are getting an error from the recaptch on the Registration and Contact pages. You will than need to obtain your recaptcha keys for your domain. Simply follow this link. Than paste the code to your local.config page just like as shown below. `Replace Key #1 and key #2 with your actual keys.`

    /* Keys for recaptcha, you can change these if you want to your own but it's a global key so it should just work */
    Config::Set('RECAPTCHA_PUBLIC_KEY', 'key #1');
    Config::Set('RECAPTCHA_PRIVATE_KEY', 'key #2');

## 7. Installing Modules

This skin has preset modules. Only the template files are installed. You will need to install the Modules. Open the folder in the skin download titled 3rd Party MODS. Please note that the template files have been removed from the ip files so you dont overwrite the files.
This template has a no hub pilots list. You will need to add the Pilots module that is included in the download. Just upload the core folder to your phpVMS installation directory. `(back up your Pilots Module before uploading the included file. Only install if you have no edits to the Pilots Module)`
Remember to install all the modules!

You will need to add some code to two data classes. Add the following code below to `core/common/TouchdownStatsData.class`

     public static function get_stats_by_cur_month($howmany) {
                             $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps`
                                                                     WHERE landingrate < '0'
                                             AND MONTH(submitdate)=MONTH(now())
                                             AND YEAR(submitdate)=YEAR(now())
                                             ORDER BY landingrate DESC
                                             LIMIT $howmany";
             return DB::get_results($query);
             }

Add the following code below to `core/common/StatsData.class`

    public static function TotalPilotMiles($pilotid)
    {
      $key = 'total_miles';
      $key .= '_'.$pilotid;

      $total = CodonCache::read($key);

      if($total === false)
      {
       $total = 0;
       $sql = "SELECT * FROM ".TABLE_PREFIX."pireps WHERE pilotid='$pilotid' AND accepted=1";
       $results = DB::get_results($sql);
       if($results) { foreach($results as $result) { $total += $result->distance; } }

       CodonCache::write($key, $total, '15minute');
      }
      return $total;
    }

### 7.1 Downloads Module

This mod will give you a better looking download page, seperated by categories. When done with adding a category, go to your phpmyadmin and get the cat ID of the category, than add it to your navigation menu.

     /index.php/MyDownloads/get_category_downloads/1">FSX Planes

### 7.2 Join Module

This mod will let you place some rules on a pre-ristration page. Wont let you continue the registration untill you agree to the terms. Simply install the module from the 3rd Party MODS folder. Than link your registration to

    /index.php/Join

## 8. Social Media Icons

I have included all the plane icons if you need to add more. From the skins download folder open extras folder.

## 9. Other Edits

1. `core_navigation.php` - Add links to your menu.
2. `Join.php` - Set your own Airlines rules.
3. `frontpage_main.php` - Line 126, change the date of when your Airline opened. - countup(2016,09,01) Do the same for line 123.
4. Line 190-192 add or remove to your liking for supported simulators.
5. Line 328-331 add or remove to your liking for social media icons.

### 9.1 Important Information

Table Class - blueIce_table
Button Class - blueIce-button
Font Awesome Icons - http://fontawesome.io/icons/

## 10. Support

If you have any questions that are not answered in this documentation, feel free to contact us via on our website or by our Support Forums You can also reply to the skyBlue post on the phpVMS forums.

When asking for support, plseae allow up 24 hours for a responce. With any support request please include the follwing.

1. Your URL of your airline that you need support for.
2. Any screenshots if possible
3. Full detailed description of the issue.

`Any websites that have removed the phpVMS link or our link from the footer will be ignored and will not get any support.`

209Studios

##### Thank you for choosing skyBlue skin for phpVMS! Please do not forget to leave us a nice feedback here.