Moderators Parkho Posted January 22, 2012 Moderators Report Share Posted January 22, 2012 This is a flight duration calculator. The results are of course estimated but with this you could have an idea of how to manage your schedules when adding them. This is an open source module, so feel free if you want to make changes. Install: 1. Download the zip. 2. Unzip & upload in the order of folder structure. 3, Make a link to access it by <?php echo url('duration') ;?>. Pix: Download at Github: Github.com/parkho 1 Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted January 22, 2012 Report Share Posted January 22, 2012 thank you for sharing this this seems very useful best regards Thomas Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 22, 2012 Author Moderators Report Share Posted January 22, 2012 thank you for sharing this this seems very useful best regards Thomas You're welcome, hope this works fine Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted January 22, 2012 Moderators Report Share Posted January 22, 2012 Great addition well done. Quote Link to comment Share on other sites More sharing options...
STARs Posted January 22, 2012 Report Share Posted January 22, 2012 This is a flight duration calculator. The results are of course estimated but with you could have an idea of how to manage your schedules when adding them. This an open source module, so feel free if you want to make changes. Install: 1. Download the zip. 2. Unzip & upload in the order of folder structure. 3, Make link to access it (ex. <?php echo url('duration') ;?>. Pix: Getting error P.S Help Fatal error: Call to undefined method Util::FormatDuration()**********************************/core/templates/results.tpl on line 60 Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 22, 2012 Author Moderators Report Share Posted January 22, 2012 Getting error P.S Help Fatal error: Call to undefined method Util::FormatDuration()**********************************/core/templates/results.tpl on line 60 What version of phpvms are you running? Quote Link to comment Share on other sites More sharing options...
STARs Posted January 23, 2012 Report Share Posted January 23, 2012 What version of phpvms are you running? Version 2.1.934 Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 23, 2012 Author Moderators Report Share Posted January 23, 2012 Version 2.1.934 Remove the util::formatduration() every where you see it in the results.tpl. You can use notepad++(search web) to open it and see if it's fixed. 1 Quote Link to comment Share on other sites More sharing options...
STARs Posted January 24, 2012 Report Share Posted January 24, 2012 Remove the util::formatduration() every where you see it in the results.tpl. You can use notepad++(search web) to open it and see if it's fixed. fixed. Quote Link to comment Share on other sites More sharing options...
brianatc30 Posted March 27, 2012 Report Share Posted March 27, 2012 <table cellpadding="0 cellspacing=" 0"="" width="80%" class="tablesorter" style="color: rgb(23, 23, 23); font-family: 'segoe ui', tahoma, arial, helvetica, clean, sans-serif; font-size: 12px; "> Flight Data Departure Airport: KSEA Arrival Airport: KRNO Distance: 490 nm Cruising Altitude: 33000 ft Reaching Altitude: 33000 ft Average Vertical Speed: 2500 ft/m Top Of Descend Distance: 99 nm Climb Time Cruise Time Descend & Approach Time Estimated Total Flight Duration from KSEA to KRNO i getting not time to climb and stuff like that can you help me out Quote Link to comment Share on other sites More sharing options...
freshJet Posted March 27, 2012 Report Share Posted March 27, 2012 I can't see the pics Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted March 27, 2012 Author Moderators Report Share Posted March 27, 2012 Open the results.tpl and remove " util::formatduration()" cammand every where you see it. Quote Link to comment Share on other sites More sharing options...
brianatc30 Posted March 27, 2012 Report Share Posted March 27, 2012 <table cellpadding="0 cellspacing=" 0"="" width="80%" class="tablesorter" style="color: rgb(23, 23, 23); font-family: 'segoe ui', tahoma, arial, helvetica, clean, sans-serif; font-size: 12px; "> Climb Time Cruise Time Descend & Approach Time Estimated Total Flight Duration from KSEA to KLAS i am still getting nothing to show up... can you please help??? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted March 28, 2012 Author Moderators Report Share Posted March 28, 2012 can you post an image? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted March 28, 2012 Author Moderators Report Share Posted March 28, 2012 Pic I can't see the pics The pics are up now. Quote Link to comment Share on other sites More sharing options...
brianatc30 Posted March 28, 2012 Report Share Posted March 28, 2012 i can not get it in... its not showing me Cimb Time Cruise Time Descend & Approach Time Estimated Total Flight Duration from KSEA to KLA its not show me time Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted March 29, 2012 Author Moderators Report Share Posted March 29, 2012 i can not get it in... its not showing me Cimb Time Cruise Time Descend & Approach Time Estimated Total Flight Duration from KSEA to KLA its not show me time For those of you who are having trouble seeing the time format, please download and replace the attached .tpl file in templates folder. Thanks results.zip Quote Link to comment Share on other sites More sharing options...
avdesigns Posted April 2, 2012 Report Share Posted April 2, 2012 Im having a problem its saying it takes 6 hours egcc - lepa? Is there a fix? Thanks Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted April 2, 2012 Author Moderators Report Share Posted April 2, 2012 It's workinf just fine. Make sure you've added those airports in admin center before using the module. Proof: Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted July 18, 2013 Report Share Posted July 18, 2013 is there a fix to trim times from 1.57119275296 to 1.57 hrs Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted July 18, 2013 Author Moderators Report Share Posted July 18, 2013 Yes. Use "round(number, 2)" command in results.tpl. Number is the number you wanna round and 2 is the decimal you wanna round it by, so you put 2 it'll be 1.57 you put 3 it'll be 1.571 Good luck. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted July 18, 2013 Author Moderators Report Share Posted July 18, 2013 Yes. Use "round(number, 2)" command in results.tpl. Number is the number you wanna round and 2 is the decimal you wanna round it by, so you put 2 it'll be 1.57 you put 3 it'll be 1.571 Good luck. Quote Link to comment Share on other sites More sharing options...
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.