Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. Can you try this ? <?php <div class="col-md-12 page-content"> <h2>Live Flights</h2> <div class="stats-table"> <table> <tr> <th>Pilot</th> <th>Flight</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Status</th> </tr> <?php $results = ACARSData::GetACARSData(); if (count($results) > 0) { foreach($results as $flight) { ?> <tr> <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <?php if($flight->phasedetail == "Boarding") { echo "<img style='padding-left:3px;' src=''>"; } elseif($flight->phasedetail == "Arrived") { echo "<img style='padding-left:3px;' src=''>"; } elseif($flight->phasedetail == "On Approach") { echo "<img style='padding-left:3px;' src=''>"; } ?> <?php foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); } ?> <td><?php echo'<a href="'.SITE_URL.'/index.php/profile/view/'.$flight->pilotid.'">'.$flight->pilotname.' '.$flight->lastname.'</a>';?></td> <td><?php echo $flight->flightnum;?></td> <td><?php echo $flight->depname;?></td> <td><?php echo $flight->arrname;?></td> <td><?php echo $flight->aircraftname;?></td> <td><?php if($flight->phasedetail != 'Paused') { echo $flight->phasedetail; } else { echo "Cruise"; }?></font></td> </tr> <?php } } else { ?> <tr><td width="20%" align="center" colspan="6" style="padding: 5px; font-size: 13px; font-weight: bold; color: #3399FF;">No Flights in Progress!</td></tr> <?php } ?> </table> </div> </div> ?>
  2. As far as i know there is no such function i personal use a switch with post or get depending on the need for this usage
  3. Vacentral has some isuses from time to time try again later
  4. No as they are 2 total different cms
  5. You need to contact your hosting company to enable the allow_url_fopen or if you have a setting that you can change in cpanel
  6. That means that somewhere you forgot to add your webpage address reread the instructions and you will have to correct your airplane type as AT76 is not a correct airplane type as simbrief supports only AT72 airplane
  7. it is <?php echo $pirep->flighttime ;?> For pirep_viewreport.tpl
  8. Vangelis

    JAJ virtual

    You realize that this post is half a year old and I do not understand what you mean by dissolved and it is so urgent to fill all the forum with the same message
  9. This is a kinda sloppy fix but it will do the trick run this code in phpadmin ALTER TABLE `phpvms_pireps` CHANGE `price` `price` FLOAT NOT NULL DEFAULT '100'
  10. just to confirm do you have a price ticket in all your schedules ? if not the you have to put a price
  11. turn debug on and let as see the log please
  12. 2 members of this forum are in the video gues who
  13. Vangelis

    For help

    Hello As far as i know smartacars does not provide custom layout there are other solutions out there such as custom apvacars or kacars And for some reason i am not able to see the attachment
  14. Go to your mysql database via phpmyadmin select table phpvms_groupmembers change the lines where pilot id is 1 to 101
  15. What was your old id and what is your new id ?
  16. Not Something didn't upload well reupload and you should be fine
  17. try putting these settings in your local.config # Email Settings Config::Set('EMAIL_FROM_NAME', 'Name to be displayed'); Config::Set('EMAIL_FROM_ADDRESS', 'from@email.com'); Config::Set('EMAIL_USE_SMTP', true); # Add multiple SMTP servers by separating them with ; Config::Set('EMAIL_SMTP_SERVERS', 'yourmailserver'); Config::Set('EMAIL_SMTP_PORT', '25'); Config::Set('EMAIL_SMTP_USE_AUTH', false); Config::Set('EMAIL_SMTP_USER', 'fullusernameofemail'); Config::Set('EMAIL_SMTP_PASS', 'passwordofemail');
  18. The files in core/modules wont get overwriten during an update
  19. You haven't mentioned 1 php version 2 what is the link of your site 3 who is your hosting company Then we might be able to help
  20. the corect link to call a module is <li><a href="<?php echo url('/Vatspy'); ?>">Vatspy</a></li> And i would loose the "-" in the template name
  21. What is you website link ?
  22. You will create and save the template as a normal html project and then you will follow the process of converting the html to phpvms template
  23. Something did not upload cortctly retry to upload the specific file /cc_vaskin_01S/header.tpl
  24. Replace public function index() { // Get all of our hubs, and list pilots by hub $allhubs = OperationsData::GetAllHubs(); if(!$allhubs) $allhubs = array(); foreach($allhubs as $hub) { $this->set('title', $hub->name); $this->set('icao', $hub->icao); $this->set('allpilots', PilotData::findPilots(array('p.hub'=>$hub->icao))); $this->render('pilots_list.tpl'); } $nohub = PilotData::findPilots(array('p.hub'=>'')); if(!$nohub) { return; } $this->set('title', 'No Hub'); $this->set('icao', ''); $this->set('allpilots', $nohub); $this->render('pilots_list.tpl'); } With public function index() { $this->set('allpilots', PilotData::getAllpilots()); $this->render('pilots_list.tpl'); } In /core/modules/Pilots/Pilots.php
  25. New Version including the full name of the aircraft Do not forget to put your email and website address in core\modules\RouteSubmit\RouteSubmit.php core.zip
×
×
  • Create New...