Jump to content

Strider

Members
  • Posts

    1821
  • Joined

  • Last visited

  • Days Won

    53

Everything posted by Strider

  1. The schedid is the id of the flight in the database, it is not the flight number.
  2. redownload it, I think it could have gotten corrupted.
  3. you need to be in phpmyadmin, go into the db where your phpvms installation is, and click on import
  4. I am waiting on Bank of Ireland to fix this c**k up they have had so I can get paid.

  5. Wouldn't it be nice if you put powerd by: phpvms in the footer as well. Give Nabeel the credit he deserves for creating such a good piece of code for the VA world. One thing I would say about the design, I find the nav quite difficult to navigate around. Also try to put some code in that hides links to pages that you need to be registered to view. It can be quite off putting to see error messages saying you have to be logged in. But good luck with your VA.
  6. You need to add the pilot id into the sql, otherwise it is doing nothing with the pilot id. The where clause has to be ammended. I am working on it, not found the code that works yet.
  7. You get the google analytics code and place it in the header section in the layout.tpl file. Most tell you where to put the code they use.
  8. With the same route, on simbrief's site, I can download to any format, but on the module you created it wont let me download to anything else but pdf. The route: OMAA-WMKK. So it should give me more options then just download to pdf,
  9. I have added this to StatsData.class and had to make a small change but not major: In StatsData.class.php: public function getTotalPassengersPilot($pilotid) { $query = "SELECT SUM(`load`) AS passengers FROM ".TABLE_PREFIX."pireps WHERE pilotid = $pilotid AND accepted = 1"; $result = DB::get_row($query); if (!$result) return 0; return ($result->passengers == '') ? 0 : $result->passengers; } In your pilots_list or pilot_public_profile.tpl: <?php echo StatsData::getTotalPassengersPilot($userinfo->pilotid);?>
  10. It seems to work fine for legs departing wmkk, but returning it doesn't. Also you can put it in the layout.tpl. that is not the problem, as unless stated code is not selective.
  11. I had it working great, now when I go to generate a brief, I can only download to pdf, nothing else.
  12. In the schedule_briefing.tpl for the button where it says onclick and to put your full web address put this code: <?php echo SITE_URL?>/index.php/Simbrief It means you dont have to go in to make that change, it will already be there.
  13. I have tried the code, and it does not work. It needs some tweaking to find a piece of code that does.
  14. Still a problem, it says incorrect aircraft.
  15. I am having another problem now, the button that says generate simbrief, does nothing, nothing loads or anything.
  16. That is a very nice looking custom design.
  17. Did you go into settings and make the va profile you created the one used? The VA profile thing only creates the profile, you have to edit the settings to make it work with your VA.
  18. Well first the $pilotid should be: $pilot->pilotid
  19. Iarnrod eireann can stuff themselves. Too few trains to bray on the day of the air show

  20. Same is happening to me, I have php version 5.3.21
  21. I found the problem, and have fixed it. From line 30 to 46 in the CodeShareData.class.php file replace the code with the following: public function save_new_codeshare($schedid, $airline, $image) { $query = "INSERT INTO phpvms_codeshares (schedid, airline, image) VALUES ('$schedid', '$airline', '$image')"; DB::query($query); } public function save_edit_codeshare($schedid, $airline, $image, $id) { $query = "UPDATE phpvms_codeshares SET schedid='$schedid', airline='$airline', image= '$image', WHERE id='$id'"; DB::query($query); }
  22. The s*** in Ukraine has got to stop, it has now cost the lives of 295 people who had absolutely nothing to do with their problems.

  23. You would want to add those sql calls to a separate php file such as the statsdata file and call them in the vstats.tpl file.
  24. If you get IPS you can do that. You can integrate IPS with phpvms.
  25. Yes, the progress bar will cause the acars map to stop working because it does not see that KSFO-KSFO is a flight, so it cant give the percentage of how long is left. Better to just not do flights to the same airport you took off from.
×
×
  • Create New...