Jump to content

James142

Members
  • Posts

    656
  • Joined

  • Last visited

Everything posted by James142

  1. Its something I have being trying to work out for a while now. No one seems to be able to give me the code for the total flight distance of a route in the acars map. Then Lorathon decides to add it to his website while im still trying to work out how to show the total distance for a route..
  2. Sounds cool
  3. Do you have the file Pilots_list.tpl in your core/templates file? That error code is telling you that it can't find the Pilots_list.tpl file..
  4. That would be cool cause a couple of my pilots have multiple computers. But does that mean I have to add that code to every page? Regards
  5. How you guys can remember all this amazes me Ill have a go with all this in localhost after I finish a "module" I am working on.
  6. I have individuals pages made out for it. If you wouldn't mind having a shot at coding this, i would be very grateful for it. Regards, James (Sorry if the above sentences made no sense, I only woke up about an hour ago )
  7. What I was trying to do was to store the language the user selected on his first visit to the website (by clicking on a flag) so on his next visit their browser will automatically redirect them to their selected language. I found a JavaScript code that stores the language you have selected in a cookie. Unfortunately at the time I though you could only do this with JavaScript and I had no idea you could so it with php. So you guys are saying that I can do it with php and if so would this information http://www.w3schools.com/php/php_cookies.asp be useful? Thanks Guys, James
  8. Thats an amazing video!
  9. You just opened another va about a week ago: http://forum.phpvms.net/topic/5211-martinair-virtual/
  10. Sorry if this is taking a while, This is the first time I have attempted something like this.
  11. I have made a basic module of this which shows the information in admin panel etc.. When I sort out one or two problems I have with it, I can share it. James
  12. Woot, thanks guys
  13. Mine is still not showing the map (http://www.flyaerova...rport?icao=CYYZ excuse the layout) EDIT: Mark beat me to it.
  14. Thanks Stuart
  15. Can I get to 30+ Rep?

    1. Kyle
    2. James142

      James142

      Thanks :) +1 (in another post)

  16. Thanks, but they are showing how long is left? Is it possible to show how long the flight that a pilot is flying? For example: Pilot john is flying flight no VMS001 which is EIDW - EGLL and a total distance of 243nm In the acars map I want it to show that his flight is 243nm long..
  17. Yeah but it doesn't give the code for displaying the total flight time?
  18. Hello Everyone Does anyone know how to display the total distance of a route a pilot is flying in the acars map? Kindest Regards, James
  19. Your header images are from http://www.phoenixva.org.. You can see the start of each persons name in your header images on the bottom-right..
  20. Thanks Harry I am re-coding the site on localhost for Ie as it is messed up when viewed with it, so hopefully I can take your advice on board when I have finished that. Kindest Regards.
  21. The same thing happens to me. Until the pilot sends a flight report,it will show up with that date. Have a look here: http://forum.phpvms.net/topic/4970-pilot-joined-and-last-login-date/page__p__33272__hl__1969__fromsearch__1#entry33272
  22. Hold on, if you are using the second code, you should replace it with this: <?php $totaldays = Config::Get('PILOT_INACTIVE_TIME'); { ?> <?php if ($userinfo->lastpirep == '0000-00-00 00:00:00') { echo 'You have not flown any flights yet!'; } else { $datebefore1 = substr($userinfo->lastpirep, 0, 10); $datetoday2 = date("Y-m-d"); $datebefore3 = strtotime($datebefore1); $datetoday4 = strtotime($datetoday2); $newdate = $datetoday4-$datebefore3; $lastpirep = floor($newdate/(60*60*24)); $daysleft = $totaldays-$lastpirep; echo 'Your last flight was '; if ($lastpirep == 0) { echo 'today'; } else if ($lastpirep == 1) { echo 'yesterday'; } else { echo $lastpirep . ' day(s) ago.'; } echo '&nbspYou have '; if ($daysleft == 0) { echo 'You have being marked as a retired pilot!'; } else { echo $daysleft . '&nbspdays left until you are marked as retired'; } } ?><?php } ?> Otherwise it will show: You have -[X] (a minus number) days left until you are marked as a retired pilot when they are retired. If you are using the first code however, this doesn't matter
  23. Have a look here: http://forum.phpvms.net/page/index.html?record=25 That should show you how to create a module. Regards
×
×
  • Create New...