Jump to content

Disposable Airlines, Fleet, Aircraft & Pireps Module v2.0.6


9 Screenshots

About This File

Disposable Airlines, Fleet, Aircraft and Pireps Module for phpVMS v7

12.MAY.2021

 

This module is compatible with the latest dev build as of 17APR2021, no need to modify any default files.
Technically all blade files (views/pages or whatever you call them) should work with your template but they are mainly designed for Bootstrap compatible themes (like Disposable Themes, Stisla etc). 

So if something looks weird in your template then you need to edit them.

 

Module is now capable of listening PhpVms Pirep events and change aircrat state

 

***** Manual Installation Steps 

 

Upload contents of the package (or pull/clone from GitHub) to your root/modules/DisposableAirlines folder
Go to admin section and enable the module, that's all
After enabling/disabling modules an app cache cleaning process is necessary (check admin/maintenance)

 

***** Usage

 

If you want to disable module auto links and add your own according to your template, then dashout 3 
frontend link registration commands in the Providers\AirlinesServiceProvider.php file as shown below;
(Two forward slashes will make them disabled.)

 

    // $this->moduleSvc->addFrontendLink('Airlines', '/dairlines', 'fas fa-calendar-alt', $logged_in=true);
    // $this->moduleSvc->addFrontendLink('Fleet', '/dfleet', 'fas fa-plane-departure', $logged_in=true);
    // $this->moduleSvc->addFrontendLink('All PIREPs', '/dpireps', 'fas fa-upload', $logged_in=true);

    
Then you can add links to your navbar with below examples;

 

<li>
  <a class="nav-link" href="{{ route('DisposableAirlines.aindex') }}">
    <i class="fas fa-calendar-alt"></i>
    <span>Airlines</span>
  </a>
</li>

<li>
  <a class="nav-link" href="{{ route('DisposableAirlines.dfleet') }}">
    <i class="fas fa-plane"></i>
    <span>Fleet</span>
  </a>
</li>

<li>
  <a class="nav-link" href="{{ route('DisposableAirlines.dpireps') }}">
    <i class="fas fa-upload"></i>
    <span>All Pireps</span>
  </a>
</li>

 

Also having a direct link to a specific airline/subfleet/aircraft is possible with;

 

<li>
  <a class="nav-link" href="{{ route('DisposableAirlines.ashow', ['DSP']) }}">
    <i class="fas fa-calendar-day"></i>
    <span>My Airline</span>
  </a>
</li>

<li>
  <a class="nav-link" href="{{ route('DisposableAirlines.daircraft', ['D-ISPO']) }}">
    <i class="fas fa-plane"></i>
    <span>My Aircraft</span>
  </a>
</li>

<li>
  <a class="nav-link" href="{{ route('DisposableAirlines.dsubfleet', ['A320NEO-DSP']) }}">
    <i class="fas fa-plane-departure"></i>
    <span>My Subfleet</span>
  </a>
</li>

 

Airline direct links use airline icao code, subfleets use their unique type and aircrafts use their registrations.

(Best way to add links in Laravel structure is to use routes like above, but plain html href="/dairline/DSP" is also possible)

 

You are free to edit any of the files as you wish, but please do not expect help/updates for the code you edited (controllers and providers)
I always try to provide info and support but can not fix things you broke ;) Just share your thoughts about any improvements so we can think together before changing things.

 

Enjoy,
Disposable
18.APR.2021

Edited by DisposableHero
Update v2.0.2


What's New in Version v2.0.6   See changelog

Released

  • Added German Translation (thanks @derrobin154)
  • Added Discord Webhook integration for sending out Pirep Received messages ( Go to Admin -> Disposable Airlines module for basic settings )
  • Added pagination to Airline PIREPs to prevent possible server memory/performance related errors.
  • Added a solution to fix aircraft states manually ... If the built in checks and event listeners somehow fail, admins will be able to park the aircraft (and cancel any active/in-progress pireps being done with that aircraft) by using the form provided.

User Feedback

Recommended Comments

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...