Jump to content

Strider

Members
  • Posts

    1816
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by Strider

  1. 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.
  2. 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.
  3. 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.
  4. 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,
  5. 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);?>
  6. 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.
  7. I had it working great, now when I go to generate a brief, I can only download to pdf, nothing else.
  8. 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.
  9. I have tried the code, and it does not work. It needs some tweaking to find a piece of code that does.
  10. Still a problem, it says incorrect aircraft.
  11. I am having another problem now, the button that says generate simbrief, does nothing, nothing loads or anything.
  12. That is a very nice looking custom design.
  13. 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.
  14. Well first the $pilotid should be: $pilot->pilotid
  15. Iarnrod eireann can stuff themselves. Too few trains to bray on the day of the air show

  16. Same is happening to me, I have php version 5.3.21
  17. 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); }
  18. 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.

  19. 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.
  20. If you get IPS you can do that. You can integrate IPS with phpvms.
  21. 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.
  22. You should just upgrade your hosting, as deleting pireps is only a temporary solution.
  23. This should have been posted in the support forum, not the releases forum, as the releases forum is for modules being released
  24. Then your average flight speed is way off, as you wont be flying at 500kts or rarely in a 737 or a E195.
×
×
  • Create New...