Jump to content

Pilot Manager V1.1


Parkho

Recommended Posts

  • Moderators

A little module in admin center for those who want to send a PIREP warning email.

Install:

1- Unzip in the order of the folders.

2. Add this to your core_navigation.tpl in admin/templates for the access:

<li><a href="<?php echo adminurl('/pilotmanager');?>">Pilot Manager</a></li>

3. Cahnge your local.config.php this part:

Config::Set('PILOT_AUTO_RETIRE', true);
Config::Set('PILOT_INACTIVE_TIME', 90);

To your desire days like this:

Config::Set('PILOT_AUTO_RETIRE', true);
Config::Set('PILOT_INACTIVE_TIME', 3);

4. Access it by clicking on "Pilot Manager" under "site & settings"

Pictures:

PM00.png

PM11.png

*There's been an update*

Download at Github: Github.com/parkho

  • Like 3
Link to comment
Share on other sites

  • Moderators

New version is now up. Here are the list of news:

1. Pilot status changes based on the last PIREP sent.

2. Welcome email button has been added.

3. Status icons.

4. Pop up window added when the email has been sent.

If the pilot auto retied is set to true, the status will change based on that too.

Enjoy!

Link to comment
Share on other sites

This looks like a nice add-on.

However, I am a strong advocate against editing any phpVMS core files due to them getting overwritten in an update.

To avoid this situation, you could easily edit your pilotmanager.pph file and add this to it below the index function

public function NavBar()
   {
    echo '<li><a href="'.SITE_URL.'/admin/index.php/Pilotmanager">Pilot Manager</a></li>';
   }

This will make the link show up in the Addons tab and there will never be a need to update the core file again when a person updates their phpVMS. I have not tired it yet on this module but will in a few minutes. Any time I add a module and it has a edit the core nav file, I never do and add this simple code instead and it works a treat! :)

  • Like 1
Link to comment
Share on other sites

Yeah that would be ideal but then it still makes it so one needs to update the core nav file every time they upgrade their website. BUT, yeah that would be sweet. I to , like keeping everything where it is supposed to be. I guess it is a matter of give and take.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
  • 11 months later...
  • 11 months later...
  • 1 year later...
  • Moderators

Good day every one,

PilotManager_V2.2 is now available at Github at the link below:

PilotManager_V2.2

Changes:

-A table has been added to keep records of what has been done.

-The template has been changed showing more data.

-The functions have been updated to match phpVMS 5.5x by Simpilot.

pm.png

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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...