Jump to content

web541

Members
  • Content count

    554
  • Joined

  • Last visited

  • Days Won

    37

web541 last won the day on December 10

web541 had the most liked content!

Community Reputation

52 Excellent

About web541

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling
  1. Pre-Alpha testing

    I'll assume you're using shared hosting? The Homestead, Composer, etc. stuff are really useful tools for downloading and updating dependencies on a local environment, in this case specifically Laravel (and in some cases, dedicated hosting/VPS systems). For this to work on shared hosting, there are a few more steps needed, one of which is for Nabeel to include the /vendor folder (as you can't install composer on shared hosting). Another is actually pointing your hosting to the correct installation folder. There is no dedicated "install" folder (as of yet) as the entire app is the entire folder downloaded from Github. Takes some time, but it's doable. I suggest waiting for Nabeel's reply though.
  2. Embed php inside HTML

    Maybe this? <h1 class="counter-title counter-num"><?php echo StatsData::PilotCount(); ?></h1>
  3. See if this works Find this on line 37 <?php foreach($pireps as $pirep) { Replace it with this (deprecated function, but it works) <?php foreach($pireps as $pirep) { $schedule = SchedulesData::getScheduleByFlight($pirep->code, $pirep->flightnum); Find this <strong>Flight Time: </strong><?php echo $pirep->flighttime; ?> <br /> Now the $schedule variable should be activated, so you should be able to read it like this <strong>Actual Flight Time: </strong><?php echo $pirep->flighttime; ?> <br /> <strong>Scheduled Flight Time: </strong><?php echo $schedule->flighttime; ?> <br /> <strong>Scheduled Aircraft: </strong><?php echo $schedule->aircraft; ?> <br /> <strong>Scheduled Flight Level: </strong><?php echo $schedule->flightlevel; ?> <br />
  4. Map Markers

    Try this <script type="text/javascript"> <?php $allhubs = OperationsData::getAllHubs(); foreach($allhubs as $hub) { ?> var hubLatLng = {lat: <?php echo $hub->lat; ?>, lng: <?php echo $hub->lng; ?> }; var marker = new google.maps.Marker({ position: hubLatLng, map: map, title: "<?php echo $hub->icao; ?>" + " - " + "<?php echo $hub->name; ?>" }); <?php } ?> </script> Put it in acarsmap.php at the very end of the file. You can't mix javascript and PHP like you have done as it will fail to work.
  5. shared hosting installation

    If you can't do it from cPanel, you could possibly do it from a PHP script (just looking at their manual) http://php.net/manual/en/function.symlink.php
  6. FltbookSystem issue

    ah ok I see the issue, you're using bootstrap version 1.4.0a and my module uses 1.3.7 (I think) so you would have to convert the templating over. First, change the links above back to what they were (only the js one, leave the css one out). Once the HTML shows back up, report back here.
  7. FltbookSystem issue

    In search_results.php, try removing <link rel="stylesheet" href="http://crew.silverwingsva.com/lib/skins/crewcenter/app-assets/css/bootstrap.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> And in layout.php, try replacing this <script src="http://crew.silverwingsva.com/lib/skins/crewcenter/app-assets/js/core/libraries/bootstrap.min.js" type="text/javascript"></script> With this <script type="text/javascript" src="<?php echo SITE_URL; ?>/lib/js/bootstrap.js"></script> and see what happens. From what I can see, it's a bootstrap conflict issue.
  8. FltbookSystem issue

    Do you have a website url?
  9. FltbookSystem issue

    Anything in your browser console?
  10. [SOLVED] Route Map on BID layout

    You should have something in your core_htmlhead.php or layout.php file, because otherwise all maps on your site won't work (including ACARS). https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/templates/core_htmlhead.php#L35 And "Google Maps API warning: NoApiKeys" tells me that you have not included your API key in the reference so you should check here how to properly add it
  11. [SOLVED] Route Map on BID layout

    Don't put this here <script async defer src="https://maps.googleapis.com/maps/api/js?key=MYKEY&callback=initMap"></script> It should already be in your core_htmlhead.php and will cause errors if it's added twice. If removing that doesn't work, check the browser console for errors.
  12. FltbookSystem issue

    So it opens, but it closes immediately before you see anything (small white flash)? Are you using phpVMS 5.5.x & fltbook version 2? Also, are you using bootstrap in your skin? If so, try replacing this line https://github.com/web541/phpVMS-FltbookSystem-v2/blob/master/core/templates/fltbook/search_results.php#L38 with this <script type="text/javascript> // Clear Modal On Hide // =================== // no cache data loaded to modal popup (by default it's cached) $('body').on('hidden.bs.modal', '.modal', function (event) { $(this).removeData('bs.modal'); }); </script> Only that one. Sometimes there are conflicts if you are already using bootstrap in your site.
  13. [SOLVED] Route Map on BID layout

    Do you want to use Google Maps or something else? What code do you have for the bidding and are the variables going to give us enough data to produce this? (e.g. latitude and longitude of departure airport, arrival airport, each waypoint and aircraft location)
  14. Monthly Hub Stats(Solved)

    Haven't tried it so it might not work, but you can have a go at this. public static function TotalHoursBetweenDates($icao, $startdate, $enddate) { //Count total hours $query = "SELECT SUM(flighttime) as hours FROM phpvms_pireps WHERE depicao = '$icao' OR arricao = '$icao' AND (submitdate BETWEEN '$startdate' AND '$enddate')"; $result = DB::get_row($query); return $result->hours; }
  15. Aircraft table - minrank ranklevel

    minrank is indeed used for schedules, etc. to restrict the pilot's minimum rank to that rank in the table if it's implemented correctly. ranklevel I believe is the same thing (number), but it works differently on the backend. In the default schedules (in phpVMS 5.5.2), it should work as advertised provided in your local.config.php, this is set Config::Set('RESTRICT_AIRCRAFT_RANKS', true); In the front schedules module, I don't think it takes this in by default, so you'd have to modify the module in order to check this. Right now, I believe it's just spitting out any schedule within parameters in the form.
×