Jump to content

servetas

Moderators
  • Content Count

    1696
  • Joined

  • Last visited

Everything posted by servetas

  1. servetas

    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?
  2. servetas

    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.
  3. servetas

    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.
  4. servetas

    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.
  5. servetas

    Live Map iFrame Not Working

    What is the page that you have added the iframe?
  6. servetas

    Schedule export problem [SOLVED]

    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. servetas

    Rules and Regulations by PHP-Mods

    Version 1.1

    113 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.
  8. servetas

    Non Flown Flights by PHP-Mods

    Version 1.1

    106 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!
  9. servetas

    Pilot Career Page by PHP-Mods

    Version 1.1

    130 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.
  10. Version 1.2

    102 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. servetas

    Schedule export problem [SOLVED]

    Hmmm, which phpVMS version are you using?
  12. servetas

    Addon Module Help

    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. servetas

    ADMIN PANEL SIDEBAR DISPLAY ERROR

    Open your admin/templates directory. What is the extension of the sidebar_dashboard file?
  14. servetas

    Advanced Fleet Manager [SOLVED]

    I feel that the file is messed up. Can you attach the file so we can preview it using a code editor?
  15. servetas

    Real Departure/Arrival list API

    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. servetas

    Advanced Fleet Manager [SOLVED]

    Open your core/common/FleetData.class.php file and replace where: public function with: public static function
  17. After a lot of months of development, PHP-Mods Team is ready to provide you a preview of our next module. We had published some screenshots in the past but never something that extended. Many of you had requested the development of several forum bridges with phpVMS but we decided that it would be more useful to develop a forum module from the scratch. Of course, the forum does not provide you what a forum platform (such as SMF, phpBB etc) provides to you but this is why we are here. Anything can be implemented as soon as it is considered useful. The Forum Module includes the following functions and many others: Extended User Settings Panel (Date Format, Time Offset, Signature, Email Notifications) Categorized Forum Boards Topics with or without Polls Multi Permission Levels (User, Staff, Moderator, Admin and Banned) Multimedia Post Editor (using the powerful cKeditor) Simple build-in search function. Your pilot's will not have to log in/register to a second platform in order to post their questions or discuss with the rest of your pilots. We have decided to offer a demo system to help you understand the way it works. The module is going to be released in the next few days as it is currently under testing from our beta testing virtual airlines. Also, an SMF migration tool is under development and we discuss to extend it to other platforms as per the user's requests. Feel free to let us know your feedback. Any suggestions are accepted. Bare in mind that due to its extended development, this module is going to be released as payware. Have fun!
  18. servetas

    Installation Directory

    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.
  19. servetas

    Mass-Mailer Error

    Can you get in touch with your provider and check that with them? I have not noticed any issue like this in the past.
  20. servetas

    Positions Available

    This board is referred to the phpVMS community announcements. I am moving your topic in the "Virtual Airline Discussion" board.
  21. servetas

    Mass-Mailer Error

    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?
  22. 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.
  23. servetas

    Mass-Mailer Error

    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?
  24. servetas

    Phpvms 5.5x timezone error

    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
  25. servetas

    Disable Pilot Registration

    Do you want to count the active pilots of your virtual airlines or the pilots that are includes in your virtual airline's database?
×