Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Today
  3. Benchmark Landing Rate

    Why/where do you want to set it? Do you want to give the awards and penalties automatically according to the landing rate?
  4. Yesterday
  5. [Free] FlightAware Schedule Puller

    So how would you make a cron job to run it? Sorry just not experienced in coding. Also, how long would you think this would be released as a finished product?
  6. [Free] FlightAware Schedule Puller

    Hey, this project is not finished, so currently it only pulls the data and stores them into a csv file (you can make a cron job to run it). The end project is finished, I have it running right now collecting flight info and saving them in a database, but I need to fully test it for about a week before I release it into the open
  7. Benchmark Landing Rate

    Is there any way to set a benchmark landing rate for an individual flight in PHPVMS 2.5.x? I would like to be able to compare the landing rates of pilots with a pre-entered "optimal" figure, so they can receive rewards for lower rates and penalties for higher rates.
  8. Pilot ID in admin pilot list [SOLVED]

    It worked perfectely! Thank you so much!
  9. [Free] FlightAware Schedule Puller

    Hey @RamiAbouZahra, I am having trouble knowing what to do because I am not really a coder. If you could help me out that would be great! I already changed the two inputs for the Airline Code at the top to QTR and have inputted my FlightAware info into the $apiUserID and $apiKey but I don't know what to do next. Thanks, Brent
  10. Live Map iFrame Not Working

    Suggest going to the Admin CP, and copy the text/script into a created page via "Add Page" in the admin panel, from the acars.php file. Name the page anything you'd like, (example; Myacars or SiteAcars ). this creates a formatted page in htm or html depending on how you have config files setup from the core. From there you can embed the created page you have created in the Main layout.php file or the frontpage_main.php file with the <iframe> script. As mentioned above, you Can't cross reference directly the framing from the actual script. This is the ONLY way to do so. And remember one Major important thing in messing with any Main scripts. ALWAYS make a backup COPY ! Hope this helps you. Jim
  11. Pilot ID in admin pilot list [SOLVED]

    In that case you will have to make a couple of changes. First of all, open your admin/modules/PilotAdmin/PilotAdmin.php file and find this: foreach($allpilots as $row) { $status = ($row->retired==0) ? 'Active' : 'Retired'; $location = '<img src="'.Countries::getCountryImage($row->location).'" alt="'.$row->location.'" />'; $edit = '<a href="'.adminurl('/pilotadmin/viewpilots?action=viewoptions&pilotid='.$row->pilotid).'">Edit</a>'; $tmp = array( 'id' => $row->id, 'cell' => array( # Each column, in order $row->id, $row->firstname, $row->lastname, $row->email, $location, $status, $row->rank, $row->totalflights, $row->totalhours, $row->lastip, $edit, ), ); $json['rows'][] = $tmp; } And replace it with this: foreach($allpilots as $row) { $pilotid = PilotData::getPilotCode($row->code, $row->pilotid); $status = ($row->retired==0) ? 'Active' : 'Retired'; $location = '<img src="'.Countries::getCountryImage($row->location).'" alt="'.$row->location.'" />'; $edit = '<a href="'.adminurl('/pilotadmin/viewpilots?action=viewoptions&pilotid='.$row->pilotid).'">Edit</a>'; $tmp = array( 'id' => $row->id, 'cell' => array( # Each column, in order $row->id, $pilotid, $row->firstname, $row->lastname, $row->email, $location, $status, $row->rank, $row->totalflights, $row->totalhours, $row->lastip, $edit, ), ); $json['rows'][] = $tmp; } Then open your admin/templates/pilots_list.tpl, find this: $("#grid").jqGrid({ url: '<?php echo adminaction('/pilotadmin/getpilotsjson');?>', datatype: 'json', mtype: 'GET', colNames: ['','First', 'Last', 'Email', 'Location', 'Status', 'Rank', 'Flights', 'Hours', 'IP', 'Edit'], colModel : [ {index: 'id', name: 'id', hidden: true, search: false }, {index: 'firstname', name : 'firstname',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}}, {index: 'lastname', name : 'lastname', sortable : true, align: 'left', searchoptions:{sopt:['in']}}, {index: 'email', name : 'email', sortable : true, align: 'left',searchoptions:{sopt:['li']}}, {index: 'location', name : 'location', sortable : true, align: 'center',searchoptions:{sopt:['eq','ne']}}, {index: 'status', name : 'status', sortable : true, align: 'center',searchoptions:{sopt:['in']}}, {index: 'rank', name : 'rank', sortable : true, align: 'center', searchoptions:{sopt:['eq','ne']}}, {index: 'totalflights', name : 'totalflights', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'totalhours', name : 'totalhours', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'lastip', name : 'lastip', sortable : true, align: 'center', searchoptions:{sopt:['in']}}, {index: '', name : '', sortable : true, align: 'center', search: false} ], pager: '#pager', rowNum: 25, sortname: 'lastname', sortorder: 'asc', viewrecords: true, autowidth: true, height: '100%' }); and replace it with this: $("#grid").jqGrid({ url: '<?php echo adminaction('/pilotadmin/getpilotsjson');?>', datatype: 'json', mtype: 'GET', colNames: ['','Pilot ID', 'First', 'Last', 'Email', 'Location', 'Status', 'Rank', 'Flights', 'Hours', 'IP', 'Edit'], colModel : [ {index: 'id', name: 'id', hidden: true, search: false }, {index: 'pilotid', name : 'pilotid',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}}, {index: 'firstname', name : 'firstname',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}}, {index: 'lastname', name : 'lastname', sortable : true, align: 'left', searchoptions:{sopt:['in']}}, {index: 'email', name : 'email', sortable : true, align: 'left',searchoptions:{sopt:['li']}}, {index: 'location', name : 'location', sortable : true, align: 'center',searchoptions:{sopt:['eq','ne']}}, {index: 'status', name : 'status', sortable : true, align: 'center',searchoptions:{sopt:['in']}}, {index: 'rank', name : 'rank', sortable : true, align: 'center', searchoptions:{sopt:['eq','ne']}}, {index: 'totalflights', name : 'totalflights', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'totalhours', name : 'totalhours', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'lastip', name : 'lastip', sortable : true, align: 'center', searchoptions:{sopt:['in']}}, {index: '', name : '', sortable : true, align: 'center', search: false} ], pager: '#pager', rowNum: 25, sortname: 'lastname', sortorder: 'asc', viewrecords: true, autowidth: true, height: '100%' }); Do not forget to keep a backup of the files that you should edit to ensure that you will be able to "come back" in case something breaks out.
  12. Custom Email

    edit email_registrationaccepted.php. Its in your core/templates folder. Put it in your skins folder after you edit it.
  13. Custom Email

    Does anyone know how I could go about customizing the email notifications from my airline (registration, acceptance, etc.)? I want them to look more professional and unique.
  14. Last week
  15. Pilot ID in admin pilot list [SOLVED]

    Hi Servetas, I am using V2.
  16. Pilot ID in admin pilot list [SOLVED]

    First of all, which phpVMS version are you using? v2 or v5? As far as I know, v5 already includes that. Please let us know and we should be able to give you the most practical solution.
  17. Live Map iFrame Not Working

    I checked the console log and I can see that error: Load denied by X-Frame-Options: http://fsxccvirtual.com/index.php/acars does not permit cross-origin framing. Check this for more information: https://stackoverflow.com/questions/38699221/load-denied-by-x-frame-options-does-not-permit-framing I believe that it has to do with your web hosting provider's settings.
  18. Live Map iFrame Not Working

    panamvirtual.org/live-map.html
  19. Hello, I need to know if there's any piece of code in order to add the pilot ID column in the admin pilot list. Thank you!
  20. ObsessBlue 2.0

    Bump! Does anyone has a copy of this in their archives?
  21. Schedule export problem [SOLVED]

    That seems to have solved it, by replacing the line of code in import.php. There were other columns that had spaces added everytime on export but all seems ok now. Thanks for the help
  22. Live Map iFrame Not Working

    What is the page that you have added the iframe?
  23. Blue Ice Skin

    I would recommend you would post this in the blueIce skin thread at the top of the Releases category so the developer of the skin would see it.
  24. Live Map iFrame Not Working

    Hi, This may be a dumb question (and I'm really new to code') but how would I go about using an iFrame to display my live map on an external page? I tried using this: <iframe id="mymap" name="mymap" src="http://crew.panamvirtual.org/index.php/acars" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="650px" scrolling="no"></iframe> But when I tried to load the page, the spot where it was supposed to be was just blank. Any suggestions?
  25. i would be interested if we could base on contract and payment plan
  26. blueIce

    Also i was trying to install kacars to do a flight but also cant get it to load. My plan is to customize this template and then when operational migrate database Is it possible to copy my existing database to this template so I have flights and pilots to work with Thanks again for the assistance
  27. blueIce

    xml = simplexml_load_string($xml); Where is it that i remove VA Central. Not 110% with php but learning. We currently have another site up but updating it and impressed with the template
  28. blueIce

    Show me line 177 on front page. You don't have any landings yet. I assume thats why the error. Yes, remove VA Central. yes, this is done automatically when you upload and activate your skin.
  1. Load more activity
×