Jump to content

servetas

Moderators
  • Posts

    1726
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by servetas

  1. Why/where do you want to set it? Do you want to give the awards and penalties automatically according to the landing rate?
  2. 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.
  3. 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.
  4. 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.
  5. What is the page that you have added the iframe?
  6. I do not believe that this is the issue but can you try the following solution? Open your admin/modules/Import/Import.php, on lines 305-306 you should have something like this: $line = "{$s->code},{$s->flightnum},{$s->depicao},{$s->arricao},"."{$s->route},{$s->registration},{$s->flightlevel},{$s->distance}," . "{$s->deptime},{$s->arrtime},{$s->flighttime},{$s->notes},"."{$s->price},{$s->flighttype},{$s->daysofweek},{$s->enabled},{$s->week1},{$s->week2},{$s->week3},{$s->week4}"; As you can see, I have remove all the spaces between all the elements and especially the {$s->daysofweek}. Could you please attach your Import.php file? The most practical way is running a mysql command through phpMyAdmin as soon as you import your schedules that will automatically select all the days of the week. UPDATE phpvms_schedules SET daysofweek='0123456', week1='0123456', week2='0123456', week3='0123456', week4='0123456' WHERE 1; Just do not forget to replace "phpvms_" with your own database tables prefix if you are using a different one.
  7. Version 1.1

    818 downloads

    This module is going to show your pilot ranks and awards on phpVMS. It was developed by php-mods and it is registered under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. How to Install? Copy and upload the files same as the structure as your phpvms files. If you want to link your website's visitors/users to this module, use this: www.yoursite.com/index.php/career -or- <?php echo url('/career'); ?> Download The module has been uploaded on Github and you can download it here. We would suggest you to use the Github url as it includes all of the rest changes made to the module. Support will be offered by this forum. If you have any questions do not hesitate to contact us. PS: For those you are using Pilot Awards System (by PHP-Mods), this module needs some customization in order to work in collaboration with your module.
  8. Version 1.1

    702 downloads

    You can add rules categories and add new rules to these categories. After that you may remove the Registration for from the public and just redirect your users to this page. The user has to accept the rules in order to proceed with his registration on your virtual airline. This module was developed by php-mods and it is registered under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. How to Install? Copy and upload the files same as the structure as your phpvms files. Run R&RInstallSql - this is going to install the database tables. Delete R&RInstallSql folder. (IMPORTANT) If you want to link your website's visitors/users to this module, use this: www.yoursite.com/index.php/RuleRegs -or- <?php echo url('/RuleRegs'); ?> Download The module has been uploaded on Github and you can download it here. We would suggest you to use the Github url as it includes all of the rest changes made to the module. Support will be offered by this forum. If you have any questions do not hesitate to contact us.
  9. Version 1.1

    739 downloads

    This module is going to create a simple list (based on the default schedules list) which will include the flights which have not been flown yet but a pilot. This is based on the schedule's departure and arrival airport ICAO codes. How to Install? Download the module from the link you will find below. Copy and upload the files, same as the structure of your phpVMS website. If you want to link your VA's pilots to this module, use this part of code: www.yousite.com/index.php/NonFlownFlt -or- <?php echo url('/NonFlownFlt'); ?> Please note that this module is only accessible to the users who have logged in on your phpVMS website. Download This module has been uploaded on GitHub and it can be downloaded via here. We would suggest you to use the Github url as it includes all of the rest changes made to the module. Support Support will be offered by this forum. If you have any question/suggestion or request do not hesitate to let us know. I am not going to answer any personal messages requesting support for this module. License Registered Under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License Please do not remove the copyright notice as it is part of the Creative Commons License which module is licensed under. Have Fun!
  10. Version 1.2

    703 downloads

    Add or edit your faq categories. Show them in public and help your pilots solve their questions about your virtual airline etc. How to Install? Copy and upload the files same as the structure as your phpvms files. If you want to link your website's visitors/users to this module, use this: www.yoursite.com/index.php/FAQ -or- <?php echo url('/FAQ'); ?> More information about the module can be found here. Support will be offered by this forum. If you have any questions do not hesitate to contact us. For more information, do not hesitate to contact us.
  11. Hmmm, which phpVMS version are you using?
  12. In general it can be done but it is not that simple. It is required to make several changes to the core files of the module and of course we are not allowed to share any files within the forum.
  13. Open your admin/templates directory. What is the extension of the sidebar_dashboard file?
  14. I feel that the file is messed up. Can you attach the file so we can preview it using a code editor?
  15. Real departure/arrival list based on and ICAO code? If I remember correct, flightaware offers an API but it is payware. This means that you will have to pay for the requests made to the flightaware api. Some usefull urls: http://flightxml.flightaware.com/soap/FlightXML2/doc#op_Scheduled https://flightaware.com/commercial/flightxml/pricing_class.rvt
  16. Open your core/common/FleetData.class.php file and replace where: public function with: public static function
  17. Your phpVMS includes the directories admin, core and lib. As far as I can understand, you should upload the contents of the lib folder in the lib folder of your phpVMS system. What do the lib folder that you have includes? I am moving this to the support forum.
  18. Can you get in touch with your provider and check that with them? I have not noticed any issue like this in the past.
  19. This board is referred to the phpVMS community announcements. I am moving your topic in the "Virtual Airline Discussion" board.
  20. Can you please open your webmail, login to the email that you are willing to use and check the Mail Client Settings of the email? What details do they give you?
  21. I do not understand what are you trying to show. Could you please explain to us? In the above code that you pasted you do not use the getPilotCode function anywhere.
  22. Unfortunately this is based on the IP that is given to you from your web hosting provider, the websites that you are sharing the ip with and several other things. Does your web hosting provider support SSL in your mailbox? Maybe they have changed the port. Have you set the email details in the local.config.php? Are you using cPanel?
  23. Add the following code within your core/local.config.php: date_default_timezone_set('UTC'); This will set the default timezone to UTC. You can use whatever you need from that list: http://php.net/manual/en/timezones.php
  24. Do you want to count the active pilots of your virtual airlines or the pilots that are includes in your virtual airline's database?
  25. Which average value do you want? Airline average? Pilot Average? What is the period of the calculation? Alltime airline average for example?
×
×
  • Create New...