Moderators Parkho Posted June 1, 2012 Moderators Report Posted June 1, 2012 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: *There's been an update* Download at Github: Github.com/parkho 3 Quote
Moderators servetas Posted June 1, 2012 Moderators Report Posted June 1, 2012 Does it show all the pilots or just the pilots you have not file a pirep for specific days? Quote
mattia Posted June 1, 2012 Report Posted June 1, 2012 many thanks nice addon but you can use as an email sender other than admin Quote
Moderators Parkho Posted June 1, 2012 Author Moderators Report Posted June 1, 2012 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. Quote
Moderators Parkho Posted June 1, 2012 Author Moderators Report Posted June 1, 2012 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. Quote
mattia Posted June 1, 2012 Report Posted June 1, 2012 is possible to use a mail different from that of the admin? Quote
Moderators servetas Posted June 1, 2012 Moderators Report Posted June 1, 2012 also, is possible to show only the pilots you have not flown for the last x days? Quote
Moderators Parkho Posted June 2, 2012 Author Moderators Report Posted June 2, 2012 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 Quote
Moderators Parkho Posted June 2, 2012 Author Moderators Report Posted June 2, 2012 also, is possible to show only the pilots you have not flown for the last x days? Yes that's possible. Quote
Moderators servetas Posted June 2, 2012 Moderators Report Posted June 2, 2012 How can we do this? If i could, it would be a great module . Quote
Moderators Parkho Posted June 2, 2012 Author Moderators Report Posted June 2, 2012 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. Quote
TylerWood99 Posted June 6, 2012 Report Posted June 6, 2012 How do you change the Amount of Days that you would like the module to warn you Quote
tutmeister Posted June 7, 2012 Report Posted June 7, 2012 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. Quote
Moderators Parkho Posted June 7, 2012 Author Moderators Report Posted June 7, 2012 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. Quote
Moderators Parkho Posted June 7, 2012 Author Moderators Report Posted June 7, 2012 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! Quote
TAV1702 Posted June 7, 2012 Report Posted June 7, 2012 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! 1 Quote
Moderators servetas Posted June 7, 2012 Moderators Report Posted June 7, 2012 I agree with you TAV1702 but i would be better (i think) if we could add it on the Pilots & Groups Menu . Quote
TAV1702 Posted June 7, 2012 Report Posted June 7, 2012 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. Quote
Moderators Parkho Posted June 7, 2012 Author Moderators Report Posted June 7, 2012 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! Quote
TAV1702 Posted June 7, 2012 Report Posted June 7, 2012 Yeah exactly. I have just installed this on my test airline on a localhost server and it is a nice addon Quote
AlessandroCuba Posted September 19, 2012 Report Posted September 19, 2012 I have this bug An Error Was Encountered The module "PILOTMANAGER" doesn't exist! Quote
Moderators Parkho Posted September 19, 2012 Author Moderators Report Posted September 19, 2012 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. Quote
simonecatalano Posted August 28, 2013 Report Posted August 28, 2013 Thank you work!!! very much for this is module Quote
StartVM Posted August 19, 2014 Report Posted August 19, 2014 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 Quote
Moderators Parkho Posted November 24, 2015 Author Moderators Report Posted November 24, 2015 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. Quote
shaun105 Posted November 24, 2015 Report Posted November 24, 2015 Superb work Parkho. Just the ticket Quote
Moderators Parkho Posted November 24, 2015 Author Moderators Report Posted November 24, 2015 tnx Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.