Jump to content
Parkho

Pilot Manager V1.1

Recommended Posts

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

Share this post


Link to post
Share on other sites
Does it show all the pilots or just the pilots you have not file a pirep for specific days?

It shows all the pilots regardless of any pireps submitted.

Share this post


Link to post
Share on other sites
many thanks nice addon but you can use as an email sender other than admin

That's correct but I wanted it to be available to admins only and to be seperated from mass mailer.

Share this post


Link to post
Share on other sites
is possible to use a mail different from that of the admin?

You can change the email address of your VA, in General settings in admin center

Share this post


Link to post
Share on other sites
also, is possible to show only the pilots you have not flown for the last x days?

Yes that's possible.

Share this post


Link to post
Share on other sites

How can we do this? If i could, it would be a great module ;) .

I have to look into it and let you know. Maybe in the next version. ;)

Share this post


Link to post
Share on other sites

How do you change the Amount of Days that you would like the module to warn you

This module doesn't warn you, it displays the information for pilots in one convenient place, so that allows you to determine if they should be warned or not.

Share this post


Link to post
Share on other sites

The purpose of this module is to let the admin send warning or welcome emails to their pilots. It is now in development as I'm working on some more features to add to it.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I agree with you TAV1702 but i would be better (i think) if we could add it on the Pilots & Groups Menu ;).

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

That's actually a good way to get this resolved but still the matter of it being somewhere it doesn't belong to still remains! :huh:

Share this post


Link to post
Share on other sites

Yeah exactly. I have just installed this on my test airline on a localhost server and it is a nice addon ;)

Share this post


Link to post
Share on other sites

That means you're missing the module folder or have it misspelled. Remember that the module folder names are case sensitive , so create it as it is in the download. ;)

Share this post


Link to post
Share on other sites

Parkho, I don't understand how to change the inactive thing so it doesn't show the red icon after 3 days of no flights. I changed it in the local config, and cleared the cache, but no difference

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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...