Jump to content

servetas

Moderators
  • Posts

    1726
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by servetas

  1. It seems that something is happening with your phpVMS. It is not locical to have this kind of errors even with 10+ pilots flying during the same time.
  2. Read the error. It says clearly the it can't connect with your MySQL database. Check your database details.
  3. Which url are you trying to access? Personally, i do not have any problem accessing it at fs-products.net.
  4. It can be done through your admin center->Airline Operations->Add & Edit Airlines.
  5. Thank you very much for your kind words. Unfortunately there is not any function for anything like this. I might add it on the future. George
  6. This has not to be with the fuel cost. Check your flight simulator or your acars system:
  7. Unfortunately this has to do with xacars. You will have to try to get in touch with the developers of this acars in order to request from them something like this. Although as i can see they have stopped offering support...
  8. I do not think that you will have any problem with it.
  9. You can use the pirep_filed phpVMS event and check if there is a schedule with the same departure and arrival airports. If not, you can run a query in order to create the schedule on your system. Currently, there is not any option for this but it is not too difficult to be done.
  10. The function the file is calling does not return the data correctly. Open your PIREPData.class.php file and add this function: static function pilot_last_pirep($pilotid) { $sql = "SELECT * FROM ".TABLE_PREFIX."pireps WHERE pilotid='$pilotid' AND accepted='1' ORDER BY pirepid DESC LIMIT 1"; return DB::get_row($sql); } after that, update the schedule_results.tpl with this part of code: <head> <script type="text/javascript" src="http://www.greeceairwaysva.com/fss/lib/js/jquery.tablesorter.js"></script> <script type="text/javascript" src="http://www.greeceairwaysva.com/fss/lib/js/jquery.tablesorter.pager.js"></script> </head> <h3>Schedule Listing</h3> <center><img src="http://www.greeceairwaysva.com/fss/lib/skins/greece_v2/images/attention.png" width="25" height="25" /> All the information such as aircraft, route, departure and arrival times and/or flight level are not required to be followed. <img src="http://www.greeceairwaysva.com/fss/lib/skins/greece_v2/images/attention.png" width="25" height="25" /></center><br /> <?php if(!$allroutes) { echo '<p align="center">No routes have been found!</p>'; return; } ?> <table class="ocean_table"width="100%" border="0" cellspacing="0" cellpadding="0"> <thead> <tr> <th>Flight Info</th> <th>Options</th> </tr> </thead> <tbody> <?php $reports = PIREPData::pilot_last_pirep(Auth::$userinfo->pilotid); // return only one foreach($allroutes as $route) { /* Uncomment this code if you want only schedules which are from the last PIREP that pilot filed */ if(Auth::LoggedIn()) { if($reports) { if($reports->arricao <> $route->depicao) { continue; } } } /* Skip over a route if it's not for this day of week Left this here, so it can be omitted if your VA doesn't use this. Comment out these two lines if you don't want to. */ /* Check if a 7 is being used for Sunday, since PHP thinks 0 is Sunday */ $route->daysofweek = str_replace('7', '0', $route->daysofweek); if(strpos($route->daysofweek, date('w')) === false) continue; /* END DAY OF WEEK CHECK */ /* This will skip over a schedule if it's been bid on This only runs if the below setting is enabled If you don't want it to skip, then comment out this code below by adding // in front of each line until the END DISABLE SCHEDULE comment below If you do that, and want to show some text when it's been bid on, see the comment below */ if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { continue; } /* END DISABLE SCHEDULE ON BID */ /* Skip any schedules which have aircraft that the pilot is not rated to fly (according to RANK), only skip them if they are logged in. */ if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { /* This means the aircraft rank level is higher than what the pilot's ranklevel, so just do "continue" and move onto the next route in the list */ if($route->aircraftlevel > Auth::$userinfo->ranklevel) { continue; } } /* THIS BEGINS ONE TABLE ROW */ ?> <tr> <td> <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?> <?php echo '('.$route->depicao.' - '.$route->arricao.')'?> </a> <br /> Departure:<?php echo $route->deptime;?> Arrival: <?php echo $route->arrtime;?><br /> Equipment: <?php echo $route->aircraft; ?> (<?php echo $route->registration;?>) Distance: <?php echo $route->distance . Config::Get('UNITS');?> <br /> Days Flown: <?php echo Util::GetDaysCompact($route->daysofweek); ?><br /> <?php echo ($route->route=='') ? '' : '<strong>Route: </strong>'.$route->route.'<br />' ?> <?php echo ($route->notes=='') ? '' : '<strong>Notes: </strong>'.html_entity_decode($route->notes).'<br />' ?> <?php # Note: this will only show if the above code to # skip the schedule is commented out if($route->bidid != 0) { echo 'This route has been bid on'; } ?> </td> <td nowrap> <a href="<?php echo url('/schedules/details/'.$route->id);?>">View Details</a><br /> <a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a><br /> <?php # Don't allow overlapping bids and a bid exists if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid');?>">Book the Flight</a> <?php } else { if(Auth::LoggedIn()) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Book the Flight</a> <?php } } ?> </td> </tr> <?php /* END OF ONE TABLE ROW */ } ?> </tbody> </table> <!-- <hr> --> I have not tested it but it should be ok... Κaλό σου bÏάδυ!
  11. I can say that your logo looks pretty good. By the way, pay attention announcing domains in public forums before you register them although as i can see gocal.com has been registered since 1997-11-15...
  12. If you are not using your own server, you will have to get in touch with your web hosting provider.
  13. It has come up inside this thread. Search and you will find a solution.
  14. Search the forum. It has come up quite a lot during the past. This will save your time and our time too.
  15. Only the above. There is no need to set anything on your forum settings although i would suggest to disable the registrations on your forum in order to avoid any confusion.
  16. One of my clients had that problem too. It started happening after his web hosting provider did some updates on his server. The problem did not occur on my localhost and live server. I devoted a lot of hours in order to find what caused the problem without any success. Personally, i suspect that it has to do with the mysql server version.
  17. So that's the case. The variable that is used on the foreach does not include any data (there are not any reports on your system) and that's why it returns an error. You can add the foreach inside an if statement if you wish to remove the error. Of course, the error will disapear as soon as someone sends a flight on your system.
  18. servetas

    OceanBlue

    Are you sure that you are using the code you pasted above on your website? As i can see, you are using this: <li><a href="http://liftaircargo.com/web/index.php/Pilots">Pilotos</a></li> <ul> <li><a href="http://liftaircargo.com/web/index.php/Pilots">Lista de pilotos</a></li> <li><a href="http://liftaircargo.com/web/index.php/rank" title="Ranks">Rangos</a></li> <li><a href="http://liftaircargo.com/web/index.php/awards" title="Awards">Medallas</a></li> </ul> Use this instead of the above one and your problem will be solved: <li><a href="#">Pilotos</a> <ul> <li><a href="http://liftaircargo.com/web/index.php/Pilots">Lista de pilotos</a></li> <li><a href="http://liftaircargo.com/web/index.php/rank" title="Ranks">Rangos</a></li> <li><a href="http://liftaircargo.com/web/index.php/awards" title="Awards">Medallas</a></li> </ul> </li>
  19. What is your website url? The errors means that the variable which is called from the foreach does not have any data. Have your pilots sent any flights on your virtual airline using acars?
  20. This module does not have any template file cause it is not accessible to your pilots. It just works in the background and registers, the pilots who register on your phpVMS website, to your SMF forum too.
  21. One choise will be to add the "lost" hours to the pilot's transfered hours. Then your system will count the transfered hours + each pirep's flight time.
  22. Happy new year to all of you.
  23. There should be a problem with the schedule_bids.tpl template file. If you do not send us your website, we are not able to help you...
  24. As soon as you deactivate a pilot, you can remove them from the active pilots group too. As soon as you do that, you will be able to select the "Active Pilots" and the email will be sent to those who will be really active. The massmailer function works with the current phpvms groups. Alternatively, you are able to develop a module which will send emails only do the active pilots based on their profile setting.
×
×
  • Create New...