Jump to content

flyalaska

Members
  • Posts

    1941
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by flyalaska

  1. The code you got from that link was posted in 2012, Most likely outdated, perhaps the reason for your issues.
  2. I pasted your original code on my site. With the exception of the table being full screen(easy fix) , your code works on my site as it should.
  3. Weird, that came off my site. That is what I am using.
  4. Try this <?php echo $pirep->aircraft . " ($pirep->registration)"; ?>
  5. Are you referring to last flights per pilot?
  6. Try this! Just edit the button class to your own if you don't have Bootstrap 4. <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table class="table table-striped mt30" width="100%" cellspacing="0"> <tr> <th>Flight</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>Landing</th> <th>Status</th> </tr> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); echo '<tr>'; echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td>'.$pirep->aircraft.'</td>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td>'.$pirep->landingrate.' ft/m</td>'; if($pirep->accepted == PIREP_ACCEPTED) echo '<td><button type="button" class="btn btn-outline btn-success btn-xs mb-2">Flight Approved</button></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><button type="button" class="btn btn-outline btn-danger btn-xs mb-2">Flight Rejected</button></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">Approval Pending</button></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td><button type="button" class="btn btn-outline btn-primary btn-xs mb-2">On Progress</button></td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </table> <div class="clear"></div> <div class="clear"></div>
  7. You dont have any data in touchdown stats. Make a manaul pirep and edit the table to add a negative landing or edit a existing PIREP.
  8. Try taking off the <?php right above the if($report->accepted == PIREP_ACCEPTED)
  9. What does line 78 show?
  10. What php version are you on?
  11. flyalaska

    phpVMS7 Support

    Most likely wont now
  12. Yes, use the iframe option and paste it where you want it on fronpage_main.tpl.
  13. I just have the last flight date. <?php echo date('m/d/Y', strtotime($userinfo->lastpirep));?>
  14. Is your IPB license current? They have a strong spam block with IPB, need to have the license current.I would get spam all the time when I let mine go for a bit.
  15. flyalaska

    blueIce

    Glad you got the dimensions fixed. You have another issue with google maps. Not your fault. Google put the screws to everyone last summer. You either have to put a credit card on file, or get a new map.
  16. flyalaska

    blueIce

    You need to change the map dimensions. Go in local.config and change the map width.The readme states the dimensions needed.
  17. Look on the VABase forums. This is for phpVMS.
  18. VPS from Knownhost - https://www.knownhost.com/ I have been with Knownhost for a few years now. Any issues that I have had gets answered within a few minutes. For shared hosting I would go with FiveDev - http://www.fivedev.net/hosting
  19. I didn't notice the full url until now. Replace <a href="http://pacificair-virtual.com/index.php/Join"><strong>Join Today!</strong></a> with <a href="<?php echo url('/Join'); ?>"><strong>Join Today!</strong></a>
  20. The Closed is commented out. If you are just going to have your applications closed. Just take the tags off and place then on the open. <!-- and //-->
  21. did you upload the ela folder to the skins directory? Or did you just create the folder?
  22. flyalaska

    XACARS

    kACARS will work with phpVMS once there is a stable release and after Jeff updates it to v7.
  23. If needed again, click on the edit button on the original post. The title field will be editable.
  24. Its stating that public_html/crew/core/modules/Registration/Registration.php doesnt exist. Make sure you have a Registration.php in modules/Registration/
×
×
  • Create New...