Jump to content

Recommended Posts

  • Moderators
Posted

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
  • Moderators
Posted
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.

  • Moderators
Posted
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.

  • Moderators
Posted
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

  • Moderators
Posted

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. ;)

Posted

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.

  • Moderators
Posted

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.

  • Moderators
Posted

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!

Posted

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
Posted

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.

  • Moderators
Posted

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:

  • 2 weeks later...
  • 2 months later...
  • Moderators
Posted

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. ;)

  • 11 months later...
  • 11 months later...
Posted

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

  • 1 year later...
  • Moderators
Posted

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

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